Method, device, electronic device and storage medium for moving icons
By determining the target icon based on the icon serial number in the icon editing interface of the electronic device, the location confusion caused by icon movement and deletion is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202210906223.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-07-29
Smart Images

Figure CN115145444B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and more specifically, to a method and device for moving an icon, an electronic device, and a storage medium. Background Art
[0002] With the development of science and technology, electronic devices are used more and more widely and have more and more functions. They have become one of the necessities in people's daily life. At present, with the increase of applications installed in electronic devices, electronic devices have gradually begun to support users to move and delete application icons. However, these operations often affect the overall display of application icons, that is, the display of application icons is disrupted, resulting in poor user experience. Summary of the invention
[0003] In view of the above problems, the present application proposes an icon moving method, device, electronic device and storage medium to solve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a method for moving an icon, the method comprising: displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons arranged in a matrix, each of the plurality of icons corresponding to an icon serial number, and the icon serial numbers corresponding to each of the plurality of icons increase in a spiral manner from the inside to the outside; in response to an icon operation instruction, determining an icon to be operated from the plurality of icons, wherein the icon operation instruction is used to instruct to stop the display of an icon at its display position; determining, from the plurality of icons, an icon to be selected that is adjacent to the display position of the icon to be operated and whose icon serial number is greater than the icon serial number of the icon to be operated; obtaining the number of icons of the icon to be selected as a first number of icons, and determining a target icon from the icons to be selected based on the first number of icons; removing the icon to be operated from its display position, and replacing the target icon with the display position of the icon to be operated for display.
[0005] In a second aspect, an embodiment of the present application provides an icon moving device, the device comprising: an icon editing interface display module, used to display an icon editing interface, wherein the icon editing interface comprises a plurality of icons arranged in a determinant and a columnar manner, each of the plurality of icons corresponding to an icon serial number, and the icon serial numbers corresponding to each of the plurality of icons increase in a spiral manner from the inside to the outside; a module for determining an icon to be operated, used to determine an icon to be operated from the plurality of icons in response to an icon operation instruction, wherein the icon operation instruction is used to instruct to stop the display of an icon at its display position; a module for determining an icon to be selected, used to determine an icon to be selected from the plurality of icons that is adjacent to the display position of the icon to be operated and whose icon serial number is greater than the icon serial number of the icon to be operated; a target icon determination module, used to obtain the icon number of the icon to be selected as the first icon number, and determine a target icon from the icon to be selected based on the first icon number; an icon moving module, used to remove the icon to be operated from its display position, and to fill the target icon in the display position of the icon to be operated for display.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
[0008] The icon moving method, device, electronic device and storage medium provided in the embodiments of the present application display an icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a matrix, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral manner from the inside to the outside. In response to an icon operation instruction, an icon to be operated is determined from the plurality of icons, wherein the icon operation instruction is used to instruct to stop the display of the icon at its display position, and an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon serial number greater than the icon serial number of the icon to be operated is determined from the plurality of icons, the icon number of the icons to be selected is obtained as the first icon number, and a target icon is determined from the icons to be selected based on the first icon number, the icon to be operated is removed from its display position, and the target icon is filled in the display position of the icon to be operated for display, so that by reasonably setting the icon filling logic, the problem of icons being disrupted during the filling process can be avoided, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0010] Figure 1 A schematic diagram showing the arrangement of multiple icons is shown;
[0011] Figure 2 A schematic diagram showing a flow chart of a method for moving an icon provided in an embodiment of the present application;
[0012] Figure 3 A schematic diagram showing a planetary view provided by an embodiment of the present application is shown;
[0013] Figure 4 A schematic diagram showing the effect of removing the deformation filter from a planetary view provided by an embodiment of the present application;
[0014] Figure 5 A schematic diagram showing the arrangement of multiple icons provided in an embodiment of the present application is shown;
[0015] Figure 6 A schematic diagram showing a flow chart of a method for moving an icon provided in an embodiment of the present application;
[0016] Figure 7 A schematic diagram showing a flow chart of a method for moving an icon provided in an embodiment of the present application;
[0017] Figure 8 A schematic diagram of icon filling provided by an embodiment of the present application is shown;
[0018] Fig. 9 A schematic diagram showing a flow chart of a method for moving an icon provided in an embodiment of the present application;
[0019] Fig.10 A schematic diagram of multiple icon circles provided in an embodiment of the present application is shown;
[0020] Fig.11 A schematic diagram showing the paths of multiple icons provided by an embodiment of the present application reaching an edge zone;
[0021] Fig.12 A schematic diagram showing a flow chart of a method for moving an icon provided in an embodiment of the present application;
[0022] Fig.13 A module block diagram of a mobile device of an icon provided by an embodiment of the present application is shown;
[0023] Fig.14A block diagram of an electronic device according to an embodiment of the present application for executing a method for moving an icon according to an embodiment of the present application is shown;
[0024] Fig.15 A storage unit for storing or carrying a program code for implementing a method for moving an icon according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0026] As the number of applications installed in electronic devices increases, users' need to move or delete application icons also increases. For electronic devices that support icon replacement, the replacement logic is spiral replacement, that is, after one icon is deleted and replaced, the positions of almost all icons change, resulting in a sense of confusion in icon display. For example, see Figure 1 , Figure 1 A schematic diagram showing the arrangement of multiple icons is shown, such as Figure 1 As shown, the order of icons is a spiral arrangement from the inside to the outside. If the "head" of the icon is deleted, all subsequent icons will be moved forward to fill the position until the "tail" of the icon is filled forward, resulting in a change in the position of all icons, disrupting the display of icons, and causing a poor user experience.
[0027] In view of the above problems, the inventor has discovered after long-term research and proposed the icon moving method, device, electronic device and storage medium provided in the embodiments of the present application. By reasonably setting the icon filling logic, it is possible to avoid the problem of icons being disrupted during the filling process and improve the user experience. Among them, the specific icon moving method is described in detail in the subsequent embodiments.
[0028] See also Figure 2 , Figure 2 The flowchart of the method for moving icons provided by an embodiment of the present application is shown. The method is used to avoid the problem of icons being disrupted during the filling process by reasonably setting the icon filling logic, thereby improving the user experience. In a specific embodiment, the method for moving icons is applied to Fig.13 The mobile device 200 of the icon and the electronic device 100 equipped with the mobile device 200 of the icon ( Fig.14 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment may include wearable electronic devices such as smart phones, tablet computers, smart watches, etc., which are not limited here. Figure 2 The process shown is described in detail, and the icon moving method may specifically include the following steps:
[0029] Step S110: displaying an icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a matrix, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral from the inside to the outside.
[0030] In this embodiment, the electronic device may display an icon editing interface, wherein the icon editing interface may include a plurality of icons arranged in a row. As a method, the icon editing interface may include an icon display interface (such as a desktop), or the icon editing interface may include an application list interface, which is not limited here.
[0031] In some embodiments, when the electronic device is a device with a large screen such as a mobile terminal or a tablet computer, it can be considered that the electronic device has a large area to display multiple icons on an icon display interface such as a desktop, and the icon editing interface can be an icon display interface. When the electronic device is a device with a small screen such as a smart watch or a smart bracelet, it can be considered that the electronic device does not have a large area to display multiple icons on an icon display interface such as a desktop, and the multiple icons can be displayed on an application list interface, and the icon editing interface can be an application list interface.
[0032] As one way, when multiple icons are displayed in the form of a determinant arrangement, the multiple icons can be arranged according to a regular determinant. At this time, the display sizes of the multiple icons are consistent or similar. For example, the multiple icons can be arranged according to a 6*6 determinant rule, can be arranged according to an 8*8 determinant rule, can be arranged according to a 16*16 determinant rule, etc., which is not limited here. As another way, when multiple icons are displayed in the form of a determinant, the multiple icons can be arranged according to an irregular determinant. For example, they can be arranged in a planetary view. At this time, the display sizes of the multiple icons are inconsistent or dissimilar.
[0033] See also Figure 3 and Figure 4 , Figure 3 A schematic diagram showing a planetary view provided by an embodiment of the present application is shown. Figure 4 FIG. 1 is a schematic diagram showing the effect of removing the deformation filter from the planet view provided by an embodiment of the present application. Figure 3 As shown in FIG. 1 , when multiple icons are arranged in a planetary view, the display sizes of the multiple icons are inconsistent or dissimilar. After removing the deformation filter of the planetary view, they are also arranged in a regular determinant manner, and the display sizes of the multiple icons are consistent or similar. Figure 4 shown.
[0034] In this embodiment, each of the multiple icons corresponds to an icon serial number, and the icon serial numbers corresponding to each of the multiple icons increase spirally from the inside to the outside. In some embodiments, the initial arrangement order of the multiple icons (the icon serial numbers corresponding to each of the multiple icons) can be set by the electronic device by default. For example, the electronic device can set the icon serial numbers corresponding to each of the multiple icons according to the installation order of the application program, such as, the earlier the application program is installed, the smaller the icon serial number corresponding to its icon, and the later the application program is installed, the larger the icon serial number corresponding to its icon; or, the initial arrangement order of the multiple icons (the icon serial numbers corresponding to each of the multiple icons) can be manually adjusted by the user according to the needs, which is not limited here. Among them, it can be understood that the "icon serial number" can be a virtual mapping, which is only used to characterize the arrangement relationship of the multiple icons in this embodiment, and is not limited to other things. In addition, after the multiple icons are sorted, the icon serial number can be re-identified, which is not limited here.
[0035] As one approach, the icon serial numbers corresponding to the multiple icons may be natural numbers, that is, the icon serial numbers corresponding to the multiple icons may start from 0 and increase in a spiral from inside to outside.
[0036] See also Figure 5 , Figure 5 A schematic diagram showing the arrangement of multiple icons provided in an embodiment of the present application is shown. Figure 5 As shown, the multiple icons are arranged in a matrix, and the icon serial numbers corresponding to the multiple icons may include 0 to 63, then the icon serial numbers corresponding to the multiple icons increase from 0 to 63 in a spiral from inside to outside.
[0037] Step S120: In response to the icon operation instruction, determine the icon to be operated from the multiple icons, wherein the icon operation instruction is used to instruct to stop displaying the icon at its display position.
[0038] In this embodiment, during the process of displaying the icon editing interface, it can be monitored whether an icon operation instruction for instructing to stop the display of the icon at its display position is received, wherein, when the icon operation instruction is monitored, it can be possible to respond to the icon operation instruction and determine the icon to be operated from multiple icons, wherein the determined icon to be operated is the icon whose display at its display position is to be stopped.
[0039] As one way, the icon operation instruction may include an icon deletion instruction, that is, in response to the icon deletion instruction, the icon to be operated can be determined from multiple icons, wherein the icon deletion instruction is used to instruct to delete the icon from its display position. As another way, the icon operation instruction may include an icon movement instruction, that is, in response to the icon movement instruction, the icon to be operated can be determined from multiple icons, wherein the icon movement instruction is used to instruct to remove the icon from its display position, for example, to move the icon from its display position to the end.
[0040] In some embodiments, when the electronic device is displaying an icon editing interface, it can determine that an icon operation instruction has been detected when target voice information is detected; it can determine that an icon operation instruction has been detected when a target touch operation acting on the icon editing interface is detected; and it can determine that an icon operation instruction has been detected when a target touch operation acting on a target control of the electronic device is detected.
[0041] Step S130: Determine, from the multiple icons, an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon sequence number greater than the icon sequence number of the icon to be operated.
[0042] In this embodiment, when the icon to be operated is determined, an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon sequence number greater than the icon sequence number of the icon to be operated may be determined from multiple icons.
[0043] As a method, when the icon to be operated is determined, the display position of the icon to be operated can be obtained, and based on the display position of the icon to be operated, an icon adjacent to the display position of the icon to be operated can be determined from multiple icons. Then, the icon serial number of the icon to be operated can be obtained, and based on the icon serial number of the icon to be operated, an icon with an icon serial number greater than the icon serial number of the icon to be operated can be determined from the icons adjacent to the display position of the icon to be operated as the icon to be selected.
[0044] As another way, when the icon to be operated is determined, the icon serial number of the icon to be operated can be obtained, and based on the icon serial number of the icon to be operated, an icon having an icon serial number greater than the icon serial number of the icon to be operated can be determined from multiple icons. Then, the display position of the icon to be operated can be obtained, and based on the display position of the icon to be operated, an icon adjacent to the display position of the icon to be operated can be determined from icons having icon serial numbers greater than the icon serial number of the icon to be operated as the icon to be selected.
[0045] As another way, when the icon to be operated is determined, the display position of the icon to be operated and the icon serial number of the icon to be operated can be obtained, and based on the display position of the icon to be operated and the icon serial number of the icon to be operated, an icon that is adjacent to the display position of the icon to be operated and has an icon serial number greater than the icon serial number of the icon to be operated is determined from multiple icons as the icon to be selected.
[0046] Step S140: Acquire the number of icons to be selected as a first number of icons, and determine a target icon from the icons to be selected based on the first number of icons.
[0047] In this embodiment, when determining an icon to be selected from multiple icons, the icon quantity of the icon to be selected can be obtained, the obtained icon quantity of the icon to be selected can be used as the first quantity, and based on the first icon quantity, an icon to be selected is determined from the icons to be selected as the target icon.
[0048] In some embodiments, a first preset mapping relationship may be pre-set and stored, and the preset mapping relationship may include the number of first icons, a method for determining the target icon, and a correspondence between the number of first icons and the method for determining the target icon. Therefore, in this embodiment, when the number of first icons is obtained, the method for determining the target icon corresponding to the number of first icons may be determined based on the first preset mapping relationship, so that the target icon may be determined from the icons to be selected according to the method for determining the target icon corresponding to the number of first icons.
[0049] In some implementations, the first number of icons may include 0, 1, 2, 3, or 4, which is not limited herein.
[0050] Step S150: remove the icon to be operated from its display position, and replace the target icon with the display position of the icon to be operated for display.
[0051] In this embodiment, when the target icon is determined, the icon to be operated can be removed from its display position, and the target icon can be replaced at the display position of the icon to be operated for display, so as to avoid the problem of other icons being disrupted during the replacement process and improve the user experience.
[0052] In some embodiments, if the icon operation instruction is an icon deletion instruction, the icon to be operated can be deleted from its display position, and the target icon can be replaced at the display position of the icon to be operated for display; if the icon operation instruction is an icon move instruction, the icon to be operated can be deleted from its display position and moved to the indicated display position, and the target icon can be replaced at the display position of the icon to be operated for display.
[0053] An icon moving method provided by an embodiment of the present application displays an icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a matrix, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral manner from the inside to the outside. In response to an icon operation instruction, an icon to be operated is determined from the plurality of icons, wherein the icon operation instruction is used to instruct to stop the display of the icon at its display position, and an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon serial number greater than the icon serial number of the icon to be operated is determined from the plurality of icons, the icon number of the icons to be selected is obtained as the first icon number, and a target icon is determined from the icons to be selected based on the first icon number, the icon to be operated is removed from its display position, and the target icon is filled in the display position of the icon to be operated for display, so that by reasonably setting the icon filling logic, the problem of icons being disrupted during the filling process can be avoided, thereby improving the user experience.
[0054] See also Figure 6 , Figure 6 The flowchart of the method for moving icons provided by an embodiment of the present application is shown in FIG. Figure 6 The process shown is described in detail, and the icon moving method may specifically include the following steps:
[0055] Step S210: displaying an icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a matrix, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral from the inside to the outside.
[0056] Step S220: In response to the icon operation instruction, determine the icon to be operated from the multiple icons, wherein the icon operation instruction is used to instruct to stop displaying the icon at its display position.
[0057] Step S230: Determine, from the multiple icons, an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon sequence number greater than the icon sequence number of the icon to be operated.
[0058] Step S240: Acquire the number of icons to be selected as a first number of icons, and determine a target icon from the icons to be selected based on the first number of icons.
[0059] Step S250: remove the icon to be operated from its display position, and replace the target icon with the display position of the icon to be operated for display.
[0060] For the detailed description of steps S210 to S250 , please refer to steps S110 to S150 , which will not be repeated here.
[0061] Step S260: Take the target icon as the icon to be operated, and repeat the step of determining, from the multiple icons, an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon number greater than the icon number of the icon to be operated, to the step of removing the icon to be operated from its display position, and replacing the target icon at the display position of the icon to be operated for display, until the replacement of the multiple icons is completed.
[0062] In this embodiment, after determining the target icon from multiple icons and filling the display position of the icon to be operated for display, the original display position of the target icon may be blank. Therefore, in order to ensure the display effect of the icon editing interface (multiple icons), icons other than the target icon can be selected from the multiple icons for filling, and so on, until the filling of multiple icons is completed. The filling of multiple icons can be completed when there is no icon that can be moved and filled in the multiple icons, or the filling of multiple icons can be completed when there is no blank display position between every two icons in the multiple icons.
[0063] In some embodiments, after determining the target icon from multiple icons and replacing the target icon at the display position of the icon to be operated for display, the target icon can be used as the icon to be operated and steps S230-S250 are repeated until multiple icons are replaced.
[0064] Compared with the method for moving icons provided in an embodiment of the present application, Figure 2 The icon moving method shown in the figure, this embodiment also uses the target icon as the icon to be operated, and repeatedly performs the icon filling operation until multiple icons are filled, thereby realizing the sequential filling of multiple icons, improving the display effect of the icons, and enhancing the user experience.
[0065] See also Figure 7 , Figure 7 The flowchart of the method for moving icons provided by an embodiment of the present application is shown in FIG. Figure 7 The process shown is described in detail, and the icon moving method may specifically include the following steps:
[0066] Step S310: displaying an icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a matrix, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral from the inside to the outside.
[0067] Step S320: In response to the icon operation instruction, determine the icon to be operated from the multiple icons, wherein the icon operation instruction is used to instruct to stop displaying the icon at its display position.
[0068] Step S330: Determine, from the multiple icons, an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon sequence number greater than the icon sequence number of the icon to be operated.
[0069] Step S340: Obtain the number of icons to be selected as the first number of icons.
[0070] For the detailed description of step S310 to step S340 , please refer to step S310 to step S340 , which will not be repeated here.
[0071] Step S350: If the number of the first icons is at least two, obtain the distance between at least two of the icons to be selected and the origin of the coordinate axis of the target coordinate system, wherein the icon numbers corresponding to the multiple icons increase spirally from the inside to the outside with the origin of the coordinate axis as the spiral center point.
[0072] In this embodiment, the icon editing interface can establish a target coordinate system, wherein the X axis of the target coordinate system can be parallel to the row in which the multiple icons are arranged, the Y axis of the target coordinate system can be parallel to the column in which the multiple icons are arranged, and the icon numbers corresponding to the multiple icons are spirally increased from the inside to the outside with the origin of the coordinate axis of the target coordinate system as the spiral center point, and the distances between two adjacent icons in the horizontal and vertical directions are consistent under the target coordinate system. For example, among the multiple icons, the icon with the icon number "0" is located in the display position closest to the origin of the coordinate axis in the first quadrant of the target coordinate system; the icon with the icon number "1" is located in the display position closest to the origin of the coordinate axis in the fourth quadrant of the target coordinate system; the icon with the icon number "2" is located in the display position closest to the origin of the coordinate axis in the third quadrant of the target coordinate system; the icon with the icon number "3" is located in the display position closest to the origin of the coordinate axis in the second quadrant of the target coordinate system.
[0073] In this embodiment, if the number of first icons is at least two, for example, if the number of first icons is two, three or four, it indicates that the number of icons to be selected is at least two, and the distance between each of the at least two icons to be selected and the origin of the coordinate axis of the target coordinate system can be obtained. As an implementable manner, the coordinate information of each of the at least two icons to be selected in the target coordinate system is obtained, and based on the coordinate information of each of the at least two icons to be selected in the target coordinate system and the coordinate information of the origin of the coordinate axis, the distance between the at least two coordinates to be selected and the origin of the coordinate axis of the target coordinate system can be obtained.
[0074] In some implementations, if the number of the first icons is one, it indicates that the number of icons to be selected is one, and the one icon to be selected can be directly determined as the target icon.
[0075] In some implementations, if the number of first icons is 0, indicating that the number of icons to be selected is 0, the icon to be operated can be directly removed from its display position, and the display positions of other icons among the multiple icons except the icon to be operated remain unchanged.
[0076] Step S360: Determine, from the at least two icons to be selected, the icon to be determined that has the largest distance from the origin of the coordinate axis.
[0077] In this embodiment, when the distances between at least two icons to be selected and the origin of the coordinate axis of the target coordinate system are obtained, the icon to be selected with the largest distance from the origin of the coordinate axis can be determined from the at least two icons to be selected, and the icon to be selected with the largest distance from the origin of the coordinate axis can be used as the icon to be determined.
[0078] In some embodiments, when the distances between at least two icons to be selected and the origin of the coordinate axis of the target coordinate system are obtained, the distances between at least two icons to be selected and the origin of the coordinate axis of the target coordinate system can be compared to obtain the icon to be selected with the largest distance from the origin of the coordinate axis as the icon to be determined.
[0079] Step S370: Acquire the number of the icons to be determined as the second number of icons, and determine the target icon from the icons to be determined based on the second number of icons.
[0080] In this embodiment, when determining the icon to be determined from at least two icons to be selected, the icon quantity of the icon to be determined can be obtained, the obtained icon quantity of the icon to be determined can be used as the second quantity, and the target icon can be determined from the icons to be determined based on the second quantity.
[0081] In some embodiments, a second preset mapping relationship may be pre-set and stored, and the preset mapping relationship may include the number of second icons, the method for determining the target icon, and the correspondence between the number of second icons and the method for determining the target icon. Therefore, in this embodiment, when the number of second icons is obtained, the method for determining the target icon corresponding to the number of second icons may be determined based on the second preset mapping relationship, so that the target icon may be determined from the icons to be determined according to the method for determining the target icon corresponding to the number of second icons.
[0082] In some embodiments, the number of the second icons may include one or two, which is not limited here. If the number of the second icons is one, the one to-be-determined icon may be directly determined as the target icon; if the number of the second icons is two, the to-be-determined icon with the smallest icon sequence number among the two to-be-determined icons may be determined as the target icon.
[0083] Step S380: remove the icon to be operated from its display position, and replace the target icon with the display position of the icon to be operated for display.
[0084] For the detailed description of step S380, please refer to step S150, which will not be repeated here.
[0085] For example, see Figure 8 , Figure 8 A schematic diagram of icon filling provided in an embodiment of the present application is shown, assuming that the icon to be operated is the icon with icon sequence number 0.
[0086] From the multiple icons, it can be determined that the icons to be selected that are adjacent to the display position of the icon with the icon number 0 and have an icon number greater than the icon number 0 are: the icon with the icon number 1, the icon with the icon number 3, the icon with the icon number 5, and the icon with the icon number 7. At this time, it can be known that the number of icons to be selected is 4 (that is, greater than 1), so the distances of the icon with the icon number 1, the icon with the icon number 3, the icon with the icon number 5, and the icon with the icon number 7 to the origin of the coordinate axis can be compared (such as Figure 5 As shown, the origin of the coordinate axis is the center point of the icon with icon number 0, the icon with icon number 1, the icon with icon number 2, and the icon with icon number 3). Among them, it is found that the distance between the icon with icon number 5 and the icon with icon number 7 and the origin of the coordinate axis is the largest, so the icon with a smaller icon number can be determined as the target icon from the icon with icon number 5 and the icon with icon number 7, that is, the icon with icon number 5 can be determined as the target icon, and the icon with icon number 5 can be moved from its display position to the display position of the icon with icon number 0.
[0087] Afterwards, the icon with the icon number 5 can be used as the icon to be operated, and from multiple icons, the icons to be selected that are adjacent to the display position of the icon with the icon number 5 and whose icon numbers are greater than the icon number 5 can be determined as: the icon with the icon number 6 and the icon with the icon number 18. At this point, it can be known that the number of icons to be selected is 2 (that is, greater than 1), so the distances from the icon with the icon number 6 and the icon with the icon number 18 to the origin of the coordinate axis can be compared. Among them, the comparison finds that the distance between the icon with the icon number 18 and the origin of the coordinate axis is greater than the distance between the icon with the icon number 6 and the origin of the coordinate axis, so the icon with the icon number 18 can be determined as the target icon, and the icon with the icon number 18 can be moved from its display position to fill the display position of the icon with the icon number 5.
[0088] Afterwards, the icon with the icon number 18 can be used as the icon to be operated, and from multiple icons, the icons to be selected that are adjacent to the display position of the icon with the icon number 18 and have an icon number greater than the icon number 18 can be determined as: the icon with the icon number 19 and the icon with the icon number 39. At this point, it can be known that the number of icons to be selected is 2 (that is, greater than 1), and the distances from the icon with the icon number 19 and the icon with the icon number 39 to the origin of the coordinate axis can be compared. Among them, the comparison finds that the distance between the icon with the icon number 39 and the origin of the coordinate axis is greater than the distance between the icon with the icon number 19 and the origin of the coordinate axis, so the icon with the icon number 39 can be determined as the target icon, and the icon with the icon number 39 can be moved from its display position to fill the display position of the icon with the icon number 18.
[0089] Afterwards, the icon with the icon number 39 can be used as the icon to be operated, and from multiple icons, the icon to be selected that is adjacent to the display position of the icon with the icon number 39 and has an icon number greater than the icon number 39 is determined to be: the icon with the icon number 40. At this point, it can be known that the number of icons to be selected is 1, so the icon with the icon number 40 can be directly determined as the target icon, and the icon with the icon number 40 can be moved from its display position to fill the display position of the icon with the icon number 39.
[0090] By analogy, the icons from icon number 40 to icon number 62 are all the judgment results of the icon with icon number 39, which will not be repeated here.
[0091] Finally, the icon with icon number 63 can be used as the icon to be operated. From multiple icons, an icon to be selected that is adjacent to the display position of the icon with icon number 63 and has an icon number greater than the icon number 63 can be determined. If it is found that there are no icons with larger icon numbers around the icon with icon number 63, the process ends.
[0092] Based on the above method, it can be determined that when the icon with icon number 0 is determined as the icon to be operated, the filling rule is 0~5~18~39~40~41~42~43~44~45~46~47~48~49~50~51~52~53~54~55~56~57~58~59~60~61~62~63.
[0093] Compared with the method for moving icons provided in an embodiment of the present application, Figure 2 The icon moving method shown in the figure, this embodiment also adopts different target icon determination methods according to the different numbers of icons to be selected, thereby improving the accuracy of the determined target icon and enhancing the user experience.
[0094] See also Fig. 9 , Fig. 9 The flowchart of the method for moving icons provided by an embodiment of the present application is shown in FIG. Fig. 9 The process shown is described in detail, and the method may specifically include the following steps:
[0095] Step S410: displaying an icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a matrix, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral from the inside to the outside.
[0096] Step S420: In response to the icon operation instruction, determine the icon to be operated from the multiple icons, wherein the icon operation instruction is used to instruct to stop displaying the icon at its display position.
[0097] For the detailed description of step S410 to step S420, please refer to step S110 to step S120, which will not be repeated here.
[0098] Step S430: Obtain the icon serial number corresponding to the icon to be operated as the first icon serial number, and determine the icon circle to which the icon to be operated belongs in the n icon circles and the icon order in the icon circle to which it belongs based on the first icon serial number, wherein the n icon circles are established according to the display positions of the multiple icons, n is a natural number, when n=0, the number of icons included in the 0th icon circle is one, and the one icon is the icon with the smallest icon serial number among the multiple icons, when n>0, the number of icons included in the nth icon circle is 8n, and in each of the icon circles, the icon located in the lower right corner of the icon circle is the 8n-1th icon of the icon circle to which it belongs, and the icon located at the adjacent position to the left of the 8n-1th icon is the 0th icon of the icon circle to which it belongs.
[0099] In this embodiment, for multiple icons arranged in a determinant in the icon editing interface, n icon circles can be established according to the display positions of the multiple icons, where n is a natural number. When n=0, the number of icons included in the 0th icon circle is one, and the one icon is the icon with the smallest icon number among the multiple icons; when n>0, the number of icons included in the nth icon circle is 8n, and in each of the icon circles, the icon located in the lower right corner of the icon circle is the 8n-1th icon of the icon circle to which it belongs, and the icon located in the adjacent position to the left of the 8n-1th icon is the 0th icon of the icon circle to which it belongs.
[0100] For example, assuming that the icon numbers corresponding to the multiple icons are natural numbers from 0 to 63, and the icon numbers 0 to 63 increase in a spiral from the inside to the outside. Then, in the n icon circles established, the first icon circle includes one icon and the icon number of the icon is 0; the second icon circle includes 8 icons and the icon numbers of the 8 icons are 1 to 8, the icon located at the lower right corner of the second icon circle is the 7th icon of the second icon circle (the icon with the icon number 8), and the icon located at the left adjacent position of the 7th icon is the 0th icon of the second icon circle (the icon with the icon number 1); the third icon circle includes 16 icons and the icon numbers of the 16 icons are 9 to 24, the icon located at the lower right corner of the third icon circle is the 15th icon of the third icon circle (the icon with the icon number 24), and the icon located at the left adjacent position of the 7th icon is the 0th icon of the second icon circle (the icon with the icon number 9), and so on.
[0101] In some embodiments, when the icon to be operated is determined, the icon serial number corresponding to the icon to be operated can be obtained, and the icon serial number corresponding to the icon to be operated can be used as the first icon serial number. Based on the first icon serial number, the icon circle to which the icon to be operated belongs in the above-mentioned n icon circles, as well as the icon order in the icon circle to which it belongs are determined.
[0102] See also Fig.10 , Fig.10 FIG. 1 shows a schematic diagram of multiple icon circles provided in an embodiment of the present application. Fig.11 As shown, for multiple icons with icon numbers 0 to 63, n icon circles are established, among which the icon with icon number 0 belongs to the 0th icon circle, the icons with icon numbers 1 to 8 belong to the first icon circle, the icons with icon numbers 9 to 24 belong to the second icon circle, the icons with icon numbers 25 to 48 belong to the third icon circle, and so on. It can be found that the 0th icon circle has only one icon with icon number 0. If the nth icon circle is full, the nth icon circle includes 8n icons, such as the first icon circle includes 8 icons and the second icon circle includes 16 icon circles. In the nth circle (n≠0), the icon in the lower right corner is the tail and the icon on the left of the tail is the head. For example, the tail of the first icon circle is the icon with icon number 8 and the head is the icon with icon number 1. The tail of the second icon circle is the icon with icon number 24 and the head is the icon with icon number 9. We may call the head the 0th icon in the nth icon circle, and the tail the 8n-1th icon in the nth icon circle. For example, the icon with icon number 1 is the 0th icon in the first icon circle, the icon with icon number 8 is the 7th icon in the 1st icon circle, the icon with icon number 9 is the 0th icon in the second icon circle, and the icon with icon number 24 is the 15th icon in the second icon circle.
[0103] Based on this, given an icon, it is possible to calculate which icon circle it belongs to and which icon it is in the icon circle. As a feasible method, when the first icon serial number is obtained, the total number of icons included in each icon circle can be subtracted from the first icon serial number. If the result after subtracting the total number of icons in the nth icon circle is less than the total number of icons in the n+1th icon circle, it means that the icon to be operated belongs to the n+1th icon circle, and the result indicates the nth icon of the n+1th icon circle that the icon to be operated is. For example, assuming that the serial number of the icon to be operated is 30, you can first subtract 1, the total number of icons included in the 0th icon circle, from 30 to get 29. 29 is not less than 8, the total number of icons included in the 1st icon circle, so you can subtract 8, the total number of icons included in the first icon circle, from 29 to get 21. 21 is not less than 16, the total number of icons included in the second icon circle, so you can subtract 16, the total number of icons included in the second icon circle, from 21 to get 5. 5 is less than 24, the total number of icons included in the third icon circle. Therefore, it can be determined that the icon to be operated with the icon serial number 30 belongs to the third icon circle and is the 5th icon in the third icon circle.
[0104] Step S440: Determine a target direction according to the icon circle to which the icon to be operated belongs among the n icon circles and the icon ranking in the icon circle to which it belongs, and determine the icon to be selected located in the target direction.
[0105] In this embodiment, when the icon circle to which the icon to be operated belongs in the nth icon circle and the icon ranking of the icon circle to which it belongs are obtained, the target direction can be determined and the icon to be selected located in the target direction can be determined according to the icon circle to which the icon to be operated belongs in the nth icon circle and the icon ranking of the icon circle to which it belongs.
[0106] In some embodiments, when n=0, the target direction can be determined to be above the icon to be operated; when n>0, the target direction is determined according to the icon circle to which the icon to be operated belongs in the nth icon circle and the icon order in the icon circle to which it belongs. Among them, when n=0, it can be determined that the icon circle to which the icon to be operated belongs is the 0th icon circle, and its next icon is above it, that is, it can be determined that the target direction is above the icon to be operated; when n>0, it can be determined that the icon circle described by the icon to be operated is the nth icon circle (n>0), and its next icon may be above, below, to the left, to the right, etc., which is not limited here.
[0107] As an implementable manner, the electronic device may pre-set and store a first condition, a second condition, and a third condition, wherein the first condition is x>4n-3 and x<6n, the second condition is x=0 or x>6n-1, and the third condition is x<2n, wherein x is the icon ranking of the icon to be operated in the icon circle to which it belongs. Therefore, in this embodiment, when the icon circle to which the icon to be operated belongs in the nth icon circle is obtained (i.e., n is obtained) and the icon ranking of the icon circle to which it belongs (i.e., x is obtained), the icon to be operated may be compared with the first condition, the second condition, and the third condition, respectively, to determine whether the icon to be operated satisfies the first condition, the second condition, and the third condition, and the determination result is obtained as the first determination result.
[0108] If the first judgment result indicates that the icon to be operated satisfies the first condition, that is, if the first judgment result indicates that the icon to be operated satisfies x>4n-3 and x<6n, then it can be determined that the target direction is above the icon to be operated.
[0109] If the first judgment result indicates that the icon to be operated satisfies the second condition, that is, if the first judgment result indicates that the icon to be operated satisfies x=0 or x>6n-1, then the target direction can be determined to be the right of the icon to be operated.
[0110] If the first judgment result indicates that the icon to be operated satisfies the third condition, that is, if the first judgment result indicates that the icon to be operated satisfies x<2n, then the target direction may be determined to be below the icon to be operated.
[0111] Among them, if the first judgment result represents that the icon to be operated does not satisfy the first condition, the second condition and the third condition, that is, if the first judgment result represents that the icon to be operated does not satisfy x>4n-3 and x<6n, does not satisfy x=0 or x>6n-1, and does not satisfy x<2n, then it can be determined that the target direction is to the left of the icon to be operated.
[0112] In some implementations, when the icon to be operated and the target direction are determined, an icon located in the target direction of the icon to be operated may be determined based on the icon to be operated and the target direction as the icon to be operated.
[0113] For example, taking the icon with icon number 30 as an example, the icon with icon number 30 belongs to the 5th icon in the third icon circle, then n=3, x=5. It can be known that the icon with icon number 30 satisfies the third condition, and the target direction is below the icon with icon number 30.
[0114] Step S450: Obtain the icon serial number of the icon to be selected as the second icon serial number.
[0115] In this embodiment, when the icon to be selected is determined, the icon serial number of the icon to be selected may be obtained, and the icon serial number of the icon to be selected may be used as the second icon serial number.
[0116] In some implementations, when n=0, the second icon number can be determined to be 5 when the target direction is the direction of the icon to be operated, 1 when the target direction is below the icon to be operated, 3 when the target direction is to the left of the icon to be operated, and 7 when the target direction is to the right of the icon to be operated. Among them, when n=0, it can be determined that the target direction is above the icon to be operated, and the icon number of the icon to be operated can be determined to be 5.
[0117] In some implementations, when n>0, the serial number of the icon to be selected can be obtained as the second icon serial number based on the first icon serial number, the icon circle to which the icon to be operated belongs among the n icon circles, and the icon ordering in the icon circle to which it belongs.
[0118] As an implementable method, the electronic device can pre-set and store the fourth condition, the fifth condition, the sixth condition, the seventh condition, the eighth condition, the ninth condition and the tenth condition, wherein the fourth condition is x=8n-1, the fifth condition is x=2n-1, the sixth condition is x=4n-1, the seventh condition is x=6n-1, the eighth condition is x<2n-1, the ninth condition is x<4n-1, and the tenth condition is x<6n-1, wherein x is the icon order of the icon to be operated in the icon circle to which it belongs, and m is the serial number of the first icon. Therefore, in this embodiment, when the icon sequence number of the icon to be operated is obtained (i.e., m is obtained), the icon circle to which the icon to be operated belongs in the nth icon circle (i.e., n is obtained), and the icon order of the icon circle to which it belongs (i.e., x is obtained), the icon to be operated can be compared with the fourth condition, the fifth condition, the sixth condition, the seventh condition, the eighth condition, the ninth condition, and the tenth condition, respectively, to determine whether the icon to be operated satisfies the fourth condition, the fifth condition, the sixth condition, the seventh condition, the eighth condition, the ninth condition, and the tenth condition, and the judgment result is obtained as the second judgment result.
[0119] Among them, if the second judgment result indicates that the icon to be operated satisfies the fourth condition, that is, if the second judgment result indicates that the icon to be operated satisfies x=8n-1, then it can be determined that the second icon serial number is m-1 when the target direction is above the icon to be operated, m+1 when the target direction is below the icon to be operated, m+1-8n when the target direction is to the left of the icon to be operated, and m+7+8n when the target direction is to the right of the icon to be operated. Based on this, combined with the target direction determined in the above manner (one of the directions of up, down, left, and right), the second icon serial number can be determined.
[0120] Among them, if the second judgment result indicates that the icon to be operated satisfies the fifth condition, that is, if the second judgment result indicates that the icon to be operated satisfies x=2n-1, then it can be determined that the second icon serial number is m+1 when the target direction is above the icon to be operated, m+1+8n when the target direction is below the icon to be operated, m+3+8n when the target direction is to the left of the icon to be operated, and m-1 when the target direction is to the right of the icon to be operated. Based on this, combined with the target direction determined in the above manner (one of the directions of up, down, left, and right), the second icon serial number can be determined.
[0121] Among them, if the second judgment result indicates that the icon to be operated satisfies the sixth condition, that is, if the second judgment result indicates that the icon to be operated satisfies x=4n-1, then it can be determined that the second icon serial number is m+5+8n when the target direction is above the icon to be operated, m-1 when the target direction is below the icon to be operated, m+3+8n when the target direction is to the left of the icon to be operated, and m-1 when the target direction is to the right of the icon to be operated. Based on this, combined with the target direction determined in the above manner (one of the directions of up, down, left, and right), the second icon serial number can be determined.
[0122] Among them, if the second judgment result indicates that the icon to be operated satisfies the seventh condition, that is, if the second judgment result indicates that the icon to be operated satisfies x=6n-1, then it can be determined that the second icon serial number is m+5+8n when the target direction is above the icon to be operated, m+1 when the target direction is below the icon to be operated, m-1 when the target direction is to the left of the icon to be operated, and m-7+8n when the target direction is to the right of the icon to be operated. Based on this, combined with the target direction determined in the above manner (one of the directions of up, down, left, and right), the second icon serial number can be determined.
[0123] Among them, if the second judgment result indicates that the icon to be operated satisfies the eighth condition, that is, if the second judgment result indicates that the icon to be operated satisfies x<2n-1, then it can be determined that the second icon serial number is m+7-8n when the target direction is above the icon to be operated, m+1+8n when the target direction is below the icon to be operated, and m+1 when the target direction is to the left of the icon to be operated, and when x=0, when the target direction is to the right of the icon to be operated, it is m-1+8n, and when x≠0, when the target direction is to the right of the icon to be operated, it is m-1. Based on this, combined with the target direction determined in the above manner (one of the directions of up, down, left, and right), the second icon serial number can be determined.
[0124] Among them, if the second judgment result indicates that the icon to be operated satisfies the ninth condition, that is, if the second judgment result indicates that the icon to be operated satisfies x<4n-1, then it can be determined that the second icon serial number is m+1 when the target direction is above the icon to be operated, m-1 when the target direction is below the icon to be operated, m+3+8n when the target direction is to the left of the icon to be operated, and m+5-8n when the target direction is to the right of the icon to be operated. Based on this, combined with the target direction determined in the above manner (one of the directions of up, down, left, and right), the second icon serial number can be determined.
[0125] Among them, if the second judgment result indicates that the icon to be operated satisfies the tenth condition, that is, if the second judgment result indicates that the icon to be operated satisfies x<6n-1, then it can be determined that the second icon serial number is m+5+8n when the target direction is above the icon to be operated, m+3-8n when the target direction is below the icon to be operated, m-1 when the target direction is to the left of the icon to be operated, and m+1 when the target direction is to the right of the icon to be operated. Based on this, combined with the target direction determined in the above manner (one of the directions of up, down, left, and right), the second icon serial number can be determined.
[0126] Among them, if the second judgment result indicates that the icon to be operated does not satisfy the fourth condition, the fifth condition, the sixth condition, the seventh condition, the eighth condition, the ninth condition, and the tenth condition, that is, the second judgment result indicates that the icon to be operated does not satisfy x=8n-1, x=2n-1, x=4n-1, x=6n-1, x<2n-1, x<4n-1, x<6n-1, then it can be determined that the second icon sequence number is m-1 when the target direction is above the icon to be operated, m+1 when the target direction is below the icon to be operated, m+1-8n when the target direction is to the left of the icon to be operated, and m+7+8n when the target direction is to the right of the icon to be operated. Based on this, combined with the target direction determined in the above manner (one of the directions of up, down, left, and right), the second icon sequence number can be determined.
[0127] Among them, taking the icon with the icon number 30 as an example, the icon with the icon number 30 belongs to the fifth icon in the third icon circle, then n=3, x=5, m=30, and its target direction is below the icon with the icon number 30. The icon with the icon number 30 meets the eighth condition. When the target direction is below the icon to be operated, the second icon number is m+1+
[0128] 8n=30+1+3*8=55.
[0129] Step S460: If the second icon sequence number is less than or equal to the total number of the multiple icons, the icon to be selected is determined as the target icon.
[0130] The filling of icons can be roughly divided into two stages. The first stage is to find a path from the icon to be operated to the edge area (such as Fig.11 As shown), the second stage is to fill in the position in a spiral manner. When the second icon number is obtained, the second icon number can be checked. If the second icon number is greater than the total number of all icons, it means that the boundary is crossed, that is, the first stage has calculated to the edge, and the second stage begins. If it is less than or equal to the total number of all icons, it means that the boundary is not crossed, and the icon corresponding to the second icon number is continued as the next icon, and the first stage is executed again until the boundary is crossed.
[0131] In some implementations, when the second icon serial number is obtained, the second icon serial number can be compared with the total number of multiple icons to determine whether the second icon serial number is less than or equal to the total number of multiple icons. If it is determined that the second icon serial number is less than or equal to the total number of multiple icons, the icon to be selected can be determined as the target icon for filling.
[0132] Step S470: If the second icon serial number is greater than the total number of the multiple icons, the icon with an icon serial number of m+1 is determined as the target icon, where m is the first icon serial number.
[0133] If it is determined that the second icon serial number is greater than the total number of the multiple icons, a spiral filling may be performed, that is, the icon with the icon serial number m+1 is determined as the target icon for filling.
[0134] For example, taking the icon with the icon number 39 as an example, it is the 14th icon in the third icon circle. The above algorithm calculates that the next icon of the icon with the icon number 39 is above it, and the icon number of the next icon is greater than the total number of multiple icons (64), which means that there is no next icon above it, which can be considered to be out of bounds. Then, spiral filling can be performed, that is, the icon with the icon number 39+1=40 is determined as the target icon for filling.
[0135] Step S480: remove the icon to be operated from its display position, and replace the target icon with the display position of the icon to be operated for display.
[0136] For the detailed description of step S480, please refer to step S150, which will not be repeated here.
[0137] Compared with the method for moving icons provided in an embodiment of the present application, Figure 2The icon moving method shown in the figure, this embodiment also obtains the icon serial number corresponding to the icon to be operated as the first icon serial number, and determines the icon circle to which the icon to be operated belongs in the n icon circles and the icon ranking in the icon circle to which it belongs based on the first icon serial number, determines the target direction and the icon to be selected located in the target direction according to the icon circle to which the icon to be operated belongs in the n icon circles and the icon ranking in the icon circle to which it belongs, obtains the icon serial number of the icon to be selected as the second icon serial number, if the second icon serial number is less than or equal to the total number of multiple icons, the icon to be selected is determined as the target icon, if the second icon serial number is greater than the total number of multiple icons, the icon with the icon serial number of the first icon serial number + 1 is determined as the target icon, thereby improving the efficiency and accuracy of determining the target icon.
[0138] See also Fig.12 , Fig.12 A schematic flow chart of a method for moving an icon provided in an embodiment of the present application is shown.
[0139] The following will focus on Fig.12 The process shown is described in detail, and the method may specifically include the following steps:
[0140] Step S510: displaying an icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a matrix, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral from the inside to the outside.
[0141] Step S520: In response to the icon operation instruction, determine the icon to be operated from the multiple icons, wherein the icon operation instruction is used to instruct to stop displaying the icon at its display position.
[0142] For the detailed description of step S510 to step S520, please refer to step S110 to step S120, which will not be repeated here.
[0143] Step S530: Obtain the icon serial number of the icon to be operated.
[0144] In this embodiment, when the icon to be operated is obtained, the icon serial number of the icon to be operated can be obtained. As an implementable method, when the icon to be operated is obtained, the coordinate information of the icon to be operated in the target coordinate system can be obtained, and the icon serial number of the icon to be operated can be obtained based on the coordinate information of the icon to be operated in the target coordinate system.
[0145] Step S540: Based on a preset mapping relationship, determine the target icon serial number corresponding to the icon serial number of the icon to be operated, and determine the icon corresponding to the target icon serial number as the target icon.
[0146] In some embodiments, a preset mapping relationship may be pre-set and stored, wherein the preset mapping relationship may include a path for filling in the icon serial number corresponding to each of the multiple icons. Therefore, in this embodiment, when the icon serial number corresponding to the icon to be operated is obtained, the target icon serial number corresponding to the icon serial number of the icon to be operated may be determined based on the preset mapping relationship, and the icon corresponding to the target icon serial number may be determined as the target icon, thereby effectively improving the speed of determining the target icon and improving the user experience.
[0147] In some implementations, when there is deletion, movement, addition, etc. of an icon in a plurality of icons, the preset mapping relationship may be updated to ensure the accuracy of the preset mapping relationship, which will not be elaborated herein.
[0148] Step S550: remove the icon to be operated from its display position, and replace the target icon with the display position of the icon to be operated for display.
[0149] For the detailed description of step S550, please refer to step S150, which will not be repeated here.
[0150] Compared with the method for moving icons provided in an embodiment of the present application, Figure 2 The icon moving method shown in the figure, this embodiment also obtains the icon serial number of the icon to be operated, determines the target icon serial number corresponding to the icon serial number of the icon to be operated based on a preset mapping relationship, and determines the icon corresponding to the target icon serial number as the target icon, thereby improving the efficiency of obtaining the target icon.
[0151] See also Fig.13 , Fig.13 The module block diagram of the mobile device of the icon provided by an embodiment of the present application is shown. Fig.13 As shown in the block diagram, the icon moving device 200 includes: an icon editing interface display module 210, a to-be-operated icon determination module 220, a to-be-selected icon determination module 230, a target icon determination module 240 and an icon moving module 250, wherein:
[0152] The icon editing interface display module 210 is used to display the icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a matrix, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral from the inside to the outside.
[0153] The to-be-operated icon determining module 220 is used to determine the to-be-operated icon from the multiple icons in response to an icon operation instruction, wherein the icon operation instruction is used to instruct to stop displaying the icon at its display position.
[0154] The to-be-selected icon determining module 230 is configured to determine, from the plurality of icons, an icon to be selected that is adjacent to the display position of the to-be-operated icon and has an icon sequence number greater than that of the to-be-operated icon.
[0155] The target icon determination module 240 is configured to obtain the number of icons to be selected as a first number of icons, and determine a target icon from the icons to be selected based on the first number of icons.
[0156] Furthermore, the target icon determination module 240 includes: a distance acquisition submodule, a to-be-determined icon determination submodule and a first target icon determination submodule, wherein:
[0157] A distance acquisition submodule is used to obtain the distance between at least two of the icons to be selected and the origin of the coordinate axis of the target coordinate system if the number of the first icons is at least two, wherein the icon numbers corresponding to the multiple icons increase spirally from the inside to the outside with the origin of the coordinate axis as the spiral center point.
[0158] The to-be-determined icon determination submodule is used to determine, from the at least two to-be-selected icons, the to-be-determined icon that has the largest distance from the origin of the coordinate axis.
[0159] The first target icon determination submodule is used to obtain the icon quantity of the icons to be determined as the second icon quantity, and determine the target icon from the icons to be determined based on the second icon quantity.
[0160] Furthermore, the first target icon determination submodule includes: a first target icon determination unit and a second target icon determination unit, wherein:
[0161] The first target icon determining unit is configured to determine one of the icons to be determined as the target icon if the number of the second icons is one.
[0162] The second target icon determining unit is configured to determine the icon with the smallest icon sequence number from the two icons to be determined as the target icon if the number of the second icons is two.
[0163] Further, the target icon determination module 240 includes: a second target icon determination submodule, wherein:
[0164] The second target icon determination submodule is used to determine one of the icons to be selected as the target icon if the number of the first icons is one.
[0165] The icon moving module 250 is used to remove the icon to be operated from its display position, and replace the target icon to the display position of the icon to be operated for display.
[0166] Furthermore, the icon moving device 200 further includes: a circulation module, wherein:
[0167] A loop module is used to take the target icon as the icon to be operated, and repeatedly execute the steps of determining, from the multiple icons, an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon number greater than the icon number of the icon to be operated, to removing the icon to be operated from its display position and filling the display position of the icon to be operated with the target icon for display, until the filling of the multiple icons is completed.
[0168] Furthermore, the icon moving device 200 further includes: a display position maintaining module, wherein:
[0169] The display position maintaining module is used for removing the icon to be operated from its display position if the number of the first icons is 0, and maintaining the display positions of other icons among the multiple icons except the icon to be operated unchanged.
[0170] Furthermore, the icon moving device 200 further includes: an information acquisition module, a direction determination module, an icon sequence number acquisition module and a target icon determination module, wherein:
[0171] An information acquisition module is used to obtain the icon serial number corresponding to the icon to be operated as the first icon serial number, and determine the icon circle to which the icon to be operated belongs in n icon circles and the icon order in the icon circle to which it belongs based on the first icon serial number, wherein the n icon circles are established according to the display positions of the multiple icons, n is a natural number, when n=0, the number of icons included in the 0th icon circle is one, and the one icon is the icon with the smallest icon serial number among the multiple icons, when n>0, the number of icons included in the nth icon circle is 8n, and in each of the icon circles, the icon located in the lower right corner of the icon circle is the 8n-1th icon of the icon circle to which it belongs, and the icon located in the adjacent position to the left of the 8n-1th icon is the 0th icon of the icon circle to which it belongs.
[0172] a direction determination module, used to determine a target direction and determine an icon to be selected located in the target direction according to the icon circle to which the icon to be operated belongs among the n icon circles and the icon ranking in the icon circle to which it belongs;
[0173] Further, the direction determination module includes: a first direction determination submodule and a second direction determination submodule, wherein:
[0174] The first direction determination submodule is used to determine that the target direction is above the icon to be operated when n=0.
[0175] The second direction determination submodule is used to determine the target direction according to the icon circle to which the icon to be operated belongs among the n icon circles and the icon order in the icon circle to which it belongs when n>0.
[0176] Further, the second direction determination submodule includes: a first direction determination unit, a second direction determination unit, a third direction determination unit and a fourth direction determination unit, wherein:
[0177] The first direction determining unit is used to determine that the target direction is above the icon to be operated if the icon to be operated satisfies a first condition, wherein the first condition is x>4n-3 and x<6n, and x is the icon ranking of the icon to be operated in the icon circle to which it belongs.
[0178] The second direction determining unit is used to determine that the target direction is the right of the icon to be operated if the icon to be operated satisfies a second condition, wherein the second condition is x=0 or x>6n-1.
[0179] The third direction determining unit is configured to determine that the target direction is below the icon to be operated if the icon to be operated satisfies a third condition, wherein the third condition is x<2n.
[0180] The fourth direction determining unit is configured to determine that the target direction is the left of the icon to be operated if the icon to be operated does not satisfy the first condition, the second condition and the third condition.
[0181] The icon serial number acquisition module is used to acquire the icon serial number of the icon to be selected as the second icon serial number.
[0182] Furthermore, the icon number acquisition module includes: a first icon number acquisition submodule and a second icon number acquisition submodule, wherein:
[0183] The first icon serial number acquisition submodule is used to determine, when n=0, that the second icon serial number is 5, 1, 3 and 7 respectively when the target direction is up, down, left, and right of the icon to be operated.
[0184] The second icon serial number acquisition submodule is used to acquire the serial number of the icon to be selected as the second icon serial number based on the first icon serial number, the icon circle to which the icon to be operated belongs in the n icon circles, and the icon ordering in the icon circle to which it belongs when n>0.
[0185] Furthermore, the second icon serial number acquisition submodule includes: a first icon serial number acquisition unit, a second icon serial number acquisition unit, a third icon serial number acquisition unit, a fourth icon serial number acquisition unit, a fifth icon serial number acquisition unit, a sixth icon serial number acquisition unit, a seventh icon serial number acquisition unit and an eighth icon serial number acquisition unit, wherein:
[0186] The first icon serial number acquisition unit is used to determine that the second icon serial number is m-1, m+1, m+1-8n and m+7+8n respectively when the target direction is the up, down, left and right of the icon to be operated if the icon to be operated satisfies the fourth condition, wherein the fourth condition is x=8n-1, x is the icon order of the icon to be operated in the icon circle to which it belongs, and m is the first icon serial number.
[0187] The second icon serial number acquisition unit is used to determine that the second icon serial number is m+1, m+1+8n, m+3+8n and m-1 respectively when the target direction is the up, down, left and right of the icon to be operated if the icon to be operated satisfies the fifth condition, wherein the fifth condition is x=2n-1.
[0188] The third icon serial number acquisition unit is used to determine that the second icon serial number is m+5+8n, m-1, m+3+8n and m+1 respectively when the target direction is the up, down, left and right of the icon to be operated if the icon to be operated satisfies the sixth condition, wherein the sixth condition is x=4n-1.
[0189] The fourth icon serial number acquisition unit is used to determine that if the icon to be operated satisfies the seventh condition, the second icon serial number is m+5+8n, m+1, m-1 and m+7+8n respectively when the target direction is the up, down, left and right of the icon to be operated, wherein the seventh condition is x=6n-1.
[0190] The fifth icon serial number acquisition unit is used to determine, if the icon to be operated satisfies the eighth condition, that the second icon serial number is m+7-8n, m+1+8n and m+1 respectively when the target direction is the up, down, left and right of the icon to be operated, wherein the eighth condition is x<2n-1, and when x=0, the second icon serial number is m-1+8n when the target direction is the right of the icon to be operated, and when x≠0, the second icon serial number is m-1 when the target direction is the right of the icon to be operated.
[0191] The sixth icon serial number acquisition unit is used to determine that if the icon to be operated satisfies the ninth condition, the second icon serial number is m+1, m-1, m+3+8n, m+5-8n respectively when the target direction is the up, down, left, and right of the icon to be operated, wherein the ninth condition is x<4n-1.
[0192] The seventh icon serial number acquisition unit is used to determine that if the icon to be operated satisfies the tenth condition, the second icon serial number is m+5+8n, m+3-8n, m-1, m+1 respectively when the target direction is the up, down, left, and right of the icon to be operated, wherein the tenth condition is x<6n-1.
[0193] The eighth icon serial number acquisition unit is used to determine that the second icon serial number is m-1, m+1, m+1-8n, m+7+8n respectively when the target direction is the up, down, left, and right of the icon to be operated if the icon to be operated does not satisfy the fourth condition, the fifth condition, the sixth condition, the seventh condition, the eighth condition, the ninth condition and the tenth condition.
[0194] The target icon determination module is used to determine the icon to be selected as the target icon if the second icon sequence number is less than or equal to the total number of the multiple icons.
[0195] Furthermore, the icon moving device 200 further includes: a target icon determination module, wherein:
[0196] A target icon determination module is used to determine the icon with an icon number of m+1 as the target icon if the second icon number is greater than the total number of the multiple icons, wherein m is the first icon number.
[0197] Furthermore, the icon moving device 200 further includes: an icon sequence number obtaining module and a target icon determining module, wherein:
[0198] The icon serial number acquisition module is used to acquire the icon serial number of the icon to be operated.
[0199] The target icon determination module is used to determine the target icon serial number corresponding to the icon serial number of the icon to be operated based on a preset mapping relationship, and determine the icon corresponding to the target icon serial number as the target icon.
[0200] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0201] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0202] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0203] See also Fig.14 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0204] Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0205] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal 100 during use.
[0206] See also Fig.15 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 300 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0207] The computer readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 310 can be compressed, for example, in an appropriate form.
[0208] In summary, the icon moving method, device, electronic device and storage medium provided in the embodiments of the present application display an icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a matrix, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral manner from the inside to the outside. In response to an icon operation instruction, an icon to be operated is determined from the plurality of icons, wherein the icon operation instruction is used to instruct to stop the display of the icon at its display position, and from the plurality of icons, an icon to be selected that is adjacent to the display position of the icon to be operated and whose icon serial number is greater than the icon serial number of the icon to be operated is determined, the icon number of the icons to be selected is obtained as the first icon number, and a target icon is determined from the icons to be selected based on the first icon number, the icon to be operated is removed from its display position, and the target icon is filled in the display position of the icon to be operated for display, so that by reasonably setting the icon filling logic, the problem of icons being disrupted during the filling process can be avoided, thereby improving the user experience.
[0209] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for moving an icon, characterized in that: The method comprises: Displaying an icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a matrix, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral from the inside to the outside; In response to an icon operation instruction, determining an icon to be operated from the plurality of icons, wherein the icon operation instruction is used to instruct to stop displaying the icon at its display position; Determine, from the multiple icons, an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon sequence number greater than the icon sequence number of the icon to be operated; Acquire the number of icons to be selected as a first number of icons, and determine an icon to be selected from the icons to be selected as a target icon based on the first number of icons; The icon to be operated is removed from its display position, and the target icon is added to the display position of the icon to be operated for display.
2. The method according to claim 1, characterized in that After removing the icon to be operated from its display position and replacing the target icon at the display position of the icon to be operated for display, the method further includes: Take the target icon as the icon to be operated, and repeat the steps of determining, from the multiple icons, an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon number greater than the icon number of the icon to be operated, to removing the icon to be operated from its display position, and replacing the target icon at the display position of the icon to be operated for display, until the replacement of the multiple icons is completed.
3. The method according to claim 1, characterized in that: The determining a target icon from the icons to be selected based on the first number of icons includes: If the number of the first icons is at least two, then obtaining the distance between each of the at least two icons to be selected and the origin of the coordinate axis of the target coordinate system, wherein the icon numbers corresponding to each of the multiple icons increase in a spiral from the inside to the outside with the origin of the coordinate axis as the spiral center point; Determine, from the at least two icons to be selected, the icon to be determined that has the largest distance from the origin of the coordinate axis; The icon quantity of the icons to be determined is acquired as a second icon quantity, and the target icon is determined from the icons to be determined based on the second icon quantity.
4. The method according to claim 3, characterized in that: The determining the target icon from the icons to be determined based on the second number of icons includes: If the number of the second icons is one, determining one of the icons to be determined as the target icon; or If the number of the second icons is two, the icon to be determined with the smallest icon number among the two icons to be determined is determined as the target icon.
5. The method according to claim 1, characterized in that The determining a target icon from the icons to be selected based on the first number of icons includes: If the number of the first icons is one, one of the icons to be selected is determined as the target icon.
6. The method according to claim 1, characterized in that The method further comprises: If the number of the first icons is 0, the icon to be operated is removed from its display position, and the display positions of other icons among the multiple icons except the icon to be operated are kept unchanged.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Obtaining an icon sequence number corresponding to the icon to be operated as a first icon sequence number, and determining the icon circle to which the icon to be operated belongs in n icon circles and the icon order in the icon circle to which it belongs based on the first icon sequence number, wherein the n icon circles are established according to the display positions of the multiple icons, and n is a natural number. When n=0, the number of icons included in the 0th icon circle is one, and the one icon is an icon with the smallest icon sequence number among the multiple icons. When n>0, the number of icons included in the nth icon circle is 8n, and in each of the icon circles, the icon located at the lower right corner of the icon circle is the 8n-1th icon of the icon circle to which it belongs, and the icon located at the adjacent position to the left of the 8n-1th icon is the 0th icon of the icon circle to which it belongs; Determine a target direction according to the icon circle to which the icon to be operated belongs among the n icon circles and the icon ranking in the icon circle to which it belongs, and determine the icon to be selected located in the target direction; Obtaining the icon serial number of the icon to be selected as the second icon serial number; If the second icon sequence number is less than or equal to the total number of the multiple icons, the icon to be selected is determined as the target icon.
8. The method according to claim 7, characterized in that The determining the target direction according to the icon circle to which the icon to be operated belongs among the n icon circles and the icon order in the icon circle to which the icon to be operated belongs includes: When n=0, the target direction is determined to be above the icon to be operated; When n>0, the target direction is determined according to the icon circle to which the icon to be operated belongs among the n icon circles and the order of icons in the icon circle to which it belongs.
9. The method according to claim 8, characterized in that The determining the target direction according to the icon circle to which the icon to be operated belongs among the n icon circles and the icon order in the icon circle to which it belongs comprises: If the icon to be operated satisfies a first condition, the target direction is determined to be above the icon to be operated, wherein the first condition is x>4n-3 and x<6n, and x is the icon ranking of the icon to be operated in the icon circle to which it belongs; If the icon to be operated satisfies a second condition, determining the target direction to be the right of the icon to be operated, wherein the second condition is x=0 or x>6n-1; If the icon to be operated satisfies a third condition, determining the target direction to be below the icon to be operated, wherein the third condition is x<2n; If the icon to be operated does not satisfy the first condition, the second condition and the third condition, the target direction is determined to be the left of the icon to be operated.
10. The method according to claim 7, characterized in that The obtaining the icon serial number of the icon to be selected as the second icon serial number includes: When n=0, the second icon sequence number is determined to be 5, 1, 3 and 7 in sequence when the target direction is the top, bottom, left and right of the icon to be operated; When n>0, based on the first icon serial number, the icon circle to which the icon to be operated belongs among the n icon circles, and the icon ordering in the icon circle to which it belongs, the serial number of the icon to be selected is obtained as the second icon serial number.
11. The method according to claim 10, characterized in that The acquiring the sequence number of the icon to be selected as the second icon sequence number based on the first icon sequence number, the icon circle to which the icon to be operated belongs in the n icon circles, and the icon order in the icon circle to which the icon to be operated belongs, comprises: If the icon to be operated satisfies the fourth condition, it is determined that the second icon sequence number is m-1, m+1, m+1-8n and m+7+8n in sequence when the target direction is the top, bottom, left and right of the icon to be operated, wherein the fourth condition is x=8n-1, x is the icon sequence of the icon to be operated in the icon circle to which it belongs, and m is the first icon sequence number; If the icon to be operated satisfies the fifth condition, determining that the second icon sequence number is m+1, m+1+8n, m+3+8n and m-1 in sequence when the target direction is the top, bottom, left, and right of the icon to be operated, wherein the fifth condition is x=2n-1; If the icon to be operated satisfies the sixth condition, it is determined that the second icon sequence number is m+5+8n, m-1, m+3+8n and m+1 in sequence when the target direction is the top, bottom, left and right of the icon to be operated, wherein the sixth condition is x=4n-1; If the icon to be operated satisfies the seventh condition, it is determined that the second icon sequence number is m+5+8n, m+1, m-1 and m+7+8n in sequence when the target direction is the top, bottom, left and right of the icon to be operated, wherein the seventh condition is x=6n-1; If the icon to be operated satisfies the eighth condition, it is determined that the second icon number is m+7-8n, m+1+8n and m+1 respectively when the target direction is the top, bottom and left of the icon to be operated, wherein the eighth condition is x<2n-1, and when x=0, the second icon number is m-1+8n when the target direction is the right of the icon to be operated, and when x≠0, the second icon number is m-1 when the target direction is the right of the icon to be operated; If the icon to be operated satisfies the ninth condition, determining that the second icon sequence number is m+1, m-1, m+3+8n, m+5-8n in sequence when the target direction is the top, bottom, left, and right of the icon to be operated, wherein the ninth condition is x<4n-1; If the icon to be operated satisfies the tenth condition, it is determined that the second icon sequence number is m+5+8n, m+3-8n, m-1, and m+1 in sequence when the target direction is the top, bottom, left, and right of the icon to be operated, wherein the tenth condition is x<6n-1; If the icon to be operated does not satisfy the fourth condition, the fifth condition, the sixth condition, the seventh condition, the eighth condition, the ninth condition and the tenth condition, then the second icon number is determined to be m-1, m+1, m+1-8n, m+7+8n respectively when the target direction is the up, down, left and right of the icon to be operated.
12. The method according to claim 7, characterized in that The method further comprises: If the second icon serial number is greater than the total number of the multiple icons, the icon with an icon serial number of m+1 is determined as the target icon, where m is the first icon serial number.
13. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Obtaining the icon sequence number of the icon to be operated; Based on the preset mapping relationship, the target icon serial number corresponding to the icon serial number of the icon to be operated is determined, and the icon corresponding to the target icon serial number is determined as the target icon.
14. A device for moving an icon, characterized in that: The device comprises: An icon editing interface display module, used to display an icon editing interface, wherein the icon editing interface includes a plurality of icons arranged in a determinant and a column, each of the plurality of icons corresponds to an icon serial number, and the icon serial numbers corresponding to the plurality of icons increase in a spiral from the inside to the outside; an icon-to-be-operated determining module, configured to determine an icon to be operated from the plurality of icons in response to an icon operation instruction, wherein the icon operation instruction is used to instruct to stop displaying the icon at its display position; A module for determining an icon to be selected, used to determine, from the plurality of icons, an icon to be selected that is adjacent to the display position of the icon to be operated and has an icon sequence number greater than the icon sequence number of the icon to be operated; a target icon determination module, configured to obtain the number of icons to be selected as a first number of icons, and determine an icon to be selected from the icons to be selected as a target icon based on the first number of icons; The icon moving module is used to remove the icon to be operated from its display position, and to replace the target icon to the display position of the icon to be operated for display.
15. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 13.
