CN115145444A - Icon moving method and device, electronic equipment and storage medium - Google Patents

Icon moving method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115145444A
CN115145444A CN202210906223.9A CN202210906223A CN115145444A CN 115145444 A CN115145444 A CN 115145444A CN 202210906223 A CN202210906223 A CN 202210906223A CN 115145444 A CN115145444 A CN 115145444A
Authority
CN
China
Prior art keywords
icon
operated
icons
target
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210906223.9A
Other languages
Chinese (zh)
Inventor
胡志通
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210906223.9A priority Critical patent/CN115145444A/en
Publication of CN115145444A publication Critical patent/CN115145444A/en
Priority to PCT/CN2023/099183 priority patent/WO2024021902A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method and a device for moving icons, electronic equipment and a storage medium. The icon editing method includes the steps of displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons which are arranged in a determinant mode, the icons correspond to icon serial numbers respectively, the icon serial numbers corresponding to the icons increase in a spiral mode from inside to outside, determining icons to be operated from the icons in response to an icon operation instruction, determining icons to be selected from the icons, the icons to be selected are adjacent to the display position of the icons to be operated and the icon serial numbers are larger than the icon serial numbers of the icons to be operated, obtaining the icon number of the icons to be selected as a first icon number, determining a target icon from the icons to be selected based on the first icon number, removing the icons to be operated from the display position of the icon to be operated, and displaying the target icon in a position supplementing mode to the display position of the icon to be operated. According to the embodiment of the application, the problem that the icons are disturbed in the position supplementing process can be solved through reasonable position supplementing logic for setting the icons, and the use experience of a user is improved.

Description

Icon moving method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a method and an apparatus for moving an icon, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic equipment is more widely used and more functions are more and more, and the electronic equipment becomes one of the necessary things in daily life of people. At present, with the increase of application programs installed on electronic devices, the electronic devices also gradually start to support operations of moving, deleting and the like of application icons by users, but these operations often affect the overall display of the application icons, that is, the display of the application icons is disturbed, and the use experience of the users is poor.
Disclosure of Invention
In view of the above problems, the present application provides a method, an apparatus, an electronic device, and a storage medium for moving an icon to solve the above problems.
In a first aspect, an embodiment of the present application provides a method for moving an icon, where the method includes: displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons which are arranged in a determinant manner, the icons correspond to icon serial numbers respectively, and the icon serial numbers corresponding to the icons increase in a spiral manner from inside to 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 for indicating that the display of the icon at the display position is stopped; determining an icon to be selected which is adjacent to the display position of the icon to be operated and has an icon serial number larger than that of the icon to be operated from the icons; acquiring the icon number of the icons to be selected as a first icon number, and determining a target icon from the icons to be selected based on the first icon number; and removing the icon to be operated from the display position of the icon to be operated, and supplementing the target icon to the display position of the icon to be operated for displaying.
In a second aspect, an embodiment of the present application provides an icon moving apparatus, where the apparatus includes: the icon editing interface display module is used for displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons which are arranged in a determinant manner, the icons respectively correspond to icon serial numbers, and the icon serial numbers corresponding to the icons are spirally increased from inside to outside; the icon to be operated determining module is used for determining an icon to be operated from the plurality of icons in response to an icon operation instruction, wherein the icon operation instruction is used for indicating that the display of the icon at the display position is stopped; the icon selection module is used for selecting icons to be selected from the icons, wherein the icons are adjacent to the display position of the icon to be operated and have icon serial numbers larger than the icon serial number of the icon to be operated; the target icon determining module is used for acquiring the icon number of the icons to be selected as a first icon number and determining target icons from the icons to be selected based on the first icon number; and the icon moving module is used for removing the icon to be operated from the display position of the icon to be operated and supplementing the target icon to the display position of the icon to be operated for displaying.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the above method when the instructions are executed by the processor.
In a fourth aspect, 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.
The icon moving method and device, the electronic device and the storage medium display an icon editing interface, wherein the icon editing interface comprises a plurality of icons which are arranged in a determinant mode, the icons correspond to icon serial numbers respectively, the icon serial numbers corresponding to the icons increase in a spiral mode from inside to outside, an icon to be operated is determined from the icons in response to an icon operation instruction, the icon to be operated is used for indicating stopping the icon from being displayed at the display position of the icon to be operated, a icon to be selected which is adjacent to the display position of the icon to be operated and has an icon serial number larger than the icon serial number of the icon to be operated is determined from the icons, the icon number of the icon to be selected is obtained to serve as a first icon number, a target icon is determined from the icon to be selected based on the first icon number, the icon to be operated is removed from the display position of the icon to be operated, the target icon is subjected to be subjected to display in a position supplementing mode, and accordingly the problem that the icon is disordered in the position supplementing process can be solved and the use experience of a user can be improved through reasonable setting of the icon.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram showing an arrangement of a plurality of icons;
fig. 2 is a schematic flowchart illustrating a method for moving an icon according to an embodiment of the present disclosure;
FIG. 3 illustrates a schematic diagram of a planetary view provided by an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating the effect of a planetary view with deformed filters removed provided by embodiments of the present application;
fig. 5 is a schematic diagram illustrating an arrangement of a plurality of icons provided in an embodiment of the present application;
fig. 6 is a schematic flowchart illustrating a method for moving an icon according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a method for moving an icon according to an embodiment of the present application;
FIG. 8 is a schematic diagram illustrating an icon complement provided by an embodiment of the application;
fig. 9 is a flowchart illustrating a method for moving an icon according to an embodiment of the present application;
FIG. 10 is a schematic diagram illustrating a plurality of icon circles provided by embodiments of the present application;
FIG. 11 is a schematic diagram illustrating the path of a plurality of icons to an edge zone as provided by an embodiment of the present application;
fig. 12 is a flowchart illustrating a method for moving an icon according to an embodiment of the present application;
FIG. 13 is a block diagram of a mobile device with icons provided by an embodiment of the present application;
fig. 14 is a block diagram of an electronic device according to an embodiment of the present application, the electronic device being configured to execute a method for moving an icon according to an embodiment of the present application;
fig. 15 illustrates a storage unit for storing or carrying program code implementing a moving method of an icon according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Among them, as the number of applications installed in the electronic device increases, the user's need for movement or deletion of an application icon also gradually increases. In the electronic device supporting icon padding, the padding logic is spiral padding, that is, after one icon is deleted, almost all the positions of the icons are changed, which causes the confusion of icon display. For example, referring to fig. 1, fig. 1 shows an arrangement schematic diagram of a plurality of icons, and as shown in fig. 1, the sequence of the icons is a spiral arrangement from inside to outside, if the head in the icon is deleted, all subsequent icons will be supplemented forward until the tail in the icon is supplemented forward, so that the positions of all the icons are changed, the display of the icons is disturbed, and the use experience of the user is poor.
In view of the above problems, the inventor finds and provides a method, an apparatus, an electronic device, and a storage medium for moving an icon, which are provided in the embodiments of the present application, and by reasonably setting a bit complement logic of the icon, the problem that the icon is disturbed in the bit complement process can be solved, and the use experience of a user is improved. The specific icon moving method is described in detail in the following embodiments.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a method for moving an icon according to an embodiment of the present disclosure. The method is used for reasonably setting the bit complement logic of the icons, so that the problem that the icons are disordered in the bit complement process can be solved, and the use experience of a user is improved. In a specific embodiment, the icon moving method is applied to the icon moving apparatus 200 shown in fig. 13 and the electronic device 100 (fig. 14) equipped with the icon moving apparatus 200. The specific process of this embodiment will be described below by taking an electronic device as an example, and it is understood that the electronic device applied in this embodiment may include wearable electronic devices such as a mobile phone, a tablet computer, and a smart watch, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 2, the method for moving the icon may specifically include the following steps:
step S110: and displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons arranged in a determinant manner, the icons are respectively corresponding to icon serial numbers, and the icon serial numbers corresponding to the icons are spirally increased from inside to outside.
In this embodiment, the electronic device may display an icon editing interface, where the icon editing interface may include a plurality of icons arranged in a determinant. By way of example only, the icon editing interface may include an icon display interface (e.g., a desktop), or the icon editing interface may include an application list interface, without limitation.
In some embodiments, when the electronic device is a device with a larger screen, such as a mobile terminal and a tablet computer, it may be considered that the electronic device has a larger area and can display a plurality of icons on an icon display interface, such as a desktop, and the icon editing interface may be an icon display interface. When the electronic device is a device with a small screen, such as a smart watch, a smart bracelet, and the like, it can be considered that the electronic device does not have a large area and can display a plurality of icons on an icon display interface, such as a desktop, and the icon editing interface can be an application list interface.
As an embodiment, when the icons are displayed in a determinant arrangement, the icons may be arranged according to a regular determinant, and in this case, the displayed sizes of the icons are the same or similar, for example, the icons may be arranged according to a determinant rule of 6 × 6, may be arranged according to a determinant rule of 8 × 8, may be arranged according to a determinant rule of 16 × 16, and the like, which is not limited herein. As another way, when a plurality of icons are displayed in a row column, the plurality of icons may be arranged in an irregular row column, for example, in a planetary view, in which case the plurality of icons are displayed in different sizes or in different proximity.
Referring to fig. 3 and 4, fig. 3 is a schematic diagram illustrating a planet view provided by an embodiment of the present application, and fig. 4 is a schematic diagram illustrating an effect of removing a deformable filter in the planet view provided by the embodiment of the present application. As shown in fig. 3, when the icons are arranged in a planetary view manner, the icons are not in the same display size or in the same display size, and after the deformed filter of the planetary view is removed, the icons are also arranged in a regular determinant manner, and the icons are in the same display size or in the same display size, as shown in fig. 4.
In this embodiment, the icons are respectively corresponding to icon serial numbers, and the icon serial numbers corresponding to the icons are spirally increased from inside to outside. In some embodiments, the initial arrangement order of the icons (the icon numbers corresponding to the icons) may be set by the electronic device by default, for example, the electronic device may set the icon numbers corresponding to the icons according to the installation order of the application programs, for example, the earlier the installation time of the application program, the smaller the icon number corresponding to the icon is, the later the installation time of the application program, the larger the icon number corresponding to the icon is; alternatively, the initial arrangement order of the icons (the icon serial numbers corresponding to the icons) may be manually adjusted by the user according to the requirement, and is not limited herein. It should be understood that the "icon serial number" may be a virtual mapping, which is only used to represent the arrangement relationship of the icons in this embodiment, and is not limited to other examples.
As one mode, the icon numbers corresponding to the multiple icons may be natural numbers, that is, the icon numbers corresponding to the multiple icons may increase from 0 in a spiral manner from inside to outside.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating arrangement of a plurality of icons according to an embodiment of the present application, and as shown in fig. 5, the icons are arranged in a row and column, and the icon serial numbers corresponding to the icons may include 0 to 63, so that the icon serial numbers corresponding to the icons sequentially increase from 0 to 63 from inside to outside in a spiral manner.
Step S120: and responding to an icon operation instruction, determining an icon to be operated from the plurality of icons, wherein the icon operation instruction is used for indicating that the display of the icon at the display position is stopped.
In this embodiment, in the process of displaying the icon editing interface, it may be monitored whether an icon operation instruction for instructing to stop displaying of an icon at a display position thereof is received, wherein when the icon operation instruction is monitored, an icon to be operated may be determined from a plurality of icons in response to the icon operation instruction, where the determined icon to be operated is an icon to be stopped from being displayed at the display position thereof.
As one way, the icon operation instruction may include an icon deletion instruction, that is, an icon to be operated may be determined from among a plurality of icons in response to the icon deletion instruction, wherein the icon deletion instruction is used to instruct to delete the icon from its display position. As a further way, the icon operation instruction may include an icon movement instruction, that is, an icon to be operated may be determined from a plurality of icons in response to the icon movement instruction, 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.
In some embodiments, in the process of displaying an icon editing interface, the electronic device may determine to monitor an icon operation instruction under the condition that the target voice information is monitored; the icon operation instruction can be determined to be monitored under the condition that the target touch operation acting on the icon editing interface is monitored; the icon operation instruction can be determined to be monitored under the condition that the target touch operation of the target control acting on the electronic equipment is monitored.
Step S130: and determining the icon to be selected which is adjacent to the display position of the icon to be operated and has an icon serial number larger than that of the icon to be operated from the plurality of icons.
In this embodiment, when determining the icon to be operated, the icon to be selected, which is adjacent to the display position of the icon to be operated and has an icon number greater than that of the icon to be operated, may be determined from the plurality of icons.
As one mode, in the case of determining an icon to be operated, the display position of the icon to be operated may be acquired, and an icon adjacent to the display position of the icon to be operated may be determined from a plurality of icons based on the display position of the icon to be operated, and then, the icon number of the icon to be operated may be acquired, and an icon having an icon number greater than the icon number of the icon to be operated may be determined as an icon to be selected from the icons adjacent to the display position of the icon to be operated based on the icon number of the icon to be operated.
As still another mode, in the case where an icon to be operated is determined, the icon number of the icon to be operated may be acquired, and an icon having an icon number larger than the icon number of the icon to be operated may be determined from among a plurality of icons based on the icon number of the icon to be operated, and then, the display position of the icon to be operated may be acquired, and an icon adjacent to the display position of the icon to be operated may be determined as an icon to be selected from among icons having icon numbers larger than the icon number of the icon to be operated based on the display position of the icon to be operated.
As another way, in the case of determining an icon to be operated, the display position of the icon to be operated and the icon number of the icon to be operated may be obtained, and an icon, which 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, is determined from the plurality of icons as an icon to be selected based on the display position of the icon to be operated and the icon number of the icon to be operated.
Step S140: acquiring the icon number of the icons to be selected as a first icon number, and determining a target icon from the icons to be selected based on the first icon number.
In this embodiment, when determining icons to be selected from a plurality of icons, the number of icons of the icons to be selected may be acquired, the acquired number of icons of the icons to be selected is used as a first number, and one icon to be selected is determined as a target icon from the icons to be selected based on the first number of icons.
In some embodiments, a first preset mapping relationship may be preset and stored, and the preset mapping relationship may include the number of the first icons, a determination manner of the target icon, and a correspondence between the number of the first icons and the determination manner of the target icon. Therefore, in this embodiment, when the first icon number is obtained, the determination manner of the target icon corresponding to the first icon number may be determined based on the first preset mapping relationship, so as to determine the target icon from the icons to be selected according to the determination manner of the target icon corresponding to the first icon number.
In some embodiments, the first icon number may include 0, 1, 2, 3, 4, which is not limited herein.
Step S150: and removing the icon to be operated from the display position of the icon to be operated, and supplementing the target icon to the display position of the icon to be operated for displaying.
In this embodiment, under the condition that the target icon is determined, the icon to be operated can be removed from the display position of the icon to be operated, and the target icon is subjected to position complementing to the display position of the icon to be operated for displaying, so that the problem that other icons are disturbed in the position complementing process is avoided, and the use experience of a user is improved.
In some embodiments, if the icon operation instruction is an icon deletion instruction, the icon to be operated may be deleted from the display position thereof, and the target icon is replaced to the display position of the icon to be operated for display; if the icon operation instruction is an icon moving instruction, the icon to be operated can be deleted from the display position of the icon to be operated and moved to the indicated display position, and the target icon is complemented to the display position of the icon to be operated for display.
The icon moving method provided by the embodiment of the application displays an icon editing interface, wherein the icon editing interface comprises a plurality of icons which are arranged in a determinant mode, the icons are respectively corresponding to icon serial numbers, the icon serial numbers respectively corresponding to the icons are increased in a spiral mode from inside to outside, an icon to be operated is determined from the icons in response to an icon operation instruction, the icon to be operated is used for indicating to stop displaying of the icon at the display position of the icon to be operated, a icon to be selected which is adjacent to the display position of the icon to be operated and is larger than the icon serial number of the icon to be operated is determined from the icons, the icon number of the icon to be selected is obtained to serve as a first icon number, a target icon is determined from the icon to be selected based on the first icon number, the icon to be operated is removed from the display position of the icon to be operated, the target icon is subjected to be subjected to display in a padding position to the icon to be operated, and accordingly the use experience of a user can be improved by reasonably setting padding logic of the icon.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a method for moving an icon according to an embodiment of the present disclosure. As will be described in detail with respect to the flow shown in fig. 6, the method for moving the icon may specifically include the following steps:
step S210: and displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons arranged in a determinant manner, the icons are respectively corresponding to icon serial numbers, and the icon serial numbers corresponding to the icons are spirally increased from inside to outside.
Step S220: and responding to an icon operation instruction, determining an icon to be operated from the plurality of icons, wherein the icon operation instruction is used for indicating that the display of the icon at the display position is stopped.
Step S230: and determining the icon to be selected which is adjacent to the display position of the icon to be operated and has an icon serial number larger than that of the icon to be operated from the plurality of icons.
Step S240: acquiring the icon number of the icons to be selected as a first icon number, and determining a target icon from the icons to be selected based on the first icon number.
Step S250: and removing the icon to be operated from the display position of the icon to be operated, and supplementing the target icon to the display position of the icon to be operated for displaying.
For the detailed description of steps S210 to S250, refer to steps S110 to S150, which are not described herein again.
Step S260: and taking the target icon as the icon to be operated, repeatedly executing the step of determining the icon to be selected which is adjacent to the display position of the icon to be operated and has the icon serial number larger than the icon serial number of the icon to be operated from the plurality of icons, removing the icon to be operated from the display position of the icon to be operated, and supplementing the target icon to the display position of the icon to be operated for displaying until the supplementing of the plurality of icons is completed.
In this embodiment, after the target icon is determined from the multiple icons and the target icon is subjected to padding to the display position of the icon to be operated for display, the original display position of the target icon may appear blank, so in order to ensure the display effect of the icon editing interface (multiple icons), an icon may be selected from the multiple icons other than the target icon for padding, and so on until the padding of the multiple icons is completed. The completion of the padding of the plurality of icons may be that no icon with the padding capable of being moved exists in the plurality of icons, or the completion of the padding of the plurality of icons may be that no blank display position exists between every two icons in the plurality of icons.
In some embodiments, after the target icon is determined from the plurality of icons and the target icon is complemented to the display position of the icon to be operated for display, the target icon may be regarded as the icon to be operated, and steps S230-S250 are repeatedly performed until the completion of the complementation of the plurality of icons.
Compared with the icon moving method shown in fig. 2, the icon moving method provided in an embodiment of the present application further uses the target icon as the icon to be operated, and repeatedly performs the icon bit complementing operation until the plurality of icon bit complementing operations are completed, so that sequential bit complementing of the plurality of icons can be realized, the display effect of the icons is improved, and the use experience of the user is improved.
Referring to fig. 7, fig. 7 is a schematic flowchart illustrating a method for moving an icon according to an embodiment of the present disclosure. As will be described in detail with respect to the flow shown in fig. 7, the method for moving the icon may specifically include the following steps:
step S310: the method comprises the steps of displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons which are arranged in a determinant mode, the icons correspond to icon sequence numbers respectively, and the icon sequence numbers corresponding to the icons increase in a spiral mode from inside to outside.
Step S320: and responding to an icon operation instruction, determining an icon to be operated from the plurality of icons, wherein the icon operation instruction is used for indicating that the display of the icon at the display position is stopped.
Step S330: and determining the icon to be selected which is adjacent to the display position of the icon to be operated and has an icon serial number larger than that of the icon to be operated from the plurality of icons.
Step S340: and acquiring the icon number of the icon to be selected as a first icon number.
For detailed description of steps S310 to S340, please refer to steps S310 to S340, which are not described herein again.
Step S350: and if the number of the first icons is at least two, acquiring the distance between each of the at least two icons to be selected and the coordinate axis origin of the target coordinate system, wherein the icon serial numbers corresponding to the icons are spirally increased from inside to outside by taking the coordinate axis origin as a spiral center point.
In this embodiment, a target coordinate system may be established on the icon editing interface, wherein an X axis of the target coordinate system may be parallel to rows in which the icons are arranged, a Y axis of the target coordinate system may be parallel to columns in which the icons are arranged, icon serial numbers corresponding to the icons are spirally increased from inside to outside with an origin of a coordinate axis of the target coordinate system as a spiral center point, and distances between two adjacent icons in a horizontal direction and a longitudinal direction are consistent in the target coordinate system. For example, of the icons, the icon with the icon number "0" is located at the display position closest to the coordinate axis origin in the first quadrant of the target coordinate system; the icon with the icon serial number of 1 is positioned at the display position which is closest to the origin of the coordinate axis in the fourth quadrant of the target coordinate system; the icon with the icon serial number of 2 is positioned at the display position which is 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 at the display position closest to the origin of the coordinate axis in the second quadrant of the target coordinate system.
In this embodiment, if the number of the first icons is at least two, for example, if the number of the first icons is two, three, or four, the number of the icons to be selected is at least two, and the distance between each of the at least two icons to be selected and the coordinate axis origin of the target coordinate system may be obtained. As a practical manner, the respective coordinate information of the at least two icons to be selected in the target coordinate system is obtained, and based on the respective coordinate information of the at least two icons to be selected in the target coordinate system and the coordinate information of the coordinate axis origin, the distance between the at least two coordinates to be selected and the coordinate axis origin of the target coordinate system can be obtained.
In some embodiments, if the number of the first icons is one, the number of the icons to be selected is represented as one, and the icon to be selected can be directly determined as the target icon.
In some embodiments, if the number of the first icons is 0, and the number of the icons to be selected is 0, the icons to be operated may be directly removed from the display positions of the icons, and the display positions of the icons except the icons to be operated may be kept unchanged.
Step S360: and determining the icon to be determined with the largest distance from the coordinate axis origin from at least two icons to be selected.
In this embodiment, when the distances between the 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 may 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 is used as the icon to be determined.
In some embodiments, in the case of 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, the distances between each of the at least two icons to be selected and the origin of the coordinate axis of the target coordinate system may be compared to obtain the icon to be selected from which the distance from the origin of the coordinate axis is the largest as the icon to be determined.
Step S370: acquiring the icon number of the icon to be determined as a second icon number, and determining the target icon from the icon to be determined based on the second icon number.
In this embodiment, in a case where the icon to be determined is determined from at least two icons to be selected, the number of icons of the icon to be determined may be acquired, the acquired number of icons of the icon to be determined is used as the second number, and the target icon is determined from the icons to be determined based on the second number.
In some embodiments, a second preset mapping relationship may be preset and stored, where the preset mapping relationship may include the number of the second icons, a determination manner of the target icon, and a corresponding relationship between the number of the second icons and the determination manner of the target icon. Therefore, in this embodiment, when the number of the second icons is obtained, the determination manner of the target icons corresponding to the number of the second icons may be determined based on the second preset mapping relationship, so as to determine the target icons from the icons to be determined according to the determination manner of the target icons corresponding to the number of the second icons.
In some embodiments, the second icon number may include one or two, and is not limited herein. If the number of the second icons is one, the icon to be determined can be directly determined as the target icon; and if the number of the second icons is two, determining the icon to be determined with the smallest icon sequence number from the two icons to be determined as the target icon.
Step S380: and removing the icon to be operated from the display position of the icon to be operated, and supplementing the target icon to the display position of the icon to be operated for displaying.
For the detailed description of step S380, please refer to step S150, which is not described herein.
For example, referring to fig. 8, fig. 8 is a schematic diagram illustrating an icon complement provided in the embodiment of the present application, and it is assumed that the icon to be operated is an icon with an icon serial number of 0.
From the plurality of icons, determining that the icon to be selected which is adjacent to the display position of the icon with the icon serial number 0 and has the icon serial number greater than the icon serial number 0 is: an icon with an icon number of 1, an icon with an icon number of 3, an icon with an icon number of 5, and an icon with an icon number of 7. At this time, it can be known that the number of the icons to be selected is 4 (i.e., greater than 1), distances from each 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 (as shown in fig. 5, the origin of the coordinate axis is the center point of the icon with the icon number 0, the icon with the icon number 1, the icon with the icon number 2, and the icon with the icon number 3) can be compared. If the comparison shows that the distances between the icon with the icon number 5 and the icon with the icon number 7 and the origin of the coordinate axis are the largest, the icon with the icon number 5 and the icon with the icon number 7 can be determined as the target icon, that is, the icon with the icon number 5 can be determined as the target icon, and the icon with the icon number 5 is moved from the display position to the display position of the icon with the icon number 0 by the padding.
Then, the icon with the icon number 5 may be used as an icon to be operated, and the icon to be selected, which is adjacent to the display position of the icon with the icon number 5 and has the icon number greater than the icon number 5, may be determined as: an icon with an icon number of 6 and an icon with an icon number of 18. At this time, it may be known that the number of the icons to be selected is 2 (that is, greater than 1), distances from the respective icons with the icon number of 6 and the icon number of 18 to the origin of the coordinate axis may be compared. If the comparison shows 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, the icon with the icon number 18 may be determined as the target icon, and the icon with the icon number 18 may be moved from the display position to the display position of the icon with the icon number 5.
Then, the icon with the icon number of 18 may be used as an icon to be operated, and the icon to be selected, which is adjacent to the display position of the icon with the icon number of 18 and has the icon number greater than the icon number of 18, may be determined as: icon No. 19 and icon No. 39. At this time, if it is known that the number of icons to be selected is 2 (i.e., greater than 1), the distances from the respective icons with the icon number 19 and the icon number 39 to the origin of the coordinate axis may be compared. If the comparison shows 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, the icon with the icon number 39 may be determined as the target icon, and the icon with the icon number 39 may be moved from the display position to the display position of the icon with the icon number 18.
Then, the icon with the icon number 39 may be used as an icon to be operated, and the icon to be selected, which is adjacent to the display position of the icon with the icon number 39 and has the icon number greater than the icon number 39, may be determined as: icon with icon number 40. At this time, if it is known that the number of icons to be selected is 1, the icon with icon number 40 may be directly determined as the target icon, and the icon with icon number 40 may be moved from its display position to the display position of the icon with icon number 39 by the padding.
By analogy, the icon with the icon number of 40 to the icon with the icon number of 62 are the judgment results of the icon with the icon number of 39, and are not described again here.
Finally, the icon with the icon number 63 may be used as an icon to be operated, and an icon to be selected, which is adjacent to the display position of the icon with the icon number 63 and has an icon number greater than the icon number 63, may be determined from the plurality of icons, where it is found that there is no icon with an icon number 63 around which an icon with an icon number greater than that of the icon number 63 is present, and the process is ended.
Based on the mode, when the icon with the icon number of 0 is determined as the icon to be operated, the determined position supplementing rule is 0-5-18-39-40-41-42-43-44-45-46-47-48-49-50-51-52-53-54-55-57-58-59-60-61-62-63.
Compared with the icon moving method shown in fig. 2, the icon moving method provided in an embodiment of the present application further adopts different determination manners of the target icon according to the difference in the number of icons of the icon to be selected, so that the accuracy of the determined target icon can be improved, and the use experience of the user can be improved.
Referring to fig. 9, fig. 9 is a flowchart illustrating a method for moving an icon according to an embodiment of the present application. As will be explained in detail with respect to the flow shown in fig. 9, the method may specifically include the following steps:
step S410: the method comprises the steps of displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons which are arranged in a determinant mode, the icons correspond to icon sequence numbers respectively, and the icon sequence numbers corresponding to the icons increase in a spiral mode from inside to outside.
Step S420: and responding to an icon operation instruction, determining an icon to be operated from the plurality of icons, wherein the icon operation instruction is used for indicating that the display of the icon at the display position is stopped.
For the detailed description of steps S410 to S420, refer to steps S110 to S120, which are not described herein again.
Step S430: acquiring an icon sequence number corresponding to the icon to be operated as a first icon sequence number, and determining an icon circle of the icon to be operated in n icon circles and an icon sequence of the icon circle of the icon to be operated based on the first icon sequence number, wherein the n icon circles are established according to display positions of the icons, n is a natural number, when n =0, the number of icons included in the 0 th icon circle is one, one icon is the icon with the smallest icon sequence number in the icons, when n > 0, the number of icons included in the n th icon circle is 8n, in each icon circle, the icon positioned at the lower right corner of the icon circle is used as the 8n-1 th icon of the icon circle, and the icon positioned at the adjacent position on the left side of the 8n-1 th icon is used as the 0 th icon of the icon circle.
In this embodiment, for a plurality of icons arranged in a column in an icon editing interface, n icon circles may be established according to display positions of the plurality of icons, where n is a natural number. When n =0, the number of icons included in the 0 th icon circle is one, and one icon is the icon with the smallest icon sequence number in the plurality of icons; when n is greater than 0, the icon number of the icons included in the nth icon circle is 8n, and in each icon circle, the icon positioned at the lower right corner of the icon circle is used as the 8n-1 th icon of the icon circle, and the icon positioned at the adjacent position on the left side of the 8n-1 th icon is used as the 0 th icon of the icon circle.
For example, it is assumed that the icon numbers corresponding to the icons are natural numbers from 0 to 63, and the icon numbers 0 to 63 are increased spirally from the inside to the outside. Then, in the n created icon circles, the first icon circle includes one icon, and the icon serial number of the icon is 0; the second icon circle comprises 8 icons, the icon serial numbers of the 8 icons are 1-8, the icon positioned at the lower right corner of the second icon circle is used as the 7 th icon (the icon with the icon serial number being 8) of the second icon circle, and the icon positioned at the left adjacent position of the 7 th icon is used as the 0 th icon (the icon with the icon serial number being 1) of the second icon circle; the third icon circle comprises 16 icons, the icon serial numbers of the 16 icons are 9-24, the icon positioned at the lower right corner of the third icon circle is used as the 15 th icon (the icon with the icon serial number of 24) of the third icon circle, the icon positioned at the left adjacent position of the 7 th icon is used as the 0 th icon (the icon with the icon serial number of 9) of the second icon circle, and the like.
In some embodiments, in the case of determining an icon to be operated, an icon serial number corresponding to the icon to be operated may be obtained, the icon serial number corresponding to the icon to be operated is used as a first icon serial number, and an icon circle to which the icon to be operated belongs among the n icon circles and an icon sequence of the icon circle to which the icon to be operated belongs are determined based on the first icon serial number.
Referring to fig. 10, fig. 10 is a schematic diagram illustrating a plurality of icon circles provided by an embodiment of the present application. As shown in fig. 11, n icon circles are established for a plurality of icons with icon serial numbers of 0 to 63, wherein the icon with icon serial number 0 belongs to the 0 th icon circle, the icons with icon serial numbers of 1 to 8 belong to the first icon circle, the icons with icon serial numbers of 9 to 24 belong to the second icon circle, the icons with icon serial numbers of 25 to 48 belong to the third icon circle, and so on. It can be found that the 0 th icon circle only has one icon with the icon sequence number 0, and if the nth icon circle is full, the nth icon circle includes 8n icons, for example, the first icon circle includes 8 icons, and the second icon circle includes 16 icon circles. And (3) in the nth circle (n ≠ 0), the icon at the lower right corner is taken as a tail, the icon at the left side of the tail is taken as a head, if the tail of the first icon circle is the icon with the icon serial number of 8, the head is the icon with the icon serial number of 1, the tail of the second icon circle is the icon with the icon serial number of 24, and the head is the icon with the icon serial number of 9. If the head is not referred to as the 0 th icon of the nth icon circle, the tail is referred to as the 8n-1 th icon of the nth icon circle, for example, the icon with the icon number 1 is the 0 th icon of the first icon circle, the icon with the icon number 8 is the 7 th icon of the 1 th icon circle, the icon with the icon number 9 is the 0 th icon of the second icon circle, and the icon with the icon number 24 is the 15 th icon of the second icon circle.
Based on this, given an icon, it can be calculated that it belongs to the several icon circles and that the icon circle is the several icon, as an implementable manner, under the condition of obtaining the first icon serial number, the total number of icons included in each icon circle can be sequentially subtracted by the first icon serial number, if the result after subtracting the total number of icons of the nth icon circle is less than the total number of icons of the (n + 1) th icon circle, it indicates that the icon to be operated belongs to the (n + 1) th icon circle, and the result indicates that the icon to be operated is the several icon of the (n + 1) th icon circle. For example, assuming that the serial number of the icon to be operated is 30, the total number of icons 1 included in the 0 th icon circle may be subtracted from 30 to obtain 29, 29 is not less than the total number of icons 8 included in the 1 st icon circle, the total number of icons 8 included in the first icon circle may be subtracted from 29 to obtain 21, 21 is not less than the total number of icons 16 included in the 2 nd icon circle, 21 is subtracted from the total number of icons 16 included in the second icon circle to obtain 5,5 is less than the total number of icons 24 included in the third icon circle, so that the icon to be operated with the serial number of 30 may be determined to belong to the third icon circle and be the 5 th icon of the third icon circle.
Step S440: and determining a target direction according to the icon circle of the icon to be operated in the n icon circles and the icon sequence of the icon circle to which the icon to be operated belongs, and determining the icon to be selected positioned in the target direction.
In this embodiment, under the condition that the icon circle of the icon to be operated in the nth icon circle is obtained and the icon sequence of the icon circle to which the icon to be operated belongs is obtained, the target direction may be determined according to the icon circle of the icon to be operated in the nth icon circle and the icon sequence of the icon circle to which the icon to be operated belongs, and the icon to be selected located in the target direction may be determined.
In some embodiments, when n =0, it may be determined that the target direction is above the icon to be operated; and when n is larger than 0, determining the target direction according to the icon circle of the icon to be operated in the nth icon circle and the icon sequence of the icon circle to which the icon to be operated belongs. When n =0, it may be determined that the icon circle to which the icon to be operated belongs is the 0 th icon circle, and the next icon is above the icon to be operated, that is, it may be determined that the target direction is above the icon to be operated; when n > 0, the icon circle to be operated may be determined as the nth icon circle (n > 0), and the next icon may be above, below, left, right, etc., which is not limited herein.
As an implementable manner, the electronic device may preset and store a first condition, a second condition and a third condition, wherein the first condition is that x >4n-3 and x <6n, the second condition is that x =0 or x >6n-1, and the third condition is that x < 2n, where x is the icon ordering of the icon to be operated in the icon circle. Therefore, in this embodiment, in the case of obtaining the icon circle to which the icon to be operated belongs in the nth icon circle (i.e. obtaining n) and the icon ranking of the icon circle to which the icon to be operated belongs (i.e. obtaining x), 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 obtain the determination result as the first determination result.
If the first determination result indicates that the icon to be operated satisfies the first condition, that is, if the first determination result indicates that the icon to be operated satisfies x >4n-3 and x <6n, it may be determined that the target direction is above the icon to be operated.
If the first determination result indicates that the icon to be operated satisfies the second condition, that is, if the first determination result indicates that the icon to be operated satisfies x =0 or x >6n-1, it may be determined that the target direction is the right side of the icon to be operated.
If the first judgment result represents that the icon to be operated meets the third condition, that is, if the first judgment result represents that the icon to be operated meets x < 2n, the target direction can be determined to be below the icon to be operated.
If the first determination result indicates that the icon to be operated does not satisfy the first condition, the second condition and the third condition, that is, if the first determination result indicates 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, the target direction may be determined to be the left of the icon to be operated.
In some embodiments, in the case of determining the icon to be operated and the target direction, it may be determined that an icon located in the target direction of the icon to be operated is determined as the icon to be operated based on the icon to be operated and the target direction.
For example, taking an icon with an icon number of 30 as an example, if the icon with the icon number of 30 belongs to the 5 th icon of the third icon circle, n =3 and x =5, it can be known that if the icon with the icon number of 30 satisfies the third condition, the target direction is below the icon with the icon number of 30.
Step S450: and acquiring the icon serial number of the icon to be selected as a second icon serial number.
In this embodiment, in the case of determining the icon to be selected, the icon number of the icon to be selected may be obtained, and the icon number of the icon to be selected may be used as the second icon number.
In some embodiments, when n =0, it may be determined that the second icon number is 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. When n =0, it may be determined that the target direction is above the icon to be operated, and then it may be determined that the icon number of the icon to be operated is 5.
In some embodiments, when n > 0, the sequence number of the icon to be selected may be obtained 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 of the icon circle to which the icon to be operated belongs.
As an implementable manner, the electronic device may preset and store a fourth condition, a fifth condition, a sixth condition, a seventh condition, an eighth condition, a ninth condition, and a 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, the tenth condition is x < 6n-1, where x is the icon order of the icons to be operated in the icon circle to which the icons belong, and m is the first icon number. Therefore, in this embodiment, in the case of obtaining the icon number of the icon to be operated (i.e., obtaining m), the icon circle to which the icon to be operated belongs in the nth icon circle (i.e., obtaining n), and the icon order of the icon circle to which the icon to be operated belongs (i.e., obtaining x), the icon to be operated may 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 obtain the determination result as the second determination result.
If the second determination result indicates that the icon to be operated satisfies the fourth condition, that is, if the second determination result indicates that the icon to be operated satisfies x =8n-1, it may 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, in combination with the target direction (one of the up, down, left, and right directions) determined in the above manner, the second icon number can be determined.
If the second determination result indicates that the icon to be operated satisfies the fifth condition, that is, if the second determination result indicates that the icon to be operated satisfies x =2n-1, it may 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 left of the icon to be operated, and m-1 when the target direction is right of the icon to be operated. Based on this, in combination with the target direction (one of the up, down, left, and right directions) determined in the above manner, the second icon number can be determined.
If the second determination result indicates that the icon to be operated satisfies the sixth condition, that is, if the second determination result indicates that the icon to be operated satisfies x =4n-1, it may be determined that the second icon 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 left of the icon to be operated, and m-1 when the target direction is right of the icon to be operated. Based on this, in combination with the target direction (one of the up, down, left, and right directions) determined in the above manner, the second icon number can be determined.
If the second determination result indicates that the icon to be operated satisfies the seventh condition, that is, if the second determination result indicates that the icon to be operated satisfies x =6n-1, it may 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 left of the icon to be operated, and m-7+8n when the target direction is right of the icon to be operated. Based on this, in combination with the target direction (one of the up, down, left, and right directions) determined in the above manner, the second icon number can be determined.
If the second determination result indicates that the icon to be operated satisfies the eighth condition, that is, if the second determination result indicates that the icon to be operated satisfies x < 2n-1, it may be determined that the second icon 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, m +1 when the target direction is left of the icon to be operated, and m-1+8n when the target direction is right of the icon to be operated, and x =0, m-1 when the target direction is m-1+8n when x ≠ 0, and m-1 when the target direction is right of the icon to be operated. Based on this, in combination with the target direction (one of the up, down, left, and right directions) determined in the above manner, the second icon number can be determined.
If the second determination result indicates that the icon to be operated satisfies the ninth condition, that is, if the second determination result indicates that the icon to be operated satisfies x < 4n-1, it may be determined that the second icon 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, in combination with the target direction (one of the up, down, left, and right directions) determined in the above manner, the second icon number can be determined.
If the second determination result indicates that the icon to be operated satisfies the tenth condition, that is, if the second determination result indicates that the icon to be operated satisfies x < 6n-1, it may be determined that the second icon 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 left of the icon to be operated, and m +1 when the target direction is right of the icon to be operated. Based on this, in combination with the target direction (one of the up, down, left, and right directions) determined in the above manner, the second icon number can be determined.
If the second determination 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 determination 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, and x < 6n-1, it may be determined that the serial number of the second icon 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 n when the target direction is to the right of the icon to be operated. Based on this, in combination with the target direction (one of the up, down, left, and right directions) determined in the above manner, the second icon number can be determined.
In the case of an icon with an icon number of 30 as an example, if the icon with the icon number of 30 belongs to the 5 th icon in the third icon circle, n =3, x =5, m =30, the target direction is below the icon with the icon number of 30, the icon with the icon number of 30 satisfies the eighth condition, and the second icon number is m +1+ when the target direction is below the icon to be operated
8n=30+1+3*8=55。
Step S460: and if the second icon sequence number is less than or equal to the total number of the icons, determining the icon to be selected as the target icon.
The position filling of the icon can be roughly divided into two stages, the first stage is to find a path from the icon to be operated to reach an edge zone (as shown in fig. 11), the second stage is to fill the position spirally, the second icon serial number can be checked under the condition of obtaining the second icon serial number, if the second icon serial number is greater than the total number of all the icons, the boundary is crossed, namely the first stage calculates the edge, the second stage is started, if the second icon serial number is less than or equal to the total number of all the icons, the boundary is not crossed, the icon corresponding to the second icon serial number is continuously used as the next icon, and the first stage is executed again until the boundary is crossed.
In some embodiments, in the case of obtaining the second icon number, the second icon number may be compared with the total number of the plurality of icons to determine whether the second icon number is less than or equal to the total number of the plurality of icons. If the second icon sequence number is determined to be smaller than or equal to the total number of the icons, the icon to be selected can be determined as the target icon to be subjected to bit complementing.
Step S470: and if the second icon serial number is greater than the total number of the icons, determining the icon with the icon serial number m +1 as the target icon, wherein m is the first icon serial number.
If the second icon is determined to have a serial number greater than the total number of the plurality of icons, spiral bit supplement can be performed, that is, the icon with the icon serial number m +1 is determined as the target icon to perform bit supplement.
For example, taking an icon with an icon number of 39 as an example, which belongs to the 14 th icon of the third icon circle, if the next icon of the icon with the icon number of 39 is calculated and obtained by the above algorithm and the icon number of the next icon is greater than the total number (64) of the plurality of icons, it indicates that there is no next icon above, and if the border is considered to be out of range, spiral padding can be performed, that is, the icon with the icon number of 39+1=40 is determined as the target icon to be padded.
Step S480: and removing the icon to be operated from the display position of the icon to be operated, and supplementing the target icon to the display position of the icon to be operated for displaying.
For a detailed description of step S480, please refer to step S150, which is not described herein.
Compared with the icon moving method shown in fig. 2, in the icon moving method provided in an embodiment of the present application, an icon serial number corresponding to an icon to be operated is further obtained as a first icon serial number, an icon circle of the icon to be operated in n icon circles and an icon sequence of the icon circle to which the icon to be operated belongs are determined based on the first icon serial number, a target direction and an icon to be selected in the target direction are determined according to the icon circle of the icon to be operated in n icon circles and the icon sequence of the icon circle to which the icon to be operated belongs, the icon serial number of the icon to be selected is obtained as a second icon serial number, if the second icon serial number is less than or equal to the total number of the plurality of icons, the icon with the icon serial number of +1 as the target icon is determined, and thus the determination efficiency and accuracy of the target icon can be improved.
Referring to fig. 12, fig. 12 is a schematic flowchart illustrating a method for moving an icon according to an embodiment of the present disclosure.
As will be explained in detail with respect to the flow shown in fig. 12, the method may specifically include the following steps:
step S510: and displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons arranged in a determinant manner, the icons are respectively corresponding to icon serial numbers, and the icon serial numbers corresponding to the icons are spirally increased from inside to outside.
Step S520: and responding to an icon operation instruction, determining an icon to be operated from the plurality of icons, wherein the icon operation instruction is used for indicating that the display of the icon at the display position is stopped.
For the detailed description of steps S510 to S520, refer to steps S110 to S120, which are not described herein again.
Step S530: and acquiring the icon serial number of the icon to be operated.
In this embodiment, when the icon to be operated is obtained, the icon number of the icon to be operated may be obtained. As an implementable manner, when the icon to be operated is obtained, the coordinate information of the icon to be operated in the target coordinate system may be obtained, and the icon number of the icon to be operated is obtained based on the coordinate information of the icon to be operated in the target coordinate system.
Step S540: and determining a target icon sequence number corresponding to the icon sequence number of the icon to be operated based on a preset mapping relation, and determining the icon corresponding to the target icon sequence number as the target icon.
In some embodiments, a preset mapping relationship may be preset and stored, where the preset mapping relationship may include a complement path of an icon serial number corresponding to each icon in the plurality of icons. Therefore, in this embodiment, under the condition that the icon sequence number corresponding to the icon to be operated is obtained, the target icon sequence number corresponding to the icon sequence number of the icon to be operated may be determined based on the preset mapping relationship, and the icon corresponding to the target icon sequence number is determined as the target icon, so that the determination speed of the target icon may be effectively increased, and the use experience of the user may be improved.
In some embodiments, when there are deletion, movement, addition, and the like of an icon in the plurality of icons, the preset mapping relationship may be updated to ensure accuracy of the preset mapping relationship, which is not described herein again.
Step S550: and removing the icon to be operated from the display position of the icon to be operated, and supplementing the target icon to the display position of the icon to be operated for displaying.
For details of step S550, please refer to step S150, which is not repeated herein.
Compared with the icon moving method shown in fig. 2, the icon moving method provided in an embodiment of the present application further 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 the preset mapping relationship, and determines the icon corresponding to the target icon serial number as the target icon, so that the obtaining efficiency of the target icon can be improved.
Referring to fig. 13, fig. 13 is a block diagram illustrating a mobile device for displaying icons according to an embodiment of the present application. As will be explained below with respect to the block diagram shown in fig. 13, the illustrated mobile device 200 includes: an icon editing interface display module 210, an icon to be operated determining module 220, an icon to be selected determining module 230, a target icon determining module 240, and an icon moving module 250, wherein:
the icon editing interface display module 210 is configured to display an icon editing interface, where the icon editing interface includes a plurality of icons arranged in a determinant, each of the plurality of icons corresponds to an icon sequence number, and the icon sequence numbers corresponding to the plurality of icons increase in a spiral manner from inside to outside.
An icon to be operated determining module 220, configured to determine an icon to be operated from the multiple icons in response to an icon operation instruction, where the icon operation instruction is used to instruct to stop displaying of the icon at the display position.
The icon to be selected 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 icon to be operated and has an icon serial number greater than the icon serial number of the icon to be operated.
And a target icon determining module 240, configured to obtain the number of icons of the icons to be selected as a first icon number, and determine a target icon from the icons to be selected based on the first icon number.
Further, the target icon determining module 240 includes: the device comprises a distance acquisition sub-module, an icon to be determined determining sub-module and a first target icon determining sub-module, wherein:
and the distance acquisition submodule is used for acquiring the distance between each of the at least two icons to be selected and the coordinate axis origin of the target coordinate system if the number of the first icons is at least two, wherein the icon serial numbers corresponding to the icons are spirally increased from inside to outside by taking the coordinate axis origin as a spiral center point.
And the icon to be determined determining submodule is used for determining the icon to be determined with the largest distance from the coordinate axis origin from at least two icons to be selected.
And the first target icon determining submodule is used for acquiring the icon number of the icon to be determined as a second icon number and determining the target icon from the icon to be determined based on the second icon number.
Further, the first target icon determination sub-module includes: a first target icon determining unit and a second target icon determining unit, wherein:
a first target icon determining unit, configured to determine one icon to be determined as the target icon if the number of the second icons is one.
And the second target icon determining unit is used for determining the icon to be determined 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.
Further, the target icon determining module 240 includes: a second target icon determination sub-module, wherein:
and the second target icon determining submodule is used for determining one icon to be selected as the target icon if the number of the first icons is one.
And an icon moving module 250, configured to remove the icon to be operated from the display position of the icon, and replace the target icon to the display position of the icon to be operated for display.
Further, the mobile device 200 of the icon further includes: a circulation module, wherein:
and the circulating module is used for taking the target icon as the icon to be operated, repeatedly executing the steps of determining the icon to be selected which is adjacent to the display position of the icon to be operated and has an icon serial number larger than that of the icon to be operated from the icons, removing the icon to be operated from the display position of the icon to be operated, and complementing the position of the target icon to the display position of the icon to be operated for displaying until the position complementing of the icons is completed.
Further, the mobile device 200 of the icon further includes: a display position maintaining module, wherein:
and the display position maintaining module is used for removing the icon to be operated from the display position of the icon to be operated and maintaining the display positions of other icons except the icon to be operated in the plurality of icons unchanged if the number of the first icons is 0.
Further, the mobile device 200 of the icon further includes: the device comprises an information acquisition module, a direction determination module, an icon sequence number acquisition module and a target icon determination module, wherein:
the information acquisition module is used for acquiring the icon serial number corresponding to the icon to be operated as a first icon serial number, and determining the icon circle of the icon to be operated in n icon circles and the icon sequence of the icon circle of the icon to be operated based on the first icon serial number, wherein the n icon circles are established according to the display positions of the icons, n is a natural number, when n =0, the icon number of the icon included in the 0 th icon circle is one, one icon is the icon with the smallest icon serial number in the icons, when n > 0, the icon number of the icon included in the n th icon circle is 8n, in each icon circle, the icon positioned at the lower right corner of the icon circle is used as the 8n-1 th icon of the icon circle, and the icon positioned at the adjacent position on the left side of the 8n-1 th icon is used as the 0 th icon of the icon circle.
The direction determining module is used for determining a target direction according to the icon circle of the icon to be operated in the n icon circles and the icon sequence of the icon circle to which the icon belongs, and determining the icon to be selected in the target direction;
further, the direction determination module comprises: a first direction determination submodule and a second direction determination submodule, wherein:
and the first direction determining submodule is used for determining that the target direction is above the icon to be operated when the n = 0.
And the second direction determining submodule is used for determining the target direction according to the icon circle of the icon to be operated in the n icon circles and the icon sequence of the icon circle to which the icon to be operated belongs when the n is larger than 0.
Further, the second direction determination submodule includes: a first direction determining unit, a second direction determining unit, a third direction determining unit, and a fourth direction determining unit, wherein:
the first direction determining unit is used for determining that the target direction is above the icon to be operated if the icon to be operated meets a first condition, wherein the first condition is that x >4n-3 and x <6n, x is the icon ordering of the icon to be operated in the icon ring.
A second direction determining unit, configured 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, where the second condition is x =0 or x >6n-1.
And the third direction determining unit is used for determining that the target direction is below the icon to be operated if the icon to be operated meets a third condition, wherein the third condition is that x is less than 2n.
A fourth direction determining unit, 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.
And the icon sequence number acquisition module is used for acquiring the icon sequence number of the icon to be selected as a second icon sequence number.
Further, the icon sequence number obtaining module includes: a first icon sequence number obtaining submodule and a second icon sequence number obtaining submodule, wherein:
and the first icon sequence number obtaining sub-module is used for determining that the sequence number of the second icon is 5, 1, 3 and 7 in sequence when the target direction is the upper, lower, left and right sides of the icon to be operated when the n = 0.
And the second icon sequence number acquisition sub-module is used for 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 of the icon to be operated in the n icon circles and the icon sequence of the icon circle to which the icon to be operated belongs when the n is larger than 0.
Further, the second icon sequence number obtaining sub-module includes: a first icon sequence number obtaining unit, a second icon sequence number obtaining unit, a third icon sequence number obtaining unit, a fourth icon sequence number obtaining unit, a fifth icon sequence number obtaining unit, a sixth icon sequence number obtaining unit, a seventh icon sequence number obtaining unit and an eighth icon sequence number obtaining unit, wherein:
the first icon sequence number obtaining unit is configured to determine that the second icon sequence number is m-1, m +1-8n, and m +7+8n in sequence when the target direction is the top, the bottom, the left, the right, and the left of the icon to be operated, where the fourth condition is that x =8n-1, x is the icon ordering of the icon to be operated in the icon circle, and m is the first icon sequence number, if the icon to be operated satisfies a fourth condition.
A second icon sequence number obtaining unit, configured to determine 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 up, down, left, right, and left of the icon to be operated, if the icon to be operated satisfies a fifth condition, where the fifth condition is x =2n-1.
A third icon sequence number obtaining unit, configured to determine 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 up, down, left, right, and left of the icon to be operated, if the icon to be operated satisfies a sixth condition, where the sixth condition is x =4n-1.
A fourth icon sequence number obtaining unit, configured to determine 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 up, down, left, right, and left of the icon to be operated, where the seventh condition is x =6n-1.
A fifth icon sequence number obtaining unit, configured to determine that the second icon sequence number is m +7-8n, m +1+8n, and m +1 in sequence when the target direction is up, down, left, and right of the icon to be operated, where the eighth condition is that x < 2n-1, and when x =0, the second icon sequence number is m-1+8n when the target direction is right of the icon to be operated, and x ≠ 0, and the second icon sequence number is m-1 when the target direction is right of the icon to be operated.
A sixth icon sequence number obtaining unit, configured to determine that the second icon sequence number is m +1, m-1, m +3+8n, and m +5-8n in sequence when the target direction is up, down, left, right, and left of the icon to be operated, if the icon to be operated satisfies a ninth condition, where x is less than 4n-1.
A seventh icon sequence number obtaining unit, configured to determine that the second icon sequence number is m +5+8n, m +3-8n, m-1, and m +1 sequentially when the target direction is up, down, left, right, and left of the icon to be operated, where the tenth condition is that x is less than 6n-1, if the icon to be operated satisfies a tenth condition.
An eighth icon sequence number obtaining unit, configured to determine that the second icon sequence number is m-1, m +1-8n, and m +7+8n sequentially when the target direction is up, down, left, right, and left 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.
And the target icon determining module is used for determining the icon to be selected as the target icon if the second icon serial number is less than or equal to the total number of the icons.
Further, the mobile device 200 of the icon further includes: a target icon determination module, wherein:
and the target icon determining module is used for determining the icon with the icon serial number m +1 as the target icon if the second icon serial number is greater than the total number of the icons, wherein m is the first icon serial number.
Further, the mobile device 200 of the icon further includes: the system comprises an icon sequence number acquisition module and a target icon determination module, wherein:
and the icon sequence number acquisition module is used for acquiring the icon sequence number of the icon to be operated.
And the target icon determining module is used for determining a target icon sequence number corresponding to the icon sequence number of the icon to be operated based on a preset mapping relation, and determining the icon corresponding to the target icon sequence number as the target icon.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 14, a block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. 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 the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 interfaces with various components throughout the electronic device 100 using various interfaces and lines to perform various functions of the electronic device 100 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 15, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer readable medium 300 has stored therein a program code that can be called by a processor to execute the method described in the above method embodiments.
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. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
To sum up, the icon moving method, the icon moving device, the electronic device, and the storage medium provided in the embodiments of the present application display an icon editing interface, where 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, the icon serial numbers corresponding to the plurality of icons increase in a spiral manner from inside to outside, and in response to an icon operation instruction, an icon to be operated is determined from the plurality of icons, where the icon operation instruction is used to instruct to stop displaying of the icon at a display position of the icon, a to-be-selected icon is determined from the plurality of icons, which is adjacent to the display position of the to-be-operated icon and has an icon serial number greater than the icon serial number of the to-be-operated icon, the number of the to-be-selected icon is obtained as a first icon number, a target icon is determined from the to-be-selected icon based on the first icon number, the to-be-operated icon is removed from the display position of the to-be-operated icon, and the target icon is replaced to the display position of the to-be-operated icon at the display position of the to-be-operated icon, so that the problem that the icon is prevented from being disturbed in the icon can be-replaced in the icon by reasonably setting a replacement logic of the icon.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (16)

1. A method for moving an icon, the method comprising:
displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons which are arranged in a determinant manner, the icons are respectively corresponding to icon serial numbers, and the icon serial numbers corresponding to the icons are spirally increased from inside to 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 for indicating that the display of the icon at the display position is stopped;
determining an icon to be selected which is adjacent to the display position of the icon to be operated and has an icon serial number larger than that of the icon to be operated from the icons;
acquiring the icon number of the icons to be selected as a first icon number, and determining a target icon from the icons to be selected based on the first icon number;
and removing the icon to be operated from the display position of the icon to be operated, and supplementing the target icon to the display position of the icon to be operated for displaying.
2. The method according to claim 1, further comprising, after removing the icon to be operated from the display position of the icon to be operated and completing the target icon to the display position of the icon to be operated for display:
and taking the target icon as the icon to be operated, repeatedly executing the step of determining the icon to be selected which is adjacent to the display position of the icon to be operated and has the icon serial number larger than the icon serial number of the icon to be operated from the plurality of icons, removing the icon to be operated from the display position of the icon to be operated, and supplementing the target icon to the display position of the icon to be operated for displaying until the supplementing of the plurality of icons is completed.
3. The method of claim 1, wherein the determining a target icon from the icons to be selected based on the first number of icons comprises:
if the number of the first icons is at least two, the distance between each of the at least two icons to be selected and a coordinate axis origin of a target coordinate system is obtained, wherein the icon serial numbers corresponding to the icons are spirally increased from inside to outside by taking the coordinate axis origin as a spiral center point;
determining an icon to be determined with the largest distance from the coordinate axis origin from at least two icons to be selected;
acquiring the icon number of the icon to be determined as a second icon number, and determining the target icon from the icon to be determined based on the second icon number.
4. The method of claim 3, wherein the determining the target icon from the icons to be determined based on the second number of icons comprises:
if the number of the second icons is one, determining one icon to be determined as the target icon; or alternatively
And if the number of the second icons is two, determining the icon to be determined with the smallest icon sequence number from the two icons to be determined as the target icon.
5. The method of claim 1, wherein the determining a target icon from the icons to be selected based on the first number of icons comprises:
and if the number of the first icons is one, determining one icon to be selected as the target icon.
6. The method of claim 1, further comprising:
and if the number of the first icons is 0, removing the icons to be operated from the display positions of the icons to be operated, and keeping the display positions of other icons except the icons to be operated unchanged.
7. The method according to any one of claims 1-6, further comprising:
acquiring an icon sequence number corresponding to the icon to be operated as a first icon sequence number, and determining an icon circle of the icon to be operated in n icon circles and an icon sequence of the icon circle of the icon to be operated based on the first icon sequence number, wherein the n icon circles are established according to display positions of the icons, n is a natural number, when n =0, the number of icons included in the 0 th icon circle is one, one icon is the icon with the smallest icon sequence number in the icons, when n > 0, the number of icons included in the n-th icon circle is 8n, in each icon circle, an icon positioned at the lower right corner of the icon circle is used as the 8n-1 th icon of the icon circle, and an icon positioned at the adjacent position on the left side of the 8n-1 th icon is used as the 0 th icon of the icon circle;
determining a target direction according to the icon circle of the icon to be operated in the n icon circles and the icon sequence of the icon circle to which the icon to be operated belongs, and determining an icon to be selected in the target direction;
acquiring an icon serial number of the icon to be selected as a second icon serial number;
and if the second icon sequence number is less than or equal to the total number of the icons, determining the icon to be selected as the target icon.
8. The method according to claim 7, wherein the determining the target direction according to the icon ring to which the icon to be operated belongs in the n icon rings and the icon sequence of the icon ring to which the icon to be operated belongs comprises:
when the n =0, determining that the target direction is above the icon to be operated;
and when the n is larger than 0, determining the target direction according to the icon circle of the icon to be operated in the n icon circles and the icon sequence of the icon circle to which the icon to be operated belongs.
9. The method according to claim 8, wherein the determining the target direction according to the icon sorting of the icon circle to which the icon to be operated belongs in the n icon circles and the icon circle to which the icon to be operated belongs comprises:
if the icon to be operated meets a first condition, determining that the target direction is above the icon to be operated, wherein the first condition is x >4n-3 and x <6n, x is the icon ordering of the icon to be operated in the icon ring;
if the icon to be operated meets a second condition, determining that the target direction is the right direction of the icon to be operated, wherein the second condition is x =0 or x >6n-1;
if the icon to be operated meets a third condition, determining that the target direction is below the icon to be operated, wherein the third condition is that x is less than 2n;
and if the icon to be operated does not meet the first condition, the second condition and the third condition, determining that the target direction is the left side of the icon to be operated.
10. The method according to claim 7, wherein the obtaining the icon sequence number of the icon to be selected as a second icon sequence number comprises:
when the n =0, determining that the serial number of the second icon is 5, 1, 3 and 7 in sequence when the target direction is the upper, lower, left and right sides of the icon to be operated;
and when the n is larger than 0, acquiring the serial number of the icon to be selected as the serial number of the second icon based on the first icon serial number, the icon circle of the icon to be operated in the n icon circles and the icon sequence of the icon circle to which the icon to be operated belongs.
11. The method according to claim 10, wherein the obtaining 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 of the icon circle to which the icon to be operated belongs comprises:
if the icon to be operated meets a fourth condition, determining that the second icon serial number is m-1, m +1-8n and m +7+8n in sequence when the target direction is up, down, left and right of the icon to be operated, wherein the fourth condition is that x =8n-1, x is the icon ordering of the icon to be operated in the icon ring, and m is the first icon serial number;
if the icon to be operated meets a fifth condition, determining that the second icon serial number is m +1, m +1+8n, m +3+8n and m-1 in sequence when the target direction is up, down, left, right and left of the icon to be operated, wherein the fifth condition is that x =2n-1;
if the icon to be operated meets a sixth condition, determining that the serial number of the second icon is m +5+8n, m-1, m +3+8n and m +1 in sequence when the target direction is up, down, left and right of the icon to be operated, wherein the sixth condition is x =4n-1;
if the icon to be operated meets a seventh condition, determining that the second icon serial number is m +5+8n, m +1, m-1 and m +7+8n in sequence when the target direction is up, down, left and right of the icon to be operated, wherein the seventh condition is x =6n-1;
if the icon to be operated meets an eighth condition, determining that the second icon serial number is m +7-8n, m +1+8n and m +1 in sequence when the target direction is the top, bottom and left of the icon to be operated, wherein the eighth condition is that 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;
if the icon to be operated meets a ninth condition, determining that the second icon serial number is m +1, m-1, m +3+8n and m +5-8n in sequence when the target direction is up, down, left and right of the icon to be operated, wherein the ninth condition is that x is less than 4n-1;
if the icon to be operated meets a tenth condition, determining that the second icon serial number is m +5+8n, m +3-8n, m-1 and m +1 in sequence when the target direction is up, down, left and right of the icon to be operated, wherein the tenth condition is that x is less than 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, it is determined that the second icon serial number is m-1, m +1-8n, and m +7+8n sequentially when the target direction is up, down, left, right of the icon to be operated.
12. The method of claim 7, further comprising:
and if the second icon serial number is greater than the total number of the icons, determining the icon with the icon serial number m +1 as the target icon, wherein m is the first icon serial number.
13. The method of any one of claims 1-6, further comprising:
acquiring an icon sequence number of the icon to be operated;
and determining a target icon sequence number corresponding to the icon sequence number of the icon to be operated based on a preset mapping relation, and determining the icon corresponding to the target icon sequence number as the target icon.
14. An apparatus for moving an icon, the apparatus comprising:
the icon editing interface display module is used for displaying an icon editing interface, wherein the icon editing interface comprises a plurality of icons which are arranged in a determinant manner, the icons respectively correspond to icon serial numbers, and the icon serial numbers corresponding to the icons are spirally increased from inside to outside;
the icon to be operated determining module is used for determining an icon to be operated from the plurality of icons in response to an icon operating instruction, wherein the icon operating instruction is used for indicating that the display of the icon at the display position is stopped;
the icon selection module is used for selecting icons to be selected from the icons, wherein the icons are adjacent to the display position of the icon to be operated and have icon serial numbers larger than the icon serial number of the icon to be operated;
the target icon determining module is used for acquiring the icon number of the icons to be selected as a first icon number and determining a target icon from the icons to be selected based on the first icon number;
and the icon moving module is used for removing the icon to be operated from the display position of the icon to be operated and supplementing the target icon to the display position of the icon to be operated for displaying.
15. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-13.
16. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 13.
CN202210906223.9A 2022-07-29 2022-07-29 Icon moving method and device, electronic equipment and storage medium Pending CN115145444A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210906223.9A CN115145444A (en) 2022-07-29 2022-07-29 Icon moving method and device, electronic equipment and storage medium
PCT/CN2023/099183 WO2024021902A1 (en) 2022-07-29 2023-06-08 Method and apparatus for moving icon, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210906223.9A CN115145444A (en) 2022-07-29 2022-07-29 Icon moving method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115145444A true CN115145444A (en) 2022-10-04

Family

ID=83414480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210906223.9A Pending CN115145444A (en) 2022-07-29 2022-07-29 Icon moving method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN115145444A (en)
WO (1) WO2024021902A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024021902A1 (en) * 2022-07-29 2024-02-01 Oppo广东移动通信有限公司 Method and apparatus for moving icon, and electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063125A (en) * 2014-06-06 2014-09-24 腾讯科技(深圳)有限公司 Managing method and managing device for desktop icons
CN108121485A (en) * 2017-11-10 2018-06-05 深圳市金立通信设备有限公司 A kind of icon method for sorting, terminal and computer readable storage medium
CN114253440A (en) * 2021-11-11 2022-03-29 珠海格力电器股份有限公司 APP icon management method, electronic device and storage medium
WO2022134637A1 (en) * 2020-12-25 2022-06-30 荣耀终端有限公司 Application icon management method, terminal device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10044888B2 (en) * 2014-08-06 2018-08-07 Kabushiki Kaisha Toshiba Image forming apparatus and control method thereof
CN109272681A (en) * 2018-07-12 2019-01-25 山东亚华电子股份有限公司 A kind of methods of exhibiting and medical care host of bed call state
CN109725791A (en) * 2018-12-29 2019-05-07 惠州Tcl移动通信有限公司 A kind of processing method, mobile terminal and the storage medium of polishing desktop icons
CN112860141A (en) * 2019-11-28 2021-05-28 华为技术有限公司 Method and device for operating screen icon
CN111831182B (en) * 2020-07-09 2022-02-08 维沃移动通信有限公司 Application icon control method and device and electronic equipment
CN115145444A (en) * 2022-07-29 2022-10-04 Oppo广东移动通信有限公司 Icon moving method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063125A (en) * 2014-06-06 2014-09-24 腾讯科技(深圳)有限公司 Managing method and managing device for desktop icons
CN108121485A (en) * 2017-11-10 2018-06-05 深圳市金立通信设备有限公司 A kind of icon method for sorting, terminal and computer readable storage medium
WO2022134637A1 (en) * 2020-12-25 2022-06-30 荣耀终端有限公司 Application icon management method, terminal device and storage medium
CN114253440A (en) * 2021-11-11 2022-03-29 珠海格力电器股份有限公司 APP icon management method, electronic device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024021902A1 (en) * 2022-07-29 2024-02-01 Oppo广东移动通信有限公司 Method and apparatus for moving icon, and electronic device and storage medium

Also Published As

Publication number Publication date
WO2024021902A1 (en) 2024-02-01

Similar Documents

Publication Publication Date Title
US9881393B2 (en) Method, apparatus, and terminal device for determining color of interface control
US20220139017A1 (en) Layer composition method, electronic device, and storage medium
EP4220387A1 (en) Desktop layout method and apparatus, and electronic device
CN112862199B (en) Cleaning path acquisition method and device for cleaning equipment and storage medium
US20230325062A1 (en) Method for adjusting interface display state, and electronic device
WO2024021902A1 (en) Method and apparatus for moving icon, and electronic device and storage medium
CN112218134A (en) Input method and related equipment
CN113986076A (en) Icon display control method and device, electronic equipment and storage medium
CN110727385B (en) Desktop icon sorting method and device, electronic equipment and storage medium
CN107122104B (en) Data display method and device
CN113786607A (en) Interface display method, device, terminal and storage medium
CN115857751A (en) Icon management method and device and electronic equipment
EP4290353A1 (en) Input method and apparatus, electronic device, and storage medium
EP4120120A1 (en) Method and apparatus for obtaining cleaning path of cleaning device, and storage medium
CN110533742B (en) Image color filling method, device, equipment and storage medium
CN110647263B (en) Mobile terminal desktop icon moving method, device, medium and equipment
CN112925457A (en) Application program control method and device, storage medium and terminal
US10514834B2 (en) Method and system for selecting objects on a computer screen
CN111773679A (en) Method and device for processing icons in game
US20230376198A1 (en) Screen splitting method and apparatus, electronic device, and storage medium
CN109857324B (en) Application program interface display method, device, equipment and storage medium
CN114022603A (en) Graph processing method and device and electronic equipment
CN113807059A (en) Text editing method and device
CN113867948A (en) Memory cleaning method, device, equipment and storage medium
CN112162811A (en) Display method and display device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination