Display method and device, terminal and readable storage medium

文档序号:189764 发布日期:2021-11-02 浏览:22次 中文

阅读说明:本技术 显示方法和装置、终端和可读存储介质 (Display method and device, terminal and readable storage medium ) 是由 胡志通 王舜 陈德银 于 2021-07-28 设计创作,主要内容包括:本申请提供了一种显示方法。显示方法包括根据输入操作调整应用图标的尺寸和在显示区域内的位置,以确定每个应用图标的目标尺寸和目标位置;根据显示区域中采样点到每个特征点的距离,计算每个特征点的权重,采样点位于当前显示的应用图标的中心,特征点位于显示区域在初始状态下显示应用图标时,每个应用图标的中心,距离和权重负相关;及根据目标尺寸、目标位置和权重显示当前显示的应用图标。本申请实施方式的显示方法、显示装置、终端和非易失性计算机可读存储介质中,当前显示的每个应用图标均符合用户自定义设置的排列规则,用户可实现自定义应用图标的排列规则,且设计难度较低。(The application provides a display method. The display method comprises the steps of adjusting the size and the position of the application icon in a display area according to input operation to determine the target size and the target position of each application icon; calculating the weight of each characteristic point according to the distance from the sampling point to each characteristic point in the display area, wherein the sampling point is positioned in the center of the currently displayed application icon, the characteristic point is positioned in the center of each application icon when the display area displays the application icon in the initial state, and the distance and the weight are in negative correlation; and displaying the currently displayed application icon according to the target size, the target position and the weight. In the display method, the display device, the terminal and the nonvolatile computer readable storage medium according to the embodiments of the present application, each currently displayed application icon conforms to an arrangement rule set by a user, the user can customize the arrangement rule of the application icons, and the design difficulty is low.)

1. A display method, comprising:

adjusting the size and the position of the application icon in the display area according to the input operation to determine the target size and the target position of each application icon;

calculating the weight of each characteristic point according to the distance from a sampling point to each characteristic point in the display area, wherein the sampling point is positioned in the center of the currently displayed application icon, the characteristic point is positioned in the center of each application icon when the display area displays the application icon in an initial state, and the distance is inversely related to the weight; and

and displaying the currently displayed application icon according to the target size, the target position and the weight.

2. The display method according to claim 1, wherein in the initial state, each of the application icons in the display area is arranged in a matrix at a predetermined size.

3. The method according to claim 1, wherein the calculating the weight of each feature point according to the distance from the sampling point to each feature point in the display area comprises:

establishing a reference coordinate system by taking the center of the display area as an origin;

calculating the distance from the sampling point to each feature point according to a first coordinate and a second coordinate, wherein the first coordinate is the coordinate of the sampling point in the reference coordinate system, and the second coordinate is the coordinate of the feature point in the reference coordinate system;

and calculating the weight of each feature point corresponding to the sampling point according to the distance.

4. The display method according to claim 3, wherein the calculating the weight of each feature point corresponding to the sampling point according to the distance includes:

and calculating the weight of each feature point according to the distance proportion corresponding to each feature point and the sum of the distance proportions corresponding to all the feature points, wherein the distance proportion is determined according to the distance.

5. The display method according to claim 1, wherein the feature point, the target position, and the target size correspond to one another, and the displaying the currently displayed application icon according to the target size, the target position, and the weight includes:

calculating the display position of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target position corresponding to the feature point;

calculating the display size of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target size corresponding to the feature point; and

and displaying the currently displayed application icon according to the display position and the display size.

6. The display method according to claim 1, further comprising:

determining the distance as a predetermined value when the distance is less than the predetermined value.

7. A display device, comprising:

the adjusting module is used for adjusting the size and the position of the application icon in the display area according to input operation so as to determine the target size and the target position of each application icon;

the calculation module is used for calculating the weight of each feature point according to the distance from a sampling point to each feature point in the display area, wherein the sampling point is positioned in the center of the currently displayed application icon, the feature point is positioned in the center of each application icon when the display area displays the application icon in an initial state, and the distance is inversely related to the weight;

and the display module is used for displaying the currently displayed application icon according to the target size, the target position and the weight.

8. A terminal comprising a display and a processor for adjusting the size and position of application icons within a display area in accordance with an input operation to determine a target size and target position for each of the application icons; calculating the weight of each characteristic point according to the distance from a sampling point to each characteristic point in the display area, wherein the sampling point is positioned in the center of the currently displayed application icon, the characteristic point is positioned in the center of each application icon when the display area displays the application icon in an initial state, and the distance is inversely related to the weight; the display is used for controlling the display to display the currently displayed application icon according to the target size, the target position and the weight.

9. The terminal according to claim 8, wherein in the initial state, each of the application icons in the display area is arranged in a matrix with a predetermined size.

10. The terminal of claim 8, wherein the processor is further configured to establish a reference coordinate system with a center of the display area as an origin; calculating the distance from the sampling point to each feature point according to a first coordinate and a second coordinate, wherein the first coordinate is the coordinate of the sampling point in the reference coordinate system, and the second coordinate is the coordinate of the feature point in the reference coordinate system; and calculating the weight of each feature point corresponding to the sampling point according to the distance.

11. The terminal of claim 10, wherein the processor is further configured to calculate the weight for each of the feature points according to a distance weight corresponding to each of the feature points, the distance weight being determined according to the distance, and a sum of the distance weights corresponding to all of the feature points.

12. The terminal according to claim 8, wherein the processor is further configured to calculate a display position of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target position corresponding to the feature point; calculating the display size of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target size corresponding to the feature point; and controlling the display to display the currently displayed application icon according to the display position and the display size.

13. The terminal of claim 8, wherein the processor is further configured to determine the distance as a predetermined value when the distance is less than the predetermined value.

14. A non-transitory computer-readable storage medium containing a computer program which, when executed by one or more processors, causes the processors to perform the display method of any one of claims 1-6.

Technical Field

The present application relates to the field of image technologies, and in particular, to a display method, a display apparatus, a terminal, and a non-volatile computer-readable storage medium.

Background

Along with the popularization of terminals such as smart phones, tablet computers and smart watches and the development of internet technology, more and more applications are installed on the terminals, and accordingly, application icons displayed on terminal interfaces are increased. Therefore, the terminal is internally provided with various different arrangement rules to realize the display of the application icons for the selection of the user, the user cannot customize the arrangement rules of the application icons, the positions of the icons are exchanged at most, or the sizes of all the icons are adjusted at the same time, and for the user, the difficulty in independently designing a new arrangement rule is higher.

Disclosure of Invention

The embodiment of the application provides a display method, a display device, a terminal and a non-volatile computer readable storage medium.

The display method of the embodiment of the application comprises the steps of adjusting the size and the position of the application icon in a display area according to input operation to determine the target size and the target position of each application icon; calculating the weight of each characteristic point according to the distance from a sampling point to each characteristic point in the display area, wherein the sampling point is positioned in the center of the currently displayed application icon, the characteristic point is positioned in the center of each application icon when the display area displays the application icon in an initial state, and the distance is inversely related to the weight; and displaying the currently displayed application icon according to the target size, the target position and the weight.

The display device of the embodiment of the application comprises an adjusting module, a calculating module and a display module. The adjusting module is used for adjusting the size and the position of the application icon in the display area according to input operation so as to determine the target size and the target position of each application icon; the calculation module is used for calculating the weight of each feature point according to the distance from a sampling point to each feature point in the display area, the sampling point is located at the center of the currently displayed application icon, the feature point is located at the center of each application icon when the display area displays the application icon in an initial state, and the distance is inversely related to the weight; the display module is used for displaying the currently displayed application icon according to the target size, the target position and the weight.

The terminal comprises a display and a processor, wherein the processor is used for adjusting the size and the position of an application icon in a display area according to input operation so as to determine the target size and the target position of each application icon; calculating the weight of each characteristic point according to the distance from a sampling point to each characteristic point in the display area, wherein the sampling point is positioned in the center of the currently displayed application icon, the characteristic point is positioned in the center of each application icon when the display area displays the application icon in an initial state, and the distance is inversely related to the weight; the display is used for controlling the display to display the currently displayed application icon according to the target size, the target position and the weight.

A non-transitory computer-readable storage medium embodying a computer program that, when executed by one or more processors, causes the processors to perform a display method. The display method comprises the steps of adjusting the size and the position of application icons in a display area according to input operation to determine the target size and the target position of each application icon; calculating the weight of each characteristic point according to the distance from a sampling point to each characteristic point in the display area, wherein the sampling point is positioned in the center of the currently displayed application icon, the characteristic point is positioned in the center of each application icon when the display area displays the application icon in an initial state, and the distance is inversely related to the weight; and displaying the currently displayed application icon according to the target size, the target position and the weight.

In the display method, the display device, the terminal and the non-volatile computer-readable storage medium according to the embodiment of the application, a user adjusts the size of an application icon and the position of the application icon in a display area through input operation, so that the arrangement rule of the application icon to be displayed finally is designed quickly and conveniently, then a processor obtains the target size and the target position of each adjusted application icon, when the application icon is displayed subsequently, a sampling point of the currently displayed application icon is obtained first, then the weight of each feature point is obtained through calculation according to the distance from the sampling point to each feature point which is determined in advance and represents the initial position of the application icon, the feature point which is closer to the sampling point has larger influence on the sampling point, so that the weight is set to be larger, and the size and the position of the currently displayed application icon are obtained through calculation according to the target size, the target position and the weight of the feature point, each currently displayed application icon is enabled to accord with the arrangement rule set by the user, the user can realize the arrangement rule of the user-defined application icons, and the design difficulty is low.

Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a schematic flow chart of a display method according to some embodiments of the present application;

FIG. 2 is a block diagram of a display device according to some embodiments of the present application;

FIG. 3 is a schematic plan view of a terminal according to some embodiments of the present application;

FIGS. 4-6 are schematic views of a display method according to some embodiments of the present application;

FIG. 7 is a schematic flow chart diagram of a display method according to some embodiments of the present application;

FIGS. 8 and 9 are schematic views of a display method according to some embodiments of the present application;

FIG. 10 is a schematic flow chart diagram of a display method according to some embodiments of the present application; and

FIG. 11 is a schematic diagram of a connection between a processor and a computer-readable storage medium according to some embodiments of the present application.

Detailed Description

Embodiments of the present application will be further described below with reference to the accompanying drawings. The same or similar reference numbers in the drawings identify the same or similar elements or elements having the same or similar functionality throughout. In addition, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are only for the purpose of explaining the embodiments of the present application, and are not to be construed as limiting the present application.

Referring to fig. 1, a display method according to an embodiment of the present application includes the following steps:

011: adjusting the size and the position of the application icon in the display area according to the input operation to determine the target size and the target position of each application icon;

012: calculating the weight of each characteristic point according to the distance from the sampling point to each characteristic point in the display area, wherein the sampling point is positioned in the center of the currently displayed application icon, the characteristic point is positioned in the center of each application icon when the display area displays the application icon in the initial state, and the distance and the weight are in negative correlation; and

013: and displaying the currently displayed application icon according to the target size, the target position and the weight.

Referring to fig. 2, a display device 10 according to an embodiment of the present disclosure includes an adjustment module 11, a calculation module 12, and a display module 13. The adjusting module 11, the calculating module 12 and the displaying module 13 are used for executing step 011, step 012 and step 013 respectively. That is, the adjusting module 11 is configured to adjust the size and the position of the application icon in the display area according to the input operation to determine a target size and a target position of each application icon; the calculation module 12 is configured to calculate a weight of each feature point according to a distance from a sampling point to each feature point in the display area, where the sampling point is located at a center of a currently displayed application icon, the feature point is located at the center of each application icon when the display area displays the application icon in an initial state, and the distance and the weight are negatively correlated; the display module 13 is configured to display the currently displayed application icon according to the target size, the target position, and the weight.

Referring to fig. 3, in some embodiments, the terminal 100 further includes a display 20 and a processor 30. The processor 30 is used for adjusting the size and the position of the application icon in the display area according to the input operation so as to determine the target size and the target position of each application icon; calculating the weight of each characteristic point according to the distance from the sampling point to each characteristic point in the display area, wherein the sampling point is positioned in the center of the currently displayed application icon, the characteristic point is positioned in the center of each application icon when the display area displays the application icon in the initial state, and the distance and the weight are in negative correlation; the display 20 is used to control the display 20 to display the currently displayed application icon according to the target size, target position and weight. That is, step 011 and step 012 can be implemented by processor 30, and step 013 can be implemented by display 20 and processor 30.

Specifically, the terminal 100 includes a housing 40, a processor 30, and a display 20. The terminal 100 may be a smart watch, a cell phone, a tablet computer, a display device, a notebook computer, a teller machine, a gate, a head display device, a game console, etc. As shown in fig. 3, the embodiment of the present application is described by taking the terminal 100 as an example of a smart watch, and it is understood that the specific form of the terminal 100 is not limited to the smart watch. The housing 40 may be used to mount functional modules of the terminal 100, such as a display device (i.e., the display 20), an imaging device, a power supply device, a communication device, etc., so that the housing 40 provides protection for the functional modules against dust, falling, water, etc.

Referring to fig. 4, the display 20 includes a display area 21, and in an initial state, a plurality of application icons M are displayed in the display area 21, each application icon M has the same size and is a predetermined size, the application icons M may be circular or rectangular, when the application icons M are circular, the predetermined size may be circular with a radius of 50 pixels, 60 pixels, and the like, and when the application icons M are rectangular, the predetermined size may be 100 pixels, 150 pixels, and the like.

The plurality of application icons M in the display area 21 are arranged in a matrix, and for example, 36 circular application icons M are displayed in the display area 21, and the 36 application icons M are arranged in a matrix of 6 × 6.

The input operation includes a touch operation that the user can perform in the display area 21 to move the position of the one or more application icons M or change the size of the one or more application icons M. Alternatively, the input operation may further include a voice input operation, and the terminal 100 further includes a microphone 40, and the microphone 40 receives a voice input of the user, and then the processor 30 processes the voice input to effect a movement of the position of the one or more application icons M and a change in the size of the one or more application icons M.

Through input operation, the user can adjust the position and size of each application icon M in the display area 21, so that the application icons M in the display area 21 are arranged according to the arrangement rule set by the user.

Referring to fig. 5, in order to receive the 36 adjusted application icons M displayed in the display area 21 after the user input operation, the processor 30 obtains the target position and the target size of each application icon M arranged by the user in a customized manner.

As the user slides the display area 21, the position of the application icon M in the display area 21 may move, and when the application icon M moves to a different position of the display area 21, the size and the position of the application icon M need to be adjusted according to the target position and the target size, so as to meet the user-defined arrangement rule. The processor 30 may obtain a sampling point of the application icon M as the current position of the application icon M, for example, the sampling point may be located at the center of the application icon M. Then, the distance between the sampling point and the feature point of the application icon M in the initial state in fig. 4 (for example, the feature point may be located at the center of each application icon in fig. 4) is calculated, and the closer the distance is, the greater the influence of the feature point on the sampling point is, and therefore, the greater the weight is, for example, the reciprocal of the distance between the feature point and the sampling point is taken as the weight of the feature point, so that the weight of each feature point is calculated.

It is understood that the distance between the sampling point and the feature point may be calculated as 0, and in order to avoid that the reciprocal of the distance cannot be calculated, thereby affecting the calculation of the subsequent weight, the distance smaller than the predetermined value may be directly assigned as the predetermined value, for example, the distance is 0.0000001, and the predetermined value is 0.000001, and then the distance is assigned as 0.000001.

Finally, the processor 30 controls the display 20 to display the currently displayed application icon M according to the weight of each feature point, the target size and the target position of each application icon M. For example, the processor 30 calculates the display size and the display position of the currently displayed application icon M according to the weight of each feature point, the target size and the target position of the application icon, and as the application icon M moves at different positions of the display area 21, the sampling point changes, and the weight of each feature point corresponding to the sampling point also changes, so that the size and the position of the application icon M at different positions of the display area 21 both change in real time and meet the arrangement rule set by the user.

Referring to fig. 5 and 6, when the user slides the display area 21 to the right, the application icon M1 moves to the right, and since the size of the application icon M2 on the right side of the application icon M1 is larger, the application icon M1 gradually increases until the application icon M1 moves to the position of the application icon M2 before sliding, the size and the position become substantially the same as the application icon M2 before sliding (if the difference in size is smaller than a predetermined value, the predetermined value may be 1 pixel, 2 pixels, etc.); and the application icon M2 moves to the right, and since the application icon M3 on the right side of the application icon M2 is smaller in size, the application icon M2 is also gradually reduced until the application icon M2 moves to the position of the application icon M3 before sliding, and the size and the position become substantially the same as those of the application icon M3 before sliding. Therefore, no matter how the user slides the display area 21, the size and the position of the application icon can be changed in real time according to the change of the sampling point of the application icon, so as to meet the user-defined arrangement rule.

In the display method, the display device 10 and the terminal 100 according to the embodiment of the present application, a user adjusts the size of the application icon and the position in the display area 21 through an input operation, so as to quickly and conveniently design the arrangement rule of the application icon to be displayed finally, then the processor 30 obtains the target size and the target position of each adjusted application icon, when displaying the application icon subsequently, first obtains the sampling point of the currently displayed application icon, then obtains the weight of each feature point by calculating according to the distance from the sampling point to each feature point which is determined in advance and represents the initial position of the application icon, the feature point which is closer to the sampling point has a larger influence on the sampling point, so that the weight is set to be larger, thereby obtaining the size and the position of the currently displayed application icon by calculating according to the target size, the target position and the weight of the feature point, each currently displayed application icon is enabled to accord with the arrangement rule set by the user, the user can realize the arrangement rule of the user-defined application icons, and the design difficulty is low.

Referring to fig. 7, in some embodiments, step 012 includes the following steps:

0121: establishing a reference coordinate system by taking the center of the display area 21 as an origin;

0122: calculating the distance from the sampling point to each characteristic point according to a first coordinate and a second coordinate, wherein the first coordinate is the coordinate of the sampling point in the reference coordinate system, and the second coordinate is the coordinate of the characteristic point in the reference coordinate system;

0123: and calculating the weight of each feature point corresponding to the sampling point according to the distance.

Referring again to fig. 2, in some embodiments, the calculation module 12 is further configured to perform step 0121, step 0122, and step 0123. Namely, the calculation module 12 is further configured to establish a reference coordinate system with the center of the display area 21 as an origin; calculating the distance from the sampling point to each characteristic point according to a first coordinate and a second coordinate, wherein the first coordinate is the coordinate of the sampling point in the reference coordinate system, and the second coordinate is the coordinate of the characteristic point in the reference coordinate system; and calculating the weight of each feature point corresponding to the sampling point according to the distance.

Referring again to fig. 3, in some embodiments, the processor 30 is further configured to establish a reference coordinate system with the center of the display area 21 as an origin; calculating the distance from the sampling point to each characteristic point according to a first coordinate and a second coordinate, wherein the first coordinate is the coordinate of the sampling point in the reference coordinate system, and the second coordinate is the coordinate of the characteristic point in the reference coordinate system; and calculating the weight of each feature point corresponding to the sampling point according to the distance. That is, step 0121, step 0122, and step 0123 may be implemented by the processor 30.

Specifically, referring to fig. 8, when calculating the weight of each feature point, first, the distance between the sampling point and the feature point is calculated, and in an initial state, the display area 21 displays a plurality of application icons M, and the processor 30 may establish a reference coordinate system XOY with the center of the display area 21 as an origin, so as to determine the second coordinate of the feature point in the reference coordinate system, where 36 application icons M, each of which has a center as a feature point, form 36 feature points from the feature point P0 to the feature point P35.

Referring to fig. 9, as the position of the application icon M in the display area 21 changes with the sliding operation of the user, the processor 30 may obtain a first coordinate of the center (i.e., the sampling point N) of each currently displayed application icon M in the reference coordinate system.

The processor 30 then calculates the distances between the sample point N and the feature point P0, between the sample point N and the feature points P1, … …, and between the sample point N and the feature point P35, for example, the first coordinate is (X1, Y1), and the second coordinate is (Xn, Yn), and the distance dn between the sample point N and the feature point Pn (N is a natural number) can be calculated by a distance formula between two points, dn ═ math.sqrt (| (X1-Xn) (X1-Xn) + (Y1-Yn) | (Y1-Yn) |).

The processor 30 may calculate the weight of each feature point Pn according to the distance between the feature point Pn and the sampling point N, for example, the weight is the reciprocal of the distance, that is, the larger the distance is, the smaller the weight is; for another example, to realize normalization of the weights and facilitate subsequent calculation, the reciprocal of the distance may be used as a distance proportion, and then the weight of each feature point is determined according to the distance proportion corresponding to each feature point and the sum of the distance proportions of all the feature points, for example, the ratio of the distance proportion corresponding to each feature point and the sum of the distance proportions of all the feature points is used as the weight of each feature point. Taking the distance between a feature point Pn and a sampling point N as dn as an example, where N is a natural number, and the weight of each feature point Pn is (1/dn)/(1/d0+1/d1+ … … +1/dn), it can be seen from the above formula that the larger the distance is, the smaller the weight is.

Alternatively, the distance between the sampling point N and the feature point Pn may not be calculated, but only the square of the distance between the sampling point N and the feature point Pn may be calculated as the distance value, | (X1-Xn) (X1-Xn) + (Y1-Yn) × (Y1-Yn) |; or, further performing mathematical transformation on the distance between the calculated sampling point N and the feature point Pn to obtain a distance value positively correlated to the distance, and calculating the weight of each feature point based on the distance value, for example, taking the reciprocal of the distance value as the weight of each feature point.

Thus, the weight of each feature point Pn can be calculated for the sampling point N of the currently displayed application icon M.

Referring to fig. 10, in some embodiments, the feature points, the target locations and the target sizes correspond to one another, and step 013 further includes the following steps:

0131: calculating the display position of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target position corresponding to the feature point;

0132: calculating the display size of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target size corresponding to the feature point; and

0133: and displaying the currently displayed application icon according to the display position and the display size.

Referring again to fig. 2, in some embodiments, the display module 13 is further configured to perform step 0131, step 0132 and step 0133. Namely, the display module 13 is further configured to calculate a display position of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target position corresponding to the feature point; calculating the display size of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target size corresponding to the feature point; and displaying the currently displayed application icon according to the display position and the display size.

Referring again to fig. 3, in some embodiments, the processor 30 is further configured to calculate a display position of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target position corresponding to the feature point; calculating the display size of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target size corresponding to the feature point; and controls the display 20 to display the currently displayed application icon according to the display position and the display size. That is, step 0131, step 0132 and step 0133 may be implemented by processor 30.

Specifically, referring to fig. 4 and 5 again, each feature point is the center of the application icon M in the initial state, after the user adjusts the position and size of each application icon M through input operation, the position and size of the application icon M corresponding to the feature point are changed into a target position and a target size, and the feature point, the target size, and the target position are in one-to-one correspondence and all correspond to the same application icon M.

When adjusting the size and position of the currently displayed application icon corresponding to the sampling point according to the weight of each feature point corresponding to the sampling point, the processor 30 first calculates the display position of the currently displayed application icon M according to the weight of each feature point corresponding to the sampling point and the target position corresponding to each feature point, for example, the weight of the feature point Pn is Wn, the coordinates of the target position are (Xn, Yn), and n is a natural number, and then the abscissa of the display position can be calculated according to the weight of each feature point corresponding to the sampling point and the abscissa of the target position corresponding to each feature point, that is, the abscissa of the display position is X0W 0+ X1W 1+ … … + Xn Wn; the ordinate of the display position can be calculated according to the weight of each feature point corresponding to the sampling point and the ordinate of the target position corresponding to each feature point, that is, the ordinate of the display position is Y0 × W0+ Y1 × W1+ … … + Yn × Wn.

The processor 30 may then calculate the display size of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target size corresponding to each feature point, for example, if the weight of the feature point Pn is Wn, and the target size Rn is a natural number, then the display size is R0W 0+ R1W 1+ … … + Rn Wn.

In this way, the closer the feature point is to the sampling point, the greater the weight of the feature point is, the most significant the influence of the display size and the display position on the target size and the target position corresponding to the feature point closest to the sampling point is, so that the display size and the display position of the currently displayed application icon conform to the user-defined arrangement rule.

Referring again to fig. 6, in other embodiments, to improve the efficiency of the calculation of the display position and display size, the weight of each characteristic point corresponding to all sampling points of the display area 21 can be calculated in advance, the sampling points and the weight of each characteristic point corresponding to the sampling points are stored in a database as sampling point data in an associated manner, then after the position of the sampling point of the currently displayed application icon M is obtained, the sampling point data with the minimum distance with the sampling point of the currently displayed application icon M is found from the database to calculate the display size and the display position, therefore, the weight of each characteristic point corresponding to the sampling point is not required to be calculated in real time, the matched sampling point data is directly inquired from the database, the calculation efficiency of the display size and the display position can be improved, so that the change of the application icon M is smooth when the display area 21 slides.

Referring to fig. 11, a non-volatile computer readable storage medium 300 storing a computer program 302 according to an embodiment of the present disclosure, when the computer program 302 is executed by one or more processors 30, the processor 30 may execute the display method according to any of the above embodiments.

For example, referring to fig. 1, the computer program 302, when executed by the one or more processors 30, causes the processors 30 to perform the steps of:

011: adjusting the size and the position of the application icon in the display area according to the input operation to determine the target size and the target position of each application icon;

012: calculating the weight of each characteristic point according to the distance from the sampling point to each characteristic point in the display area, wherein the sampling point is positioned in the center of the currently displayed application icon, the characteristic point is positioned in the center of each application icon when the display area displays the application icon in the initial state, and the distance and the weight are in negative correlation; and

013: and displaying the currently displayed application icon according to the target size, the target position and the weight.

For another example, referring to fig. 7, when the computer program 302 is executed by the one or more processors 30, the processors 30 may further perform the following steps:

0121: establishing a reference coordinate system by taking the center of the display area 21 as an origin;

0122: calculating the distance from the sampling point to each characteristic point according to a first coordinate and a second coordinate, wherein the first coordinate is the coordinate of the sampling point in the reference coordinate system, and the second coordinate is the coordinate of the characteristic point in the reference coordinate system;

0123: and calculating the weight of each feature point corresponding to the sampling point according to the distance.

For another example, referring to fig. 10, when the computer program 302 is executed by the one or more processors 30, the processors 30 may further perform the following steps:

0131: calculating the display position of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target position corresponding to the feature point;

0132: calculating the display size of the currently displayed application icon according to the weight of each feature point corresponding to the sampling point and the target size corresponding to the feature point; and

0133: and displaying the currently displayed application icon according to the display position and the display size.

In the description herein, references to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example" or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.

Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more program modules for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes additional implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.

Although embodiments of the present application have been shown and described above, it is to be understood that the above embodiments are exemplary and not to be construed as limiting the present application, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种资源播放方法、装置、电子设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类