IP Library Granted Patent US 10,061,497
Granted Patent B2
US 10,061,497 · App. 15/163,239 · Granted Aug 28, 2018

Method, device and storage medium for interchanging icon positions

Inventors: Kangxi Tan (Beijing, CN); Xin Liang (Beijing, CN); Xingmin Wang (Beijing, CN)
Assignee: Xiaomi Inc.
G06F3/04845G06F3/04817G06F3/04883G06F2203/04808
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,061,497
App. No.
15/163,239
Granted
Aug 28, 2018
Kind
B2
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.

Claims (91)

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; or

a ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value.

2. The method according to claim 1 , wherein determining the first sliding vector and the second sliding vector includes:

determining an initial position of the first dragging operation as a starting point of the first sliding vector and a stop position of the first dragging operation as an endpoint of the first sliding vector; and

determining an initial position of the second dragging operation as a starting point of the second sliding vector and a stop position of the second dragging operation as an endpoint of the second sliding vector.

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; or

a ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value.

4. The method according to claim 3 , wherein judging whether the first sliding signal and the second sliding signal are opposite-movement sliding signals includes:

determining a line connecting a display position of the first icon and a display position of the second icon as a reference line;

acquiring an angle between the direction of the first sliding vector and the reference line as a first angle, and an angle between the direction of the second sliding vector and the reference line as a second angle; and

determining, when the first angle is within a first preset angle range and the second angle is within a second preset angle range, that the first sliding signal and the second sliding signal are opposite-movement sliding signals.

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; or

a ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value.

6. The device according to claim 5 , wherein the instructions further cause the processor to:

determine an initial position of the first dragging operation as a starting point of the first sliding vector and a stop position of the first dragging operation as an endpoint of the first sliding vector; and

determine an initial position of the second dragging operation as a starting point of the second sliding vector and a stop position of the second dragging operation as an endpoint of the second sliding vector.

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; or

a ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value.

8. The device according to claim 7 , wherein the instructions further cause the processor to:

determine a line connecting a display position of the first icon and a display position of the second icon as a reference line;

acquire an angle between the direction of the first sliding vector and the reference line as a first angle, and an angle between the direction of the second sliding vector and the reference line as a second angle; and

determine, when the first angle is within a first preset angle range and the second angle is within a second preset angle range, that the first sliding signal and the second sliding signal are opposite-movement sliding signals.

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; or

a ratio of a sum of the first length and the second length to the display position distance exceeds a third preset value.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 24, 2016
From: TAN, KANGXI; LIANG, XIN; WANG, XINGMIN
To: XIAOMI INC.
Reel/Frame 038707/0361 →
Priority Claims (1)
CN 2015 1 0745112 · Nov 5, 2015 · national
Continuity (1)
Related Publication 20170131878A1 · May 11, 2017