Method, device and storage medium for interchanging icon positions
First Claim
1. An icon position interchanging method, comprising:
- receiving a first sliding signal and a second sliding signal, the first sliding signal being triggered by a first dragging operation over a first icon and the second sliding signal being triggered by a second dragging operation over a second icon;
determining a first sliding vector according to the first sliding signal and a second sliding vector according to the second sliding signal;
judging whether the first sliding signal and the second sliding signal satisfy a preset condition according to a first length of the first sliding vector and a second length of the second sliding vector; and
performing, if the first sliding signal and the second sliding signal satisfy the preset condition, position interchanging on the first icon and the second icon;
wherein judging whether the first sliding signal and the second sliding signal satisfy the preset condition includes;
acquiring a display position distance between a display position of the first icon and a display position of the second icon;
determining whether the display position distance, the first length, and the second length satisfy a numerical relationship; and
determining, if the display position distance, the first length, and the second length satisfy the numerical relationship, that the first sliding signal and the second sliding signal satisfy the preset condition;
wherein determining whether the display position distance, the first length, and the second length satisfy the numerical relationship includes determining whether the display position distance, the first length, and the second length satisfy at least one of following relationships;
a ratio of the first length to the display position distance exceeds a first preset value;
a ratio of the second length to the display position distance exceeds a second preset value;
ora ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value.
1 Assignment
0 Petitions
Accused Products
Abstract
An icon position interchanging method includes receiving a first sliding signal triggered by a first dragging operation over a first icon and a second sliding signal triggered by a second dragging operation over a second icon, determining a first sliding vector according to the first sliding signal and a second sliding vector according to the second sliding signal, judging whether the first sliding signal and the second sliding signal satisfy a preset condition according to a first length of the first sliding vector and a second length of the second sliding vector, and performing position interchanging on the first icon and the second icon if the first sliding signal and the second sliding signal satisfy the preset condition.
100 Citations
9 Claims
-
1. An icon position interchanging method, comprising:
-
receiving a first sliding signal and a second sliding signal, the first sliding signal being triggered by a first dragging operation over a first icon and the second sliding signal being triggered by a second dragging operation over a second icon; determining a first sliding vector according to the first sliding signal and a second sliding vector according to the second sliding signal; judging whether the first sliding signal and the second sliding signal satisfy a preset condition according to a first length of the first sliding vector and a second length of the second sliding vector; and performing, if the first sliding signal and the second sliding signal satisfy the preset condition, position interchanging on the first icon and the second icon; wherein judging whether the first sliding signal and the second sliding signal satisfy the preset condition includes; acquiring a display position distance between a display position of the first icon and a display position of the second icon; determining whether the display position distance, the first length, and the second length satisfy a numerical relationship; and determining, if the display position distance, the first length, and the second length satisfy the numerical relationship, that the first sliding signal and the second sliding signal satisfy the preset condition; wherein determining whether the display position distance, the first length, and the second length satisfy the numerical relationship includes determining whether the display position distance, the first length, and the second length satisfy at least one of following relationships; a ratio of the first length to the display position distance exceeds a first preset value; a ratio of the second length to the display position distance exceeds a second preset value;
ora ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value. - View Dependent Claims (2)
-
-
3. An icon position interchanging method, comprising:
-
receiving a first sliding signal and a second sliding signal, the first sliding signal being triggered by a first dragging operation over a first icon and the second sliding signal being triggered by a second dragging operation over a second icon; determining a first sliding vector according to the first sliding signal and a second sliding vector according to the second sliding signal; judging whether the first sliding signal and the second sliding signal are opposite-movement sliding signals indicating the first dragging operation and the second dragging operation involve opposite movements, according to a direction of the first sliding vector and a direction of the second sliding vector; if the first sliding signal and the second sliding signal are opposite-movement sliding signals; judging whether the first sliding signal and the second sliding signal satisfy a preset condition according to a first length of the first sliding vector and a second length of the second sliding vector; and performing, if the first sliding signal and the second sliding signal satisfy the preset condition, position interchanging on the first icon and the second icon; and if the first sliding signal and the second sliding signal are not opposite-movement sliding signals; stopping icon position interchanging; wherein judging whether the first sliding signal and the second sliding signal satisfy the preset condition includes; acquiring a display position distance between a display position of the first icon and a display position of the second icon; determining whether the display position distance, the first length, and the second length satisfy a numerical relationship; and determining, if the display position distance, the first length, and the second length satisfy the numerical relationship, that the first sliding signal and the second sliding signal satisfy the preset condition; wherein determining whether the display position distance, the first length, and the second length satisfy the numerical relationship includes determining whether the display position distance, the first length, and the second length satisfy at least one of following relationships; a ratio of the first length to the display position distance exceeds a first preset value; a ratio of the second length to the display position distance exceeds a second preset value;
ora ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value. - View Dependent Claims (4)
-
-
5. An icon position interchanging device, comprising:
-
a processor; and a memory storing instructions that, when executed by the processor, cause the processor to; receive a first sliding signal and a second sliding signal, the first sliding signal being triggered by a first dragging operation over a first icon and the second sliding signal being triggered by a second dragging operation over a second icon; determine a first sliding vector according to the first sliding signal and a second sliding vector according to the second sliding signal; judge whether the first sliding signal and the second sliding signal satisfy a preset condition according to a first length of the first sliding vector and a second length of the second sliding vector; and perform, if the first sliding signal and the second sliding signal satisfy the preset condition, position interchanging on the first icon and the second icon; wherein, in judging whether the first sliding signal and the second sliding signal satisfy the preset condition, the instructions further cause the processor to; acquire a display position distance between a display position of the first icon and a display position of the second icon; determine whether the display position distance, the first length, and the second length satisfy a numerical relationship; and determine, if the display position distance, the first length, and the second length satisfy the numerical relationship, that the first sliding signal and the second sliding signal satisfy the preset condition; wherein determining whether the display position distance, the first length, and the second length satisfy the numerical relationship includes determining whether the display position distance, the first length, and the second length satisfy at least one of following relationships; a ratio of the first length to the display position distance exceeds a first preset value; a ratio of the second length to the display position distance exceeds a second preset value;
ora ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value. - View Dependent Claims (6)
-
-
7. An icon position interchanging device, comprising:
-
a processor; and a memory storing instructions that, when executed by the processor, cause the processor to; receive a first sliding signal and a second sliding signal, the first sliding signal being triggered by a first dragging operation over a first icon and the second sliding signal being triggered by a second dragging operation over a second icon; determine a first sliding vector according to the first sliding signal and a second sliding vector according to the second sliding signal; judge whether the first sliding signal and the second sliding signal are opposite-movement sliding signals indicating the first dragging operation and the second dragging operation involve opposite movements, according to a direction of the first sliding vector and a direction of the second sliding vector; if the first sliding signal and the second sliding signal are opposite-movement sliding signals; judge whether the first sliding signal and the second sliding signal satisfy a preset condition according to a first length of the first sliding vector and a second length of the second sliding vector; and perform, if the first sliding signal and the second sliding signal satisfy the preset condition, position interchanging on the first icon and the second icon; and if the first sliding signal and the second sliding signal are not opposite-movement sliding signals; stop icon position interchanging; wherein, in judging whether the first sliding signal and the second sliding signal satisfy the preset condition, the instructions further cause the processor to; acquire a display position distance between a display position of the first icon and a display position of the second icon; determine whether the display position distance, the first length, and the second length satisfy a numerical relationship; and determine, if the display position distance, the first length, and the second length satisfy the numerical relationship, that the first sliding signal and the second sliding signal satisfy the preset condition; wherein determining whether the display position distance, the first length, and the second length satisfy the numerical relationship includes determining whether the display position distance, the first length, and the second length satisfy at least one of following relationships; a ratio of the first length to the display position distance exceeds a first preset value; a ratio of the second length to the display position distance exceeds a second preset value;
ora ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value. - View Dependent Claims (8)
-
-
9. A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of a mobile terminal, causes the mobile terminal to:
-
receive a first sliding signal and a second sliding signal, the first sliding signal being triggered by a first dragging operation over a first icon and the second sliding signal being triggered by a second dragging operation over a second icon; determine a first sliding vector according to the first sliding signal and a second sliding vector according to the second sliding signal; judge whether the first sliding signal and the second sliding signal satisfy a preset condition according to a first length of the first sliding vector and a second length of the second sliding vector; and perform, if the first sliding signal and the second sliding signal satisfy the preset condition, position interchanging on the first icon and the second icon; wherein judging whether the first sliding signal and the second sliding signal satisfy the preset condition includes; acquiring a display position distance between a display position of the first icon and a display position of the second icon; determining whether the display position distance, the first length, and the second length satisfy a numerical relationship; and determining, if the display position distance, the first length, and the second length satisfy the numerical relationship, that the first sliding signal and the second sliding signal satisfy the preset condition; wherein determining whether the display position distance, the first length, and the second length satisfy the numerical relationship includes determining whether the display position distance, the first length, and the second length satisfy at least one of following relationships; a ratio of the first length to the display position distance exceeds a first preset value; a ratio of the second length to the display position distance exceeds a second preset value;
ora ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value.
-
Specification