(19)
(11)EP 4 057 118 A1

(12)EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43)Date of publication:
14.09.2022 Bulletin 2022/37

(21)Application number: 20891961.3

(22)Date of filing:  06.11.2020
(51)International Patent Classification (IPC): 
G06F 3/0481(2022.01)
(52)Cooperative Patent Classification (CPC):
G06F 3/0488; G06F 3/0486; G06F 3/0484; G06F 3/0481
(86)International application number:
PCT/CN2020/127218
(87)International publication number:
WO 2021/103985 (03.06.2021 Gazette  2021/22)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME
Designated Validation States:
KH MA MD TN

(30)Priority: 28.11.2019 CN 201911194640

(71)Applicant: Huawei Technologies Co., Ltd.
Shenzhen, Guangdong 518129 (CN)

(72)Inventors:
  • MA, Yuchi
    Shenzhen, Guangdong 518129 (CN)
  • TONG, Bifeng
    Shenzhen, Guangdong 518129 (CN)
  • ZHAO, Xiaohu
    Shenzhen, Guangdong 518129 (CN)
  • TE, Rigele
    Shenzhen, Guangdong 518129 (CN)

(74)Representative: Grünecker Patent- und Rechtsanwälte PartG mbB 
Leopoldstraße 4
80802 München
80802 München (DE)

  


(54)SCREEN ICON OPERATING METHOD AND APPARATUS


(57) A screen icon operating method is provided. The method includes: collecting user sliding operation information, where the sliding operation information includes: a first location, a sliding speed, pressing duration before sliding, or a sliding direction (S201), and the first location is an initial location of a user sliding operation; and when the first location is not located on an icon, if the sliding speed is less than a sliding speed threshold, moving icons on a display page by columns or by rows in the sliding direction (S204); or when the first location is located on the icon, determining that the pressing duration is greater than or equal to a first duration threshold and less than or equal to a second duration threshold, and moving column icons or row icons in the sliding direction (S207). According to the method, a corresponding icon can be quickly found, and for a large-screen terminal device whose size exceeds a specific size, operations can be quickly implemented with one hand. Therefore, the operations are more simple and convenient.




Description


[0001] This application claims priority to Chinese Patent Application No. 201911194640.X, filed with the China National Intellectual Property Administration on November 28, 2019 and entitled "SCREEN ICON OPERATING METHOD AND APPARATUS", which is incorporated herein by reference in its entirety.

TECHNICAL FIELD



[0002] This application relates to the field of electronic technologies, and in particular, to a method and an apparatus for conveniently operating icons on a screen of a smart device.

BACKGROUND



[0003] Nowadays, with popularization of smart devices, more people use devices with touchscreens, and it is common to perform operations on the touchscreens in daily scenarios. Generally, a user directly operates, with a finger or another input device, an icon displayed on the touchscreen, to perform an operation such as tapping or dragging. With popularization of smart devices with touchscreens, applications installed on the smart devices are also increasing dramatically. Therefore, it is very likely that the icon displayed on the touchscreen can be located across a plurality of desktops, and is tapped to perform a corresponding operation.

[0004] Currently, icon operating on the smart device with the touchscreen is implemented in a very simple manner, that is, implemented through unified dragging by an input device. However, such an operation may have some disadvantages. For example, when a quantity of applications exceeds a range of controls that can be used on the touchscreen, the user needs to drag the entire screen once to find an icon that needs to be used. For example, some screens display 4x5 icons, that is, 20 icons, and some larger screens display 5x5 icons, that is, 25 icons. Consequently, the user needs to perform frequent dragging to find a corresponding icon. This causes very tedious operations and is very time-consuming.

SUMMARY



[0005] Embodiments of this application provide a screen icon operating method, to determine whether an initial location of a user sliding operation is located on an icon, and further perform an entire screen operation or a single row/column operation. By performing the entire screen operation or the single row/column operation, frequent dragging caused by an excessive quantity of screen interfaces and one-hand operation difficulty caused by an excessively large screen are avoided. In addition, an idea of operating only an icon layout of the entire screen by performing dragging each time is changed, to greatly improve user operation experience and efficiency.

[0006] According to a first aspect, a touchscreen icon operating method. The method includes: collecting user sliding operation information, where the user sliding operation information includes: a first location, a sliding speed, pressing duration before sliding, or a sliding direction, and the first location is an initial location of a user sliding operation; and when the first location is not located on an icon, determining that the sliding speed is less than a sliding speed threshold, and moving all icons on a display page in the sliding direction; or when the first location is located on the icon, determining that the pressing duration is greater than or equal to a first duration threshold and less than or equal to a second duration threshold, and moving, in the sliding direction, column icons in a related column or row icons in a related row of the icon on which the first location is located on the display page.

[0007] In a possible implementation, the touch information further includes a second location, and the second location is a touch location at which the user sliding operation ends. The moving all icons on a display page in the sliding direction includes: determining a sliding distance ℓ of the user sliding operation based on the first location and the second location, where ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; determining a supplementary parameter N, where N is determined by dividing ℓ by a unit switching distance Δh, Δh is greater than or equal to a width of a single icon and less than or equal to a width of an entire screen, and Δh is an integer multiple of the width of the single icon; and moving all the icons on the display page by X rows or columns along the sliding direction, where X is a quantity of rows or columns of icons in an NxΔh range, and X is an integer.

[0008] In a possible implementation, the sliding direction includes a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge. The moving all the icons on the display page by X rows or columns along the sliding direction includes: if the sliding direction is the horizontal direction, moving all the icons on the display page by the X columns along the horizontal direction; or if the sliding direction is the vertical direction, cyclically moving all the icons on the display page by the X rows along the vertical direction.

[0009] In a possible implementation, if the sliding direction is the horizontal direction, the method further includes: removing icons that fall outside the display page after the movement, determining, from an adjacent page in a direction opposite to the sliding direction, X columns of icons adjacent to the display page, and moving the icons to the display page.

[0010] In a possible implementation, if the sliding direction is the horizontal direction, the method further includes: when there are at least one column of icons on the adjacent page, and a quantity of columns of icons is less than X, determining a quantity Q of columns of icons on the adjacent page, where Q is a positive integer, and 0 < Q < X; and moving all the icons on the display page by Q columns along the horizontal direction, removing icons that fall outside the display page after the movement, and moving the Q columns of icons on the adjacent page to the display page.

[0011] In a possible implementation, if the sliding direction is the horizontal direction, the method further includes: when there is no column of icons on the adjacent page, canceling the user sliding operation.

[0012] In a possible implementation, the first location includes two or more locations; and the method further includes: determining, based on the two or more locations, that an area in which the first location is located on the display page includes at least two rows or at least two columns.

[0013] In a possible implementation, the touch information further includes a second location, and the second location is a touch location at which the user sliding operation ends. The sliding direction includes a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge. The moving, in the sliding direction, column icons in a related column or row icons in a related row of the icon on which the first location is located on the display page includes: determining a sliding distance ℓ of the user sliding operation based on the first location and the second location, where ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and when the sliding direction or a pressing force direction of the first location is the vertical direction, determining the related column of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than a minimum sliding distance Δℓ, moving the column icons in the related column on the display page; or when the sliding direction or the pressing force direction of the first location is the horizontal direction, determining the related row of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than Δℓ, moving the row icons in the related row on the display page.

[0014] In a possible implementation, the moving the column icons in the related column on the display page includes: cyclically moving the column icons in the related column.

[0015] In a possible implementation, the moving the row icons in the related row on the display page includes: moving the row icons in the related row on the display page by Y icon distances along the horizontal direction, where Y is a quantity of icons in a ℓ distance range, and Y is an integer distance.

[0016] In a possible implementation, the method further includes: removing icons that fall outside the display page after the movement, determining, from an adjacent page in a direction opposite to the sliding direction, Y icons that are located in a same row as the related row and that are adjacent to the display page, and moving the icons to the related row on the display page.

[0017] In a possible implementation, the method further includes: when there are icons in the same row as the related row on the adjacent page and a quantity of icons is less than Y, determining a quantity P of icons in the same row as the related row on the adjacent page, where P is a positive integer, and 0 < P < Y; and moving all the icons in the related row on the display page by the P icons along the horizontal direction, removing icons that fall outside the display page after the movement, and moving the P icons in the same row as the related row on the adjacent page to the related row on the display page.

[0018] In a possible implementation, the method further includes: when there is no icon in the same row as the related row on the adjacent page, canceling the user sliding operation.

[0019] According to a second aspect, a touchscreen icon operating apparatus. The apparatus includes a sensor, a memory, a processor, and an interface circuit. The sensor is configured to collect user sliding operation information, where the user sliding operation information includes: a first location, a sliding speed, pressing duration before sliding, or a sliding direction, and the first location is an initial location of a user sliding operation. The memory is configured to store code instructions and the user sliding operation information collected by the sensor. The interface circuit is configured to receive the code instructions and transmit the code instructions to the processor. The processor is configured to: when the first location is not located on an icon, determine that the sliding speed is less than a sliding speed threshold, and move all icons on a display page in the sliding direction; or when the first location is located on the icon, determine that the pressing duration is greater than or equal to a first duration threshold and less than or equal to a second duration threshold, and move, in the sliding direction, column icons in a related column or row icons in a related row of the icon on which the first location is located on the display page.

[0020] In a possible implementation, the touch information further includes a second location, and the second location is a touch location at which the user sliding operation ends. The processor is further configured to: determine a sliding distance ℓ of the user sliding operation based on the first location and the second location, where ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and determine a supplementary parameter N, where N is determined by dividing ℓ by a unit switching distance Δh, Δh is greater than or equal to a width of a single icon and less than or equal to a width of an entire screen, and Δh is an integer multiple of the width of the single icon; and move all the icons on the display page by X rows or columns along the sliding direction, where X is a quantity of rows or columns of icons in an NxΔh range, and X is an integer.

[0021] In a possible implementation, the sliding direction includes a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge. The processor is further configured to: if the sliding direction is the horizontal direction, move all the icons on the display page by the X columns along the horizontal direction; or if the sliding direction is the vertical direction, cyclically move all the icons on the display page by the X rows along the vertical direction.

[0022] In a possible implementation, the processor is further configured to: remove icons that fall outside the display page after the movement, determine, from an adjacent page in a direction opposite to the sliding direction, X columns of icons adjacent to the display page, and move the icons to the display page.

[0023] In a possible implementation, the processor is further configured to: when there are at least one column of icons on the adjacent page, and a quantity of columns of icons is less than X, determine a quantity Q of columns of icons on the adjacent page, where Q is a positive integer, and 0 < Q < X; and move all the icons on the display page by Q columns along the horizontal direction, remove icons that fall outside the display page after the movement, and move the Q columns of icons on the adjacent page to the display page.

[0024] In a possible implementation, the processor is further configured to: when there is no column of icons on the adjacent page, cancel the user sliding operation.

[0025] In a possible implementation, the first location includes two or more locations. The processor is further configured to determine, based on the two or more locations, that an area in which the first location is located on the display page includes at least two rows or at least two columns.

[0026] In a possible implementation, the touch information further includes a second location, and the second location is a touch location at which the user sliding operation ends. The sliding direction includes a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge. The processor is further configured to: determine a sliding distance ℓ of the user sliding operation based on the first location and the second location, where ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and when the sliding direction or a pressing force direction of the first location is the vertical direction, determine the related column of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than a minimum sliding distance Δℓ, move the column icons in the related column on the display page; or when the sliding direction or the pressing force direction of the first location is the horizontal direction, determine the related row of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than Δℓ, move the row icons in the related row on the display page.

[0027] In a possible implementation, the processor is further configured to cyclically move the column icons in the related column.

[0028] In a possible implementation, the processor is further configured to move the row icons in the related row on the display page by Y icon distances along the horizontal direction, where Y is a quantity of icons in a ℓ distance range, and Y is an integer distance.

[0029] In a possible implementation, the processor is further configured to: remove icons that fall outside the display page after the movement, determine, from an adjacent page in a direction opposite to the sliding direction, Y icons that are located in a same row as the related row and that are adjacent to the display page, and move the icons to the related row on the display page.

[0030] In a possible implementation, the processor is further configured to: when there are icons in the same row as the related row on the adjacent page and a quantity of icons is less than Y, determine a quantity P of icons in the same row as the related row on the adjacent page, where P is a positive integer, and 0 < P < Y; and move all the icons in the related row on the display page by the P icons along the horizontal direction, remove icons that fall outside the display page after the movement, and move the P icons in the same row as the related row on the adjacent page to the related row on the display page.

[0031] In a possible implementation, the processor is further configured to: when there is no icon in the same row as the related row on the adjacent page, cancel the user sliding operation.

[0032] According to a third aspect, a touchscreen icon operating apparatus. The apparatus includes: a collection module, configured to collect user sliding operation information, where the user sliding operation information includes: a first location, a sliding speed, pressing duration before sliding, or a sliding direction, and the first location is an initial location of a user sliding operation; and a processing module, configured to: when the first location is not located on an icon, determine that the sliding speed is less than a sliding speed threshold, and move all icons on a display page in the sliding direction; or when the first location is located on the icon, determine that the pressing duration is greater than or equal to a first duration threshold and less than or equal to a second duration threshold, and move, in the sliding direction, column icons in a related column or row icons in a related row of the icon on which the first location is located on the display page.

[0033] In a possible implementation, the touch information further includes a second location, and the second location is a touch location at which the user sliding operation ends. The processing module is further configured to: determine a sliding distance ℓ of the user sliding operation based on the first location and the second location, where ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and determine a supplementary parameter N, where N is determined by dividing ℓ by a unit switching distance Δh, Δh is greater than or equal to a width of a single icon and less than or equal to a width of an entire screen, and Δh is an integer multiple of the width of the single icon; and move all the icons on the display page by X rows or columns along the sliding direction, where X is a quantity of rows or columns of icons in an NxΔh range, and X is an integer.

[0034] In a possible implementation, the sliding direction includes a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge. The processing module is further configured to: if the sliding direction is the horizontal direction, move all the icons on the display page by the X columns along the horizontal direction; or if the sliding direction is the vertical direction, cyclically move all the icons on the display page by the X rows along the vertical direction.

[0035] In a possible implementation, the processing module is further configured to: remove icons that fall outside the display page after the movement, determine, from an adjacent page in a direction opposite to the sliding direction, X columns of icons adjacent to the display page, and move the icons to the display page.

[0036] In a possible implementation, the processing module is further configured to: when there are at least one column of icons on the adjacent page, and a quantity of columns of icons is less than X, determine a quantity Q of columns of icons on the adjacent page, where Q is a positive integer, and 0 < Q < X; and move all the icons on the display page by Q columns along the horizontal direction, remove icons that fall outside the display page after the movement, and move the Q columns of icons on the adjacent page to the display page.

[0037] In a possible implementation, the processing module is further configured to: when there is no column of icons on the adjacent page, cancel the user sliding operation.

[0038] In a possible implementation, the first location includes two or more locations. The processing module is further configured to determine, based on the two or more locations, that an area in which the first location is located on the display page includes at least two rows or at least two columns.

[0039] In a possible implementation, the touch information further includes a second location, and the second location is a touch location at which the user sliding operation ends. The sliding direction includes a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge. The processing module is further configured to: determine a sliding distance ℓ of the user sliding operation based on the first location and the second location, where ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and when the sliding direction or a pressing force direction of the first location is the vertical direction, determine the related column of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than a minimum sliding distance Δℓ, move the column icons in the related column on the display page; or when the sliding direction or the pressing force direction of the first location is the horizontal direction, determine the related row of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than Δℓ, move the row icons in the related row on the display page.

[0040] In a possible implementation, the processing module is further configured to cyclically move the column icons in the related column.

[0041] In a possible implementation, the processing module is further configured to move the row icons in the related row on the display page by Y icon distances, where Y is a quantity of icons in a ℓ distance range, and Y is an integer distance.

[0042] In a possible implementation, the processing module is further configured to: remove icons that fall outside the display page after the movement, determine, from an adjacent page in a direction opposite to the sliding direction, Y icons that are located in a same row as the related row and that are adjacent to the display page, and move the icons to the related row on the display page.

[0043] In a possible implementation, the processing module is further configured to: when there are icons in the same row as the related row on the adjacent page and a quantity of icons is less than Y, determine a quantity P of icons in the same row as the related row on the adjacent page, where P is a positive integer, and 0 < P < Y; and move all the icons in the related row on the display page by the P icons along the horizontal direction, remove icons that fall outside the display page after the movement, and move the P icons in the same row as the related row on the adjacent page to the related row on the display page.

[0044] In a possible implementation, the processing module is further configured to: when there is no icon in the same row as the related row on the adjacent page, cancel the user sliding operation.

[0045] According to a fourth aspect, a computer-readable storage medium storing a program is provided. The program includes instructions, and when the instructions are executed by a computer, the computer is enabled to perform the method in the first aspect.

[0046] According to a fifth aspect, a computer program product including instructions is provided. When the computer program product is run, the method in the first aspect is performed.

[0047] This application discloses a screen icon operating method and apparatus, to determine, by using collected touch information, whether a current user sliding operation is an entire screen operation or a row/column icon operation. For the entire screen operation, a conventional operation may be excluded based on a sliding speed, and entire-screen icon movement is performed based on the touch information. For the row/column icon operation, a conventional operation may be excluded based on pressing duration, and row or column icon movement may be performed in a sliding direction. In the foregoing manner, a corresponding icon can be quickly found. In addition, when an input device is a finger, for a large-screen terminal device whose size exceeds a specific size, operations can be quickly implemented with one hand. Therefore, the operations are more simple and convenient, and user operation experience is improved.

BRIEF DESCRIPTION OF DRAWINGS



[0048] 

FIG. 1 is a schematic diagram of icon sliding of a smart device according to an embodiment of this application;

FIG. 2 is a flowchart of a screen icon operating method according to an embodiment of this application;

FIG. 3 is a schematic diagram of a sliding direction of screen icon operating according to an embodiment of this application;

FIG. 4 is a flowchart of another screen icon operating method according to an embodiment of this application;

FIG. 5 is a schematic diagram of one type of screen movement according to an embodiment of this application;

FIG. 6 is a schematic diagram of one type of screen display of screen icon operating according to an embodiment of this application;

FIG. 7 is a flowchart of still another screen icon operating method according to an embodiment of this application;

FIG. 8 is a schematic diagram of another type of screen movement according to an embodiment of this application;

FIG. 9 is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 10 is a schematic diagram of still another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 11 is a schematic diagram of yet another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 12a is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 12b is a schematic diagram of still another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 12c is a schematic diagram of yet another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 12d is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 13a is a schematic diagram of still another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 13b is a schematic diagram of yet another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 14a is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 14b is a schematic diagram of still another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 14c is a schematic diagram of yet another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 14d is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 15a is a schematic diagram of still another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 15b is a schematic diagram of yet another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 16a is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 16b is a schematic diagram of still another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 16c is a schematic diagram of yet another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 17a is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 17b is a schematic diagram of still another type of screen display of screen icon operating according to an embodiment of this application;

FIG. 18 is a schematic diagram of a screen icon operating framework according to an embodiment of this application;

FIG. 19 is a schematic diagram of a screen icon operating apparatus according to an embodiment of this application; and

FIG. 20 is a schematic diagram of a terminal device according to an embodiment of this application.


DESCRIPTION OF EMBODIMENTS



[0049] The following describes the technical solutions in embodiments of this application with reference to accompanying drawings in embodiments of this application.

[0050] This application is applied to a scenario in which a user performs a screen icon operation on a terminal device. In this application, the terminal device is a smart device with a touchscreen. In this scenario, there are usually many application icons on a desktop, and not all application icons are displayed on a current display interface. In this case, when a user wants to find an application to perform an operation, as shown in FIG. 1, the user needs to slide along the screen to switch to another display interface, and find a corresponding application to perform an operation. If a location of a target application is separated from the current display interface by several interfaces, the user needs to cross a plurality of interfaces to find the target application. This causes very cumbersome user operations.

[0051] In addition, for a terminal device with a large screen, it is assumed that the user performs a screen operation with two hands. In this case, when a size of the screen exceeds a specific length, it is very difficult for the user to perform an operation with one hand.

[0052] For the foregoing problem, in this application, it is determined, based on a start location of a user sliding operation, to perform an entire-screen icon operation or a single-row or single-column icon operation. For the entire-screen icon operation, when a sliding speed is less than a specific threshold, entire-screen page icon movement is performed. For the single-row or single-column icon operation, when pressing duration reaches a specific duration range, row or column icon movement may be performed in a sliding direction. Through the foregoing operations, when performing a screen operation, the user can perform icon movement more quickly, to find the target application. In addition, for a screen whose size exceeds a specific size, when the user chooses to perform a screen operation by hand, it can be more convenient for the user to perform the screen operation with one hand. This improves user experience.

[0053] The following describes in detail the technical solutions in embodiments of this application with reference to the accompanying drawings in embodiments of this application.

[0054] FIG. 2 is a flowchart of a screen icon operating method according to an embodiment of this application.

[0055] FIG. 2 provides a screen icon operating method. The method may be applied to a terminal device. A person skilled in the art should know that the terminal device in this application may be any terminal device with a touchscreen, such as a mobile phone, a computer, a tablet, or a wearable device. This is not limited in this application.

[0056] The method may include the following steps.

[0057] S201: Collect user sliding operation information, where the sliding operation information includes: a first location, a sliding speed, pressing duration before sliding, or a sliding direction, and the first location is an initial location of a user sliding operation.

[0058] In an embodiment, the terminal device first collects touch information of the user sliding operation performed by a user on the touchscreen of the terminal device. The touch information may include the initial location of the current user sliding operation, that is, the first location. The touch information may further include the sliding speed of the current user sliding operation, the pressing duration at the first location before the sliding, or the sliding direction.

[0059] In an example, the user sliding operation in this application may include the following several operations: tapping or moving with one finger, tapping or moving with one knuckle, tapping or moving with a plurality of fingers, tapping or moving with a plurality of knuckles, and a user-defined gesture. The user-defined gesture is a gesture that can be identified by a system running on the terminal device, for example, drawing a circle or drawing a line. In addition, the user-defined gesture is usually characterized by "identifiable" and "not repeated with other gestures". It may be understood that the user-defined gesture is different from any other gesture preset on the terminal device, to avoid a conflict caused by a same gesture. The preset gesture may be preset in the system, or may be set by the user. In addition, the user-defined gesture is usually not particularly complex. Certainly, it may be understood that, in some special cases, the user-defined gesture may alternatively be a complex gesture.

[0060] In another example, the sliding direction may include a horizontal direction and a vertical direction. The horizontal direction is a horizontal direction of an operation interface currently displayed by the terminal device, and the vertical direction is a vertical direction of the operation interface currently displayed by the terminal device. For example, as shown in FIG. 3, a direction pointed by a double-headed arrow 1 is a horizontal direction, and a direction pointed by a double-headed arrow 2 is a vertical direction. A relationship between a horizontal direction and a vertical direction of a current screen and a display page of a terminal device in different states can be clearly seen from FIG. 3.

[0061] S202: Determine whether the first location is located on an icon.

[0062] In an embodiment, the terminal device needs to determine whether the first location of the current user sliding operation is located on the icon. When the first location is not located on the icon, the terminal device determines that the current user sliding operation is an entire screen operation, and performs S203. Alternatively, when the first location is located on the icon, the terminal device determines that the current user sliding operation is an icon operation, and performs S206.

[0063] In an example, the terminal device needs to first distinguish the current user sliding operation from a conventional screen operation. When the user needs to perform an operation on the touchscreen of the terminal device, the user usually makes a continuous and non-stop gesture. For example, the user quickly slides along an area on the screen other than the icon with a finger, to implement screen sliding. Alternatively, the user taps the icon to enter an application represented by the icon. Alternatively, when the user touches and holds the icon for specific duration, the user drags or rearranges the icon, and performs a further operation.

[0064] The user sliding operation in this application is different from the foregoing conventional screen operation. To help distinguish the user sliding operation in this application from the conventional screen operation, this application further includes the following steps.

[0065] S203: Determine whether the sliding speed is less than a sliding speed threshold.

[0066] In an embodiment, the terminal device determines whether the sliding speed of the current user sliding operation is less than the sliding speed threshold. The sliding speed threshold may be preset. When the sliding speed is greater than or equal to the sliding speed threshold, the terminal device performs S205. In embodiments of this application, it is determined whether the sliding speed is less than the sliding speed threshold, and when the sliding speed does not reach the sliding speed threshold, S204 is performed.

[0067] S204: Perform entire-screen page icon movement.

[0068] In an embodiment, it is determined that the current user sliding operation is not a conventional screen operation, and entire-screen page icon movement is performed based on the current user sliding operation.

[0069] S205: Determine that the user sliding operation is a conventional screen operation.

[0070] In an embodiment, it is determined that the current user sliding operation is a conventional screen operation, and the operation may be, for example, sliding to switch a display interface of the current screen as a whole.

[0071] S206: Determine whether the pressing duration is between a first duration threshold and a second duration threshold.

[0072] In an embodiment, after the terminal device determines that the start location of the current user sliding operation is located on the icon, it may be understood that the current user sliding operation is tapping an application icon displayed on the screen. In this case, if the user does not immediately end the user sliding operation, but presses the first location for specific duration, the terminal device determines the pressing duration of the current user sliding operation, and determines whether the pressing duration is between the first duration threshold and the second duration threshold. In an example, the first duration threshold is set to determine whether the current user sliding operation is tapping to enter the application. When the pressing duration is less than or equal to the first duration threshold, the current user sliding operation is a conventional operation such as tapping to enter the application. When the pressing duration is greater than the first duration threshold, the current user sliding operation is not tapping to enter the application. In another example, the second duration threshold is set to determine whether the current user sliding operation is an operation of dragging or rearranging an icon. When the pressing duration is greater than or equal to the second duration threshold, the current user sliding operation is an operation of dragging or rearranging an icon, and another conventional operation such as dragging the icon to any location, rearranging the icon, or triggering a deletion operation may be performed. When the pressing duration is less than the second duration threshold, the current user sliding operation is not an operation of dragging or rearranging an icon.

[0073] In this application, it is determined whether the pressing duration is between the first duration threshold and the second duration threshold, to distinguish the current user sliding operation from a conventional screen operation, to perform S207.

[0074] In another example, when it is determined that the current user sliding operation is a conventional screen operation, S205 is performed to perform the conventional screen operation. The operation may alternatively be, for example, tapping an icon to enter an application, or dragging a tapped icon.

[0075] S207: Move column icons in a related column or row icons in a related row in an area of an icon on which the first location is located on a display page.

[0076] In an embodiment, it is determined that the current user sliding operation is not a conventional screen operation, and the column icons in the related column or the row icons in the related row in the area of the icon on which the first location is located on the display page are moved in a sliding direction of the current user sliding operation after pressing and sliding.

[0077] This application discloses a screen icon operating method and apparatus, to determine, by using collected touch information, whether a current user sliding operation is an entire screen operation or a row/column icon operation. For the entire screen operation, a conventional operation may be excluded based on a sliding speed, and entire-screen icon movement is performed based on the touch information. For the row/column icon operation, a conventional operation may be excluded based on pressing duration, and row or column icon movement may be performed in a sliding direction. In the foregoing manner, a corresponding icon can be quickly found. In addition, when an input device is a finger, for a large-screen terminal device whose size exceeds a specific size, operations can be quickly implemented with one hand. Therefore, the operations are more simple and convenient, and user operation experience is improved.

[0078] FIG. 4 is a flowchart of another screen icon operating method according to an embodiment of this application.

[0079] FIG. 4 shows an entire screen operation that is performed after the first area is determined as an area other than the area in which the icon is located in S202 shown in FIG. 2. After S202, the method may include the following steps.

[0080] S203: Determine whether the sliding speed is less than a sliding speed threshold.

[0081] In an embodiment, when determining that the sliding speed is greater than or equal to the sliding speed threshold, the terminal device performs S205.

[0082] S205: Determine that the user sliding operation is a conventional screen operation.

[0083] S203 and S205 shown in FIG. 4 are same steps as S203 and S205 shown in FIG. 2. For ease of description, details are not described herein again. When the sliding speed does not reach the sliding speed threshold, FIG. 4 shows a more detailed execution process of S204, which may include the following steps.

[0084] S401: Determine a sliding distance ℓ of the user sliding operation based on the first location and a second location.

[0085] In an embodiment, the touch information may further include a second location. The second location is a touch location at which the user sliding operation ends. The sliding distance ℓ of the current user sliding operation is determined based on the first location and the second location. ℓ represents a projection distance of a straight-line distance between the first location and the second location in the sliding direction. In an example, considering that one user sliding operation of the user is probably not performed only in the horizontal direction or the vertical direction, a longer one of projection distances of the sliding distance ℓ in the horizontal direction and the vertical direction is determined, and the sliding direction is determined as the direction with the longer projection distance. Then, the sliding distance in the other direction may be ignored. Therefore, only a sliding distance in a direction may be considered. Certainly, a person skilled in the art should know that, in another example, sliding distances in both a horizontal direction and a vertical direction may alternatively be considered. This is not limited herein in this application.

[0086] S402: Set a minimum page switching distance Δh.

[0087] In an embodiment, the minimum page switching distance Δh may be preset. In an example, a minimum value of Δh is not less than a width of a column of icons, and a maximum width of Δh is not greater than a width of an entire screen. In another example, Δh may be an integer multiple of a width of a column of icons. This facilitates subsequent icon movement operations. In still another example, if a length of ℓ is less than Δh, the current user sliding operation may be canceled. FIG. 5 is a schematic diagram of one type of screen movement according to an embodiment of this application. As shown in FIG. 5, the sliding speed is less than the sliding speed threshold Δv when the sliding direction is rightward sliding. In this case, the minimum page switching distance Δh is set. It can be learned that a width of Δh in FIG. 5 may be set to a width of a column of icons. For a user sliding operation performed when the movement distance is less than Δh, the terminal device may ignore the current user sliding operation, and reset the screen. When the sliding distance exceeds Δh, the terminal device performs S403.

[0088] S403: Determine a supplementary parameter N.

[0089] In an embodiment, the supplementary parameter N may be determined, and is used to supplement the screen after the sliding, and a location of each icon on the screen after the supplementation is determined. In an example, the supplementary parameter N may be determined by dividing ℓ by Δh. In another example, N is rounded off.

[0090] In another embodiment, icons in an NxΔh range arranged on an edge of the screen in the sliding direction are removed from the display page, and icons on the display page are supplemented with. In an example, when the sliding direction is leftward sliding, icons on the left of the current screen are removed from the display page, and there are vacant locations if the right of the current screen is not supplemented. In this case, vacant icon locations are determined in an NxΔh range on the right of the screen. A person skilled in the art should know that, when the sliding direction is rightward sliding, a similar method is used, and a difference lies in an opposite direction. Details are not described herein.

[0091] In another example, when the sliding direction is upward sliding, icons on the top of the current screen are removed from the display page, and there are vacant locations if the bottom of the current screen is not supplemented. In this case, vacant icon locations are determined in an NxΔh range on the bottom of the screen. A person skilled in the art should know that, when the sliding direction is downward sliding, a similar method is used, and a difference lies in an opposite direction. Details are not described herein.

[0092] S404: Perform entire-screen icon movement.

[0093] In an embodiment, if the sliding direction is the horizontal direction, all icons on the display page are moved by X columns along the horizontal direction.

[0094] In an example, X columns of icons in a range of the first N Δh along the sliding direction on the display page may be removed from the display page, and then the remaining columns of icons on the display page are moved by N Δh along the sliding direction. In this case, there are vacant locations if no icon is supplemented with in the range of the first N Δh in a direction opposite to the sliding direction on the display page. The terminal device determines to display the first X columns of icons arranged in the sliding direction on an adjacent page of the display page in a direction opposite to the sliding direction. Herein, X is an integer. In addition, the first X columns of icons arranged along the sliding direction on the adjacent page are moved to vacant locations on the display page, to implement entire-screen icon movement. For example, after the user leftward slides along the display page by two columns, the first two columns on the left of the display page are removed from the display page, and two leftmost columns of icons on the adjacent page on the right of the display page are moved in from the right of the display page to implement supplementation.

[0095] A person skilled in the art should know that, in a specific implementation process, the foregoing vacant locations are not displayed on the display page, but a corresponding column of icons are directly removed from the display page, and icons on the adjacent page are moved to the display page to implement supplementation.

[0096] In an example, icon locations on the screen are fixed. Icons that remain after the user sliding operation ends are translated along the sliding direction and displayed at corresponding icon locations, and icons that are removed from the screen after the user sliding operation ends are not displayed. For icon locations that are supplemented with after the movement, icons on the adjacent page of the display page in a direction opposite to the sliding direction need to be determined, and the icons on the adjacent page of the display page are moved to the display page. For example, when the sliding direction is leftward sliding, icons on the right adjacent interface are determined, and then corresponding icons on the left of the display page are removed from the current interface, and the corresponding icons on the adjacent page are moved to the display page for display. When the sliding direction is rightward sliding, a similar operation is performed, and a difference lies in an opposite direction. Details are not described herein.

[0097] In another embodiment, if the sliding direction is the vertical direction, all the icons on the display page are cyclically moved by X rows along the vertical direction.

[0098] In an example, X rows of icons in a range of the first N Δh along the sliding direction on the display page may be removed from the display page, and then the remaining rows of icons on the display page are moved by N Δh along the sliding direction. In this case, there are vacant locations if no icon is supplemented with in the range of the first N Δh in a direction opposite to the sliding direction on the display page. The terminal device moves, back to the display page along a direction opposite to the sliding direction of the display page, the X rows of icons that are removed from the display page, to perform supplementation, so as to implement cyclic entire-screen icon movement in the vertical direction. For example, after the user upward slides along the display page by two rows, the top two rows are removed from the display page, and moves the two rows back to the display page from the bottom of the display page, to implement cyclic icon supplementation in the vertical direction.

[0099] A person skilled in the art should know that, in a specific implementation process, the foregoing vacant locations are not displayed on the display page, but a corresponding column of icons are directly removed from the display page, and icons on the adjacent page are moved to the display page to implement supplementation.

[0100] In an example, icon locations on the screen are fixed. Icons that remain after the user sliding operation ends are translated along the sliding direction and displayed at corresponding icon locations, and icons that are removed from the screen after the user sliding operation ends are moved to the display page in a direction opposite to the sliding direction of the current screen for display. For example, when the sliding direction is upward sliding, icons that fall outside the page are moved back to the page from the bottom for display. When the sliding direction is downward sliding, a similar operation is performed, and a difference lies in an opposite direction. Details are not described herein.

[0101] In another embodiment, when the sliding direction is the horizontal direction, a quantity of columns of icons on the adjacent page of the display page in a direction opposite to the sliding direction may be further determined. When there are at least one column of icons on the adjacent page, and a quantity of columns of icons on the adjacent page of the display page are insufficient to supplement vacant locations on the display page, a quantity Q of columns of icons on the adjacent page is determined. Herein, Q is a positive integer, and 0 < Q < X. Then, all the icons on the display page are moved by Q columns along the horizontal direction, icons that fall outside the display page after the movement are removed, and the Q columns of icons on the adjacent page are moved to the display page.

[0102] In an example, the first Q columns of icons on the display page along the sliding direction may be removed from the display page, and the remaining columns of icons on the display page are moved to the top along the sliding direction. Then, the Q column of icons arranged along the sliding direction on the adjacent page are moved to the display page. A person skilled in the art should know that, if the quantity Q of columns of icons on the adjacent page is greater than or equal to 1 and less than X, the Q columns of icons instead of X columns of icons are removed from the display page along the sliding direction. Then, the Q columns of icons on the adjacent page are moved to the display page for supplementation. For example, after the user leftward slides along the display page by two columns, if there are only one column of icons on the adjacent page on the right of the display page, only one leftmost column of icons on the display page are removed, and one column of icons on the adjacent page are moved from the right of the display page for supplementation.

[0103] In still another embodiment, when the sliding direction is the horizontal direction, if there is no icon on the adjacent page, that is, Q is 0, the terminal device may cancel the current user sliding operation.

[0104] It may be understood that the terminal device in this application may perform, based on a quantity of columns of icons on the adjacent page, adaptive supplementation when the quantity of columns of icons on the adjacent page of the display page in a direction opposite to the sliding direction are insufficient to supplement vacant locations on the display page. For example, when two columns of icons need to be supplemented with, and there are only one column of icons on the adjacent page, only one column of icons are moved and supplemented with on the display page. A user sliding operation that is performed with no icon existing on the adjacent page may be ignored.

[0105] A person skilled in the art should know that, when entire screen movement is performed, if vacant locations originally exist on the display page, icons are not fully arranged. In a case of horizontal movement, if icons exist on the adjacent page, vacant locations originally existing on the display page also move along a movement direction in a movement process. Existing vacant locations are not supplemented with icons moved to the display page. In a case of vertical movement, existing vacant locations are not supplemented with icons cyclically moved to the display page.

[0106] In still another embodiment, after the user sliding operation ends, an icon distribution status on the current screen may be further presented by using the screen of the terminal device. In an example, screen icons that are finally presented are aligned and not misplaced.

[0107] FIG. 6 is a schematic diagram of one type of screen display of screen icon operating according to an embodiment of this application.

[0108] FIG. 6 is a more intuitive schematic diagram of screen display in the methods shown in FIG. 4 and FIG. 5. It can be clearly seen from FIG. 6 that original screen display icons are column A, column B, column C, and column D. When the user slides along the screen with a finger, in a sliding direction, for example, leftward sliding shown in FIG. 6, icons in column E on a next interface are supplemented with according to the methods in FIG. 4 and FIG. 5. After the sliding, original column B, column C, and column D on the rightmost interface in FIG. 6 are translated leftward together, the icons in column E on the next interface are supplemented with, and screen display icons are finally updated to column B, column C, column D, and column E.

[0109] FIG. 7 is a flowchart of still another screen icon operating method according to an embodiment of this application.

[0110] FIG. 7 shows an icon operation that is performed after the first area is determined as the area in which the icon is located in S202 shown in FIG. 2. After S202, the method may include the following step:

[0111] S206: Determine whether the pressing duration is between a first duration threshold and a second duration threshold.

[0112] In an embodiment, when determining that the pressing duration is less than or equal to the first duration threshold or greater than or equal to the second duration threshold, the terminal device determines that the current user sliding operation is a conventional operation, and performs S205.

[0113] S205: Determine that the user sliding operation is a conventional screen operation.

[0114] S206 and S205 shown in FIG. 7 are same steps as S203 and S205 shown in FIG. 2. For ease of description, details are not described herein again. When the pressing duration is greater than the first duration threshold and less than the second duration threshold, FIG. 7 shows a more detailed execution process of S207, which may include the following steps.

[0115] S701: Set a minimum sliding distance Δℓ.

[0116] In an embodiment, the touch information further includes a second location. The second location is a touch location at which the user sliding operation ends. A sliding distance ℓ of the current user sliding operation is determined based on the first location and the second location. ℓ represents a projection distance of a straight-line distance between the first location and the second location in the sliding direction. In another embodiment, the minimum sliding distance Δℓ may be further preset, to avoid some operations caused by accidental touch or accidental trigger by the user.

[0117] In an example, Δℓ may be set as a length of 10 pixels. If ℓ < Δℓ, the terminal device may consider that the current operation is accidental touch or accidental trigger, and ignore the current user sliding operation.

[0118] In another example, FIG. 8 is a schematic diagram of another type of screen movement according to an embodiment of this application. As shown in FIG. 8, when the user sliding operation is located on an icon, if the pressing duration Δt is between the first duration threshold and the second duration threshold, a relationship between the sliding distance ℓ and Δℓ is determined.

[0119] S702: When the sliding direction or a pressing force direction of the first location is the vertical direction, determine the related column of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than Δℓ, move the column icons.

[0120] In an embodiment, when determining that the sliding direction or the pressing force direction of the first location is the vertical direction, the terminal device may determine the related column of the icon on which the first location is located. Then, when ℓ is greater than Δℓ, the terminal device determines that the current user sliding operation is a column icon operation, and moves the column icons.

[0121] S703: Cyclically move the icons on the column of the icon on which the user sliding operation is located.

[0122] In an example, if the sliding direction is upward sliding, the icons in the related column of the icon on which the user sliding operation is located are all translated upward for display, and icons removed from the top are moved to the display page from the bottom of the related column on the display page for display. In another example, if the sliding direction is downward sliding, the icons in the related column of the icon on which the user sliding operation is located are all translated downward for display, and icons removed from the bottom are moved to the display page from the top of the related column on the display page for display. The icons in the related column in which the user sliding operation is located are cyclically moved.

[0123] S704: When the sliding direction or the pressing force direction of the first location is the horizontal direction, determine the related row of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than Δℓ, move the row icons.

[0124] In an embodiment, when determining that the sliding direction or the pressing force direction of the first location is the horizontal direction, the terminal device may determine the related row of the icon on which the first location is located. Then, when ℓ is greater than Δℓ, the terminal device determines that the current user sliding operation is a row icon operation, and moves the row icons.

[0125] S705: Move the row icons in the row in which the user sliding operation is located.

[0126] In an embodiment, the row icons in the related row on the display page are moved by Y icons along the horizontal direction.

[0127] In an example, Y icons in a distance range of the first ℓ along the sliding direction in the related row of the icon on which the first location is located on the display page may be determined, and the Y icons may be removed from the display page. Y is a quantity of icons in the ℓ distance range, and Y is an integer. The remaining icons in the related row are moved by the distance ℓ along the sliding direction. In this case, there are vacant locations if no icon is supplemented with in the range of the first ℓ in the related row along a direction opposite to the sliding direction. The first Y icons that are arranged along the sliding direction and that are in a same row as the related row on the adjacent page of the display page in a direction opposite to the sliding direction are determined. In addition, the Y icons on the adjacent page are moved to the display page from a direction opposite to the sliding direction for display, to move the row icons on the display page. For example, when the user presses an icon for a period of time and leftward slides the icon by two icon locations, two leftmost icons on the row are removed from the display page, and the two leftmost icons are moved from a same row on the adjacent page on the right of the display page to the display page from the right of the related row on the display page, to implement icon supplementation on a single row on the display page.

[0128] In an example, Y icons in a range of the first ℓ along the sliding direction in the related row of the icon on which the current user sliding operation is located need to be determined, and the Y icons need to be removed from the display page. Then, the remaining icons in the related row on the display page are translated along the sliding direction, and icons that are located in a same row as the related row and that are on the adjacent page in a direction opposite to the sliding direction of the display page are selected to supplement the display page, so as to supplement the row icons. In another example, icons that are displayed before the user sliding operation is performed are translated leftward or rightward and then displayed along the sliding direction. Icons that are removed from the screen are not displayed.

[0129] In another embodiment, a quantity of icons in a same horizontal direction of the adjacent page in a direction opposite to the movement direction of the display page may be further determined. When there is at least one icon in the same row as the related row on the adjacent page, and a quantity of icons in the same row as the related row on the adjacent page are insufficient to supplement the row icons, a quantity P of icons in the related row on the adjacent page is determined. P is a positive integer, and 0 < P < Y All the icons in the related row on the display page are moved by P icons along the horizontal direction, icons that fall outside the display page after the movement are removed, and P icons in the same row as the related row on the adjacent page are moved to the same row on the display page.

[0130] In an example, the first P icons on the display page along the sliding direction may be removed from the display page, the remaining icons on the display page are moved to the top along the sliding direction, and P icons arranged along the sliding direction of the adjacent page are moved to the display page. A person skilled in the art should know that, if the quantity P of icons in the related row on the adjacent page is greater than or equal to 1 and less than Y, the P icons instead of Y icons are removed from the related row on the display page along the sliding direction. Then, the P icons on the adjacent page are moved to the display page for supplementation. For example, when the user presses an icon for a period of time and leftward slides the icon by two icon locations, if there is only one icon in a same row as that on the adjacent page on the right of the display page, one leftmost icon in the related row on the display page is removed from the display page, and the only one icon in the same row as that on the adjacent page on the right of the display page is moved to the display page, to supplement icons on a single row on the display page.

[0131] In still another embodiment, when the sliding direction is the horizontal direction, if there is no icon in the related row on the adjacent page, that is, P is 0, the terminal device may cancel the user sliding operation.

[0132] It may be understood that, when the quantity of icons that are in the same row as the related row and that are on the adjacent page in a direction opposite to the sliding direction of the display page are insufficient to supplement vacant locations in the related row on the display page, the terminal device in this application may preferentially perform adaptive supplementation at a location at which supplementation can be performed. For example, when two icons need to be supplemented with in the related row in which the user sliding operation is located, and there is only one icon in the same row as the related row on the adjacent page, only one icon is moved to the display page for supplementation. A user sliding operation that is performed with no icon existing in the related row on the adjacent page may be ignored.

[0133] A person skilled in the art should know that, when related row movement is performed, if vacant locations exist in the related row on the display page, icons are not fully arranged. In this case, if icons exist in the related row on the adjacent page, vacant locations in the related row also move along the movement direction in a process of moving the related row on the display page. Existing vacant locations are not supplemented with icons moved to the display page. When related column movement is performed, if vacant locations exist in the related column on the display page, icons are not fully arranged. In this case, vacant locations in the related column also move along the movement direction in a process of moving the column row on the display page. Existing vacant locations are not supplemented with icons cyclically moved to the display page.

[0134] In still another embodiment, after the user sliding operation ends, an icon distribution status on the current screen is further presented by using the screen of the terminal device. In an example, screen icons that are finally presented are aligned and not misplaced.

[0135] FIG. 9 is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application.

[0136] FIG. 9 is a schematic diagram of screen display of a single row operation according to this application. As shown in FIG. 9, when the user presses an icon, and pressing duration is between the first duration threshold and the second duration threshold, row icons are moved. In an example, a sliding direction shown in FIG. 9 is leftward sliding, and the terminal device determines screen icon locations in a related row of an icon on which a user sliding operation is located on a current screen display interface. Then, the terminal device determines icons on a next interface. Icons displayed on the display page are translated in the sliding direction, for example, translated leftward in FIG. 9. Icons that are removed from the screen are not displayed. The ions on the next interface are sequentially displayed on the right of the related row of the user sliding operation, to supplement the row icons. A person skilled in the art should know that a case in which the sliding direction is rightward sliding is similar to the case in which the sliding direction is leftward sliding. For ease of description, details are not described herein again.

[0137] FIG. 10 is a schematic diagram of still another type of screen display of screen icon operating according to an embodiment of this application.

[0138] FIG. 10 is a schematic diagram of screen display of a single column operation according to this application. As shown in FIG. 10, when the user presses an icon, and pressing duration is between the first duration threshold and the second duration threshold, column icons are moved. In an example, a sliding direction shown in FIG. 10 is downward sliding, and the terminal device determines screen icon locations in a related column of an icon on which a user sliding operation is located on a current screen display interface. Then, icons displayed on the display page are translated in the sliding direction. Icons that are removed from the screen and that are on the bottom of the related column of the user sliding operation are sequentially displayed on the top of the related row, and are cyclically supplemented with. A person skilled in the art should know that a case in which the sliding direction is upward sliding is similar to the case in which the sliding direction is downward sliding. For ease of description, details are not described herein again.

[0139] FIG. 11 is a schematic diagram of yet another type of screen display of screen icon operating according to an embodiment of this application.

[0140] FIG. 11 is a schematic diagram of yet another type of screen display of screen icon operating according to this application. For the screen icon operating methods shown in FIG. 2 to FIG. 10, only a single row or a single column is used as an example. A person skilled in the art should know that, when the initial location of the user sliding operation is not unique, multi-row or multi-column operations may be separately performed based on different initial locations. In an example, when the user presses a plurality of different rows or columns with two fingers, row icons or column icons on the plurality of pressed rows or columns may be moved. In another example, a plurality of rows or columns may be or may not be adjacent rows/columns. This is not limited in this application.

[0141] In another example, when the initial location of the user sliding operation is not unique, a plurality of consecutive rows or columns may be s to move. For example, when the sliding direction is the horizontal direction, a plurality of initial locations with a maximum distance difference in the vertical direction are determined, rows included in the location interval are determined, and the plurality of included rows are moved. For another example, when the sliding direction is the vertical direction, a plurality of initial locations with a maximum distance difference in the horizontal direction are determined, columns included in the location interval are determined, and the plurality of included columns are moved.

[0142] A person skilled in the art should know that, if the initial location of the user sliding operation is not unique, a single-row or single-column operation may be performed for each of the plurality of initial locations.

[0143] A person skilled in the art should further know that, when movement of a plurality of related rows is performed, if vacant locations exist in the related rows on the display page, icons are not fully arranged. In this case, if icons exist in the related row on the adjacent page, vacant locations in the related row also move along the movement direction in a process of moving the related row on the display page. Existing vacant locations are not supplemented with icons moved to the display page. In addition, when a plurality of related rows on the adjacent page are moved to the display page, a related row with a largest quantity of icons on the adjacent page may be moved to the display page at most, or a related row with a smallest quantity of icons on the adjacent page may be moved to the display page at most. This is not limited in embodiments of this application. A person skilled in the art should further know that, if a related row with a largest quantity of icons on the adjacent page is moved to the display page at most, after icons in other related rows are all moved to the display page, the movement may continue, and idle icon locations are displayed as vacant locations.

[0144] A person skilled in the art should further know that, when movement of a plurality of related columns is performed, if vacant locations exist in the related columns on the display page, icons are not fully arranged. In this case, vacant locations in the related column also move along the movement direction in a process of moving the column row on the display page. Existing vacant locations are not supplemented with icons cyclically moved to the display page.

[0145] As shown in FIG. 11, on the left interface of FIG. 11, two rows of icons are moved at the same time, and on the right interface of FIG. 11, three rows of icons are moved at the same time.

[0146] This application discloses a screen icon operating method and apparatus, to determine, by using collected touch information, whether a current user sliding operation is an entire screen operation or a row/column icon operation. For the entire screen operation, a conventional operation may be excluded based on a sliding speed, and entire-screen icon movement is performed based on the touch information. For the row/column icon operation, a conventional operation may be excluded based on pressing duration, a related row or a related column of the user sliding operation is determined based on a sliding direction or a pressing force direction of a first location, and row or column icon movement is performed on the related row or the related column based on a sliding distance. In the foregoing manner, a corresponding icon can be quickly found. In addition, when an input device is a finger, for a large-screen terminal device whose size exceeds a specific size, operations can be quickly implemented with one hand. Therefore, the operations are more simple and convenient, and user operation experience is improved.

[0147] FIG. 12a is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application. In a relatively detailed example, when the user operates a screen icon on the terminal device, as shown in FIG. 12a, a touch location of the user is not on an icon on the display page. In this case, it is determined whether a sliding speed of the current user sliding operation is less than the sliding speed threshold. Assuming that the sliding speed is less than the sliding speed threshold, entire-screen icon movement is performed. For example, the left half part in FIG. 12a displays the display page. It can be learned that an arrow of the display page points to a sliding direction. In this case, the terminal device needs to determine icons on an adjacent page on the right of the display page, that is, icons shown in the right half part in FIG. 12a.

[0148] In an example, if it is determined, based on a sliding distance, that column A and column B on the left of the display page are removed, column E and column F on the adjacent page need to be moved to the display page. After the final movement is completed, as shown in FIG. 12b, the display page displays columns C, D, E, and F instead of columns A, B, C, and D.

[0149] In another example, it is determined, based on a sliding distance, that column A and column B on the left of the display page are removed. However, there is at least one column of icons on the adjacent page, but a quantity of columns of icons on the adjacent page is less than a quantity of columns removed from the display page. In this case, the right half part in FIG. 12c shows only icons in column E on the adjacent page. In this case, the terminal device does not remove column A and column B from the display page, but removes only column A from the display page, and moves column E on the adjacent page to the display page. After the final movement is completed, as shown in FIG. 12d, the display page displays columns A, B, C, and D instead of columns B, C, D, and E.

[0150] A person skilled in the art should know that FIG. 12a to FIG. 12d show only a change of the display page of the terminal device when the arrow points leftward. It should be understood that, for a case in which the screen is rightward, a difference lies only in an opposite direction, and other changes are the same as those shown in FIG. 12a to FIG. 12d.

[0151] FIG. 13a is a schematic diagram of yet another type of screen display of screen icon operating according to an embodiment of this application.

[0152] In a relatively detailed example, when the user operates a screen icon on the terminal device, as shown in FIG. 13a, a touch location of the user is not on an icon on the display page. In this case, it is determined whether a sliding speed of the current user sliding operation is less than the sliding speed threshold. Assuming that the sliding speed is less than the sliding speed threshold, entire-screen icon movement is performed. For example, FIG. 13a shows the display page. It may be learned that an arrow of the display page points to a sliding direction, that is, a vertical direction. In this case, the terminal device performs sliding, and current screen icons are cyclically supplemented with.

[0153] In an example, if it is determined, based on a sliding distance, that the first row and the second row on the top of the display page are removed, the two removed rows need to be moved to the display page from the bottom of the display page. After the final movement is completed, as shown in FIG. 13b, A, B, C, and D on the first row displayed on the display page are moved to the penultimate row of the display page for display.

[0154] A person skilled in the art should know that FIG. 13a and FIG. 13b show only a change of the display page of the terminal device when the arrow points upward. It should be understood that, for a case in which the screen is downward, a difference lies only in an opposite direction, and other changes are the same as those shown in FIG. 13a and FIG. 13b.

[0155] A person skilled in the art should further know that, as shown in FIG. 12a and FIG. 13b, if vacant locations originally exist on the display page, icons are not fully arranged. In a case of horizontal movement, if icons exist on the adjacent page, vacant locations originally existing on the display page also move along a movement direction in a movement process. Existing vacant locations are not supplemented with icons moved to the display page. In a case of vertical movement, existing vacant locations are not supplemented with icons cyclically moved to the display page.

[0156] FIG. 14a is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application.

[0157] In a relatively detailed example, when the user operates a screen icon on the terminal device, as shown in FIG. 14a, a touch location of the user is located on an icon on the display page, for example, icon C. In this case, it is determined whether pressing duration of the current user sliding operation is between the first duration threshold and the second duration threshold. Assuming that the pressing duration is between the first duration threshold and the second duration threshold, row icon movement is performed on a related row of icon C or column icon movement is performed on a related column of icon C. For example, the left half part in FIG. 14a displays the display page. It can be learned that an arrow of the display page points to a sliding direction. In this case, the terminal device needs to determine icons on an adjacent page on the right of the display page, that is, icons shown in the right half part in FIG. 14a.

[0158] In an example, it is determined, based on a sliding distance, that icon A and icon B on the left are removed from the related row of C on the display page, that is, the first row. In this case, icon E and icon F on the first row of the adjacent page need to be moved to the related row of the display page. After the final movement is completed, as shown in FIG. 14b, the first row displayed on the display page changes from icon A, icon B, icon C, and icon D to icon C, icon D, icon E, and icon F. In addition, icons in other rows are not moved.

[0159] In another example, it is determined, based on a sliding distance, that icon A and icon B on the left are removed from the related row of C on the display page, that is, the first row. However, there is at least one icon in a related row on an adjacent page, but a quantity of icons in the related row on the adjacent page is less than a quantity of icons removed from the related row on the display page. In this case, the right half part in FIG. 14c shows only icon E on the adjacent page. In this case, the terminal device does not remove icon A and icon B from the display page, but removes only icon A from the display page, and moves icon E on the adjacent page to the display page. After the final movement is completed, as shown in FIG. 14d, the display page displays icon B, icon C, icon D, and icon E instead of icon A, icon B, icon C, and icon D.

[0160] A person skilled in the art should know that FIG. 14a to FIG. 14d show only a change of the display page of the terminal device when the arrow points leftward. It should be understood that, for a case in which the screen is rightward, a difference lies only in an opposite direction, and other changes are the same as those shown in FIG. 14a to FIG. 14d.

[0161] FIG. 15a is a schematic diagram of still another type of screen display of screen icon operating according to an embodiment of this application.

[0162] In a relatively detailed example, when the user operates a screen icon on the terminal device, as shown in FIG. 15a, a touch location of the user is located on an icon on the fifth row and the third column on the display page. In this case, it is determined whether pressing duration of the current user sliding operation is between the first duration threshold and the second duration threshold. Assuming that the pressing duration is between the first duration threshold and the second duration threshold, row icon movement is performed on a related row of the touch point or column icon movement is performed on a related column of the touch point. For example, FIG. 15a shows the display page. It may be learned that an arrow of the display page points to a sliding direction, that is, a vertical direction. In this case, the terminal device moves column icons in the related column, and cyclically supplements the column icons in the related column on the current screen.

[0163] In an example, if it is determined, based on a sliding distance, that the first icon and the second icon on the top of the related column on the display page are removed, the two removed icons need to be moved to the display page from the bottom of the related column on the display page. After the final movement is completed, as shown in FIG. 15b, icon C in the related column displayed on the display page is moved to the penultimate location in the related column on the display page for display. In addition, icons in other columns are not moved.

[0164] A person skilled in the art should know that FIG. 15a and FIG. 15b show only a change of the display page of the terminal device when the arrow points upward. It should be understood that, for a case in which the screen is downward, a difference lies only in an opposite direction, and other changes are the same as those shown in FIG. 15a and FIG. 15b.

[0165] A person skilled in the art should further know that, as shown in FIG. 14a and FIG. 15b, if vacant locations originally exist on the display page, icons are not fully arranged. In a case of horizontal movement, if icons exist in the related row on the adjacent page, vacant locations originally existing on the display page also move along a movement direction in a movement process. Existing vacant locations are not supplemented with icons moved to the display page. In a case of vertical movement, existing vacant locations are not supplemented with icons cyclically moved to the display page.

[0166] FIG. 16a is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application. In a relatively detailed example, when the user operates a screen icon on the terminal device, as shown in FIG. 16a, touch locations of the user are on at least two icons on the display page. In this case, it is determined whether pressing duration of the current user sliding operation is between the first duration threshold and the second duration threshold. Assuming that the pressing duration is between the first duration threshold and the second duration threshold, at least two related rows or at least two related columns between a plurality of touch points are determined, and row icon movement is performed on the at least two related rows or column icon movement is performed on the at least two related columns. For example, FIG. 16a shows the display page. It may be learned that an arrow of the display page points to a sliding direction. The terminal device needs to determine icons on an adjacent page on the right of the display page, that is, icons shown in the right half part in FIG. 16a.

[0167] In an example, it is determined, based on a sliding distance, that two leftmost icons on the at least two related rows on the display page are removed. In this case, icons on at least two corresponding related rows on the adjacent page need to be moved to the at least two related rows on the display page. It is assumed that, when a corresponding related row with a largest quantity of icons on the adjacent page is moved at most, as shown in FIG. 16b, after the final movement is completed, the first three icons on the first row to the third row displayed on the display page are removed from the display page, and the icons on the first row to third row are moved to the corresponding related rows on the adjacent page. In addition, icons in other rows than the related rows are not moved, for example, the last row of icons on the display page.

[0168] In another example, it is determined, based on a sliding distance, that two leftmost icons on the at least two related rows on the display page are removed. In this case, it is assumed that, when a corresponding related row with a smallest quantity of icons on the adjacent page is moved at most, as shown in FIG. 16c, after the final movement is completed, only the first icon on the first row to the third row displayed on the display page is removed from the display page, and the icons on the first row to third row are moved to the corresponding related rows on the adjacent page. In addition, icons in other rows than the related rows are not moved, for example, the last row of icons on the display page.

[0169] A person skilled in the art should know that FIG. 16a to FIG. 16c show only a change of the display page of the terminal device when the arrow points leftward. It should be understood that, for a case in which the screen is rightward, a difference lies only in an opposite direction, and other changes are the same as those shown in FIG. 16a to FIG. 16c.

[0170] FIG. 17a is a schematic diagram of another type of screen display of screen icon operating according to an embodiment of this application. In a relatively detailed example, when the user operates a screen icon on the terminal device, as shown in FIG. 17a, touch locations of the user are on at least two icons on the display page. In this case, it is determined whether pressing duration of the current user sliding operation is between the first duration threshold and the second duration threshold. Assuming that the pressing duration is between the first duration threshold and the second duration threshold, at least two related rows or at least two related columns between a plurality of touch points are determined, and row icon movement is performed on the at least two related rows or column icon movement is performed on the at least two related columns. For example, FIG. 17a shows the display page. It may be learned that an arrow of the display page points to a sliding direction, that is, a vertical direction. In this case, the terminal device moves column icons on at least two related columns, and cyclically supplements the column icons on the at least two related column on the current screen.

[0171] In an example, if it is determined, based on a sliding distance, that two icons on the top of the at least two related columns on the display page are removed, the two removed icons need to be moved to the display page from the bottom of the at least two related columns on the display page. After the final movement is completed, as shown in FIG. 17b, the first two icons on the second column to the fourth column displayed on the display page are removed from the display page, and the removed icons are moved to the display page from the bottom of the second column to the fourth column displayed on the display page. In addition, icons in other columns than the related columns are not moved, for example, the first column of icons on the leftmost of the display page.

[0172] A person skilled in the art should know that FIG. 17a and FIG. 17b show only a change of the display page of the terminal device when the arrow points upward. It should be understood that, for a case in which the screen is downward, a difference lies only in an opposite direction, and other changes are the same as those shown in FIG. 17a and FIG. 17b.

[0173] A person skilled in the art should further know that, as shown in FIG. 16a and FIG. 17b, if vacant locations originally exist on the display page, icons are not fully arranged. In a case of horizontal movement, if icons exist on the adjacent page, vacant locations originally existing on the display page also move along a movement direction in a movement process. Existing vacant locations are not supplemented with icons moved to the display page. In a case of vertical movement, existing vacant locations are not supplemented with icons cyclically moved to the display page.

[0174] FIG. 18 is a schematic diagram of a screen icon operating apparatus according to an embodiment of this application.

[0175] FIG. 18 provides a touchscreen icon operating apparatus 1800. The apparatus 1800 includes: a collection module 1801, configured to collect user sliding operation information, where the user sliding operation information includes: a first location, a sliding speed, pressing duration before sliding, or a sliding direction, and the first location is an initial location of a user sliding operation; and a processing module 1802, configured to: when the first location is not located on an icon, determine that the sliding speed is less than a sliding speed threshold, and move all icons on a display page in the sliding direction; or when the first location is located on the icon, determine that the pressing duration is greater than or equal to a first duration threshold and less than or equal to a second duration threshold, and move, in the sliding direction, column icons in a related column or row icons in a related row of the icon on which the first location is located on the display page.

[0176] In a possible implementation, the touch information further includes a second location, and the second location is a touch location at which the user sliding operation ends. The processing module 1802 is further configured to: determine a sliding distance ℓ of the user sliding operation based on the first location and the second location, where ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and determine a supplementary parameter N, where N is determined by dividing ℓ by a unit switching distance Δh, Δh is greater than or equal to a width of a single icon and less than or equal to a width of an entire screen, and Δh is an integer multiple of the width of the single icon; and move all the icons on the display page by X rows or columns along the sliding direction, where X is a quantity of rows or columns of icons in an NxΔh range, and X is an integer.

[0177] In a possible implementation, the sliding direction includes a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge. The processing module 1802 is further configured to: if the sliding direction is the horizontal direction, move all the icons on the display page by the X columns along the horizontal direction; or if the sliding direction is the vertical direction, cyclically move all the icons on the display page by the X rows along the vertical direction.

[0178] In a possible implementation, the processing module 1802 is further configured to: remove icons that fall outside the display page after the movement, determine, from an adjacent page in a direction opposite to the sliding direction, X columns of icons adjacent to the display page, and move the icons to the display page.

[0179] In a possible implementation, the processing module 1802 is further configured to: when there are at least one column of icons on the adjacent page, and a quantity of columns of icons is less than X, determine a quantity Q of columns of icons on the adjacent page, where Q is a positive integer, and 0 < Q < X; and move all the icons on the display page by Q columns along the horizontal direction, remove icons that fall outside the display page after the movement, and move the Q columns of icons on the adjacent page to the display page.

[0180] In a possible implementation, the processing module 1802 is further configured to: when there is no column of icons on the adjacent page, cancel the user sliding operation.

[0181] In a possible implementation, the first location includes two or more locations. The processing module 1802 is further configured to determine, based on the two or more locations, that an area in which the first location is located on the display page includes at least two rows or at least two columns.

[0182] In a possible implementation, the touch information further includes a second location, and the second location is a touch location at which the user sliding operation ends. The sliding direction includes a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge. The processing module 1802 is further configured to: determine a sliding distance ℓ of the user sliding operation based on the first location and the second location, where ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and when the sliding direction or a pressing force direction of the first location is the vertical direction, determine the related column of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than a minimum sliding distance Δℓ, move the column icons in the related column on the display page; or when the sliding direction or the pressing force direction of the first location is the horizontal direction, determine the related row of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than Δℓ, move the row icons in the related row on the display page.

[0183] In a possible implementation, the processing module 1802 is further configured to cyclically move the column icons in the related column.

[0184] In a possible implementation, the processing module 1802 is further configured to move the row icons in the related row on the display page by Y icon distances, where Y is a quantity of icons in a ℓ distance range, and Y is an integer distance.

[0185] In a possible implementation, the processing module 1802 is further configured to: remove icons that fall outside the display page after the movement, determine, from an adjacent page in a direction opposite to the sliding direction, Y icons that are located in a same row as the related row and that are adjacent to the display page, and move the icons to the related row on the display page.

[0186] In a possible implementation, the processing module 1802 is further configured to: when there are icons in the same row as the related row on the adjacent page and a quantity of icons is less than Y, determine a quantity P of icons in the same row as the related row on the adjacent page, where P is a positive integer, and 0 < P < Y; and move all the icons in the related row on the display page by the P icons along the horizontal direction, remove icons that fall outside the display page after the movement, and move the P icons in the same row as the related row on the adjacent page to the related row on the display page.

[0187] In a possible implementation, the processing module 1802 is further configured to: when there is no icon in the same row as the related row on the adjacent page, cancel the user sliding operation.

[0188] A person skilled in the art should know that, in the user sliding operation in this application, a touch point is always on the screen and does not leave the screen in an operation process. When the touch point leaves the screen, it is considered that the user sliding operation ends.

[0189] This application discloses a screen icon operating method and apparatus, to determine, by using collected touch information, whether a current user sliding operation is an entire screen operation or a row/column icon operation. For the entire screen operation, a conventional operation may be excluded based on a sliding speed, and entire-screen icon movement is performed based on the touch information. For the row/column icon operation, a conventional operation may be excluded based on pressing duration, and row or column icon movement may be performed in a sliding direction. In the foregoing manner, a corresponding icon can be quickly found. In addition, when an input device is a finger, for a large-screen terminal device whose size exceeds a specific size, operations can be quickly implemented with one hand. Therefore, the operations are more simple and convenient, and user operation experience is improved.

[0190] FIG. 19 is a schematic diagram of a screen icon operating framework according to an embodiment of this application.

[0191] In FIG. 19, this application further provides a screen icon operating structure 1900. The structure 1900 includes a sensor 1901, a driver 1902, a framework 1903, and a desktop launcher 1904.

[0192] In an example, the sensor (sensor) 1901 is responsible for directly collecting operation information of a user sliding operation. The information collected by the sensor 1901 is original operation information, for example, operation information such as a first location, a sliding direction, and a pressing force direction.

[0193] In an example, the driver (driver) 1902 is configured to drive the sensor 1901. Driven by the driver 1902, the sensor 1901 can collect the sliding operation information. In addition, the driver 1902 is configured to: perform format conversion on the original operation information collected by the sensor 1901, and transmit the original operation information to the framework (framework) 1903, to facilitate a subsequent operation.

[0194] In an example, as a message transfer medium and a platform capability provider, the framework 1903 receives, by using the driver 1902, the original operation information collected by the sensor 1901, and performs data translation on the original operation information, to obtain touch information that can be used at a software layer, for example, sliding touch information such as a first location, a second location, a sliding speed, touch pressing duration of the user sliding operation, and a sliding direction. In addition, the framework 1903 interacts with the desktop launcher (launcher) 1904 to transmit the touch information to the desktop launcher 1904. In another example, the framework 1903 continuously obtains the original operation information collected by the sensor 1901.

[0195] In an example, the desktop launcher 1904 is configured to: perform induction processing based on the touch information transmitted by the framework 1903, determine a type of a current operation, and form a corresponding operation instruction, so as to perform the foregoing methods in FIG. 2 to FIG. 18. Finally, corresponding logic processing is performed on a display interface of a screen, and the screen is used for display.

[0196] FIG. 20 is a schematic diagram of a terminal device according to an embodiment of this application.

[0197] FIG. 20 provides a terminal device 2000. The device 2000 may include a processor 2001, a memory 2002, a sensor 2003, a communications interface 2004, and an interface circuit 2005. The processor 2001, the memory 2002, the sensor 2003, and the communications interface 2004 in the terminal device may establish a communications connection by using the interface circuit 2005. The communications interface 2004 is configured to send and receive external information.

[0198] The sensor 2003 is configured to collect user sliding operation information, where the user sliding operation information includes: a first location, a sliding speed, pressing duration before sliding, or a sliding direction, and the first location is an initial location of a user sliding operation. In an example, the sensor 2003 may include any sensor such as a pressure sensor, a temperature sensor, or an acceleration sensor.

[0199] The memory 2002 is configured to store code instructions and the user sliding operation information collected by the sensor. In an example, the memory 2002 may include a volatile memory (volatile memory), for example, a random access memory (random access memory, RAM); or the memory 2002 may include a non-volatile memory (non-volatile memory), for example, a read-only memory (read-only memory, ROM), a flash memory, a hard disk drive (hard disk drive, HDD), or a solid-state drive (solid-state drive, SSD); or the memory 2002 may include a combination of the foregoing types of memories.

[0200] The interface circuit 2005 is configured to receive code instructions and transmit the code instructions to the processor.

[0201] The processor 2001 is configured to: when the first location is not located on an icon, determine that the sliding speed is less than a sliding speed threshold, and move all icons on a display page in the sliding direction; or when the first location is located on the icon, determine that the pressing duration is greater than or equal to a first duration threshold and less than or equal to a second duration threshold, and move, in the sliding direction, column icons in a related column or row icons in a related row of the icon on which the first location is located on the display page. In an example, the processor 2001 may be a central processing unit (central processing unit, CPU).

[0202] In a possible implementation, the touch information further includes a second location, and the second location is a touch location at which the user sliding operation ends. The processor 2001 is further configured to: determine a sliding distance ℓ of the user sliding operation based on the first location and the second location, where ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and determine a supplementary parameter N, where N is determined by dividing ℓ by a unit switching distance Δh, Δh is greater than or equal to a width of a single icon and less than or equal to a width of an entire screen, and Δh is an integer multiple of the width of the single icon; and move all the icons on the display page by X rows or columns along the sliding direction, where X is a quantity of rows or columns of icons in an NxΔh range, and X is an integer.

[0203] In a possible implementation, the sliding direction includes a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge. The processor 2001 is further configured to: if the sliding direction is the horizontal direction, move all the icons on the display page by the X columns along the horizontal direction; or if the sliding direction is the vertical direction, cyclically move all the icons on the display page by the X rows along the vertical direction.

[0204] In a possible implementation, the processor 2001 is further configured to: remove icons that fall outside the display page after the movement, determine, from an adjacent page in a direction opposite to the sliding direction, X columns of icons adjacent to the display page, and move the icons to the display page.

[0205] In a possible implementation, the processor 2001 is further configured to: when there are at least one column of icons on the adjacent page, and a quantity of columns of icons is less than X, determine a quantity Q of columns of icons on the adjacent page, where Q is a positive integer, and 0 < Q < X; and move all the icons on the display page by Q columns along the horizontal direction, remove icons that fall outside the display page after the movement, and move the Q columns of icons on the adjacent page to the display page.

[0206] In a possible implementation, the processor 2001 is further configured to: when there is no column of icons on the adjacent page, cancel the user sliding operation.

[0207] In a possible implementation, the first location includes two or more locations. The processor 2001 is further configured to determine, based on the two or more locations, that an area in which the first location is located on the display page includes at least two rows or at least two columns.

[0208] In a possible implementation, the touch information further includes a second location, and the second location is a touch location at which the user sliding operation ends. The sliding direction includes a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge. The processor 2001 is further configured to: determine a sliding distance ℓ of the user sliding operation based on the first location and the second location, where ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and when the sliding direction or a pressing force direction of the first location is the vertical direction, determine the related column of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than a minimum sliding distance Δℓ, move the column icons in the related column on the display page; or when the sliding direction or the pressing force direction of the first location is the horizontal direction, determine the related row of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than Δℓ, move the row icons in the related row on the display page.

[0209] In a possible implementation, the processor 2001 is further configured to cyclically move the column icons in the related column.

[0210] In a possible implementation, the processor 2001 is further configured to move the row icons in the related row on the display page by Y icon distances along the horizontal direction, where Y is a quantity of icons in a ℓ distance range, and Y is an integer distance.

[0211] In a possible implementation, the processor 2001 is further configured to: remove icons that fall outside the display page after the movement, determine, from an adjacent page in a direction opposite to the sliding direction, Y icons that are located in a same row as the related row and that are adjacent to the display page, and move the icons to the related row on the display page.

[0212] In a possible implementation, the processor 2001 is further configured to: when there are icons in the same row as the related row on the adjacent page and a quantity of icons is less than Y, determine a quantity P of icons in the same row as the related row on the adjacent page, where P is a positive integer, and 0 < P < Y; and move all the icons in the related row on the display page by the P icons along the horizontal direction, remove icons that fall outside the display page after the movement, and move the P icons in the same row as the related row on the adjacent page to the related row on the display page.

[0213] In a possible implementation, the processor 2001 is further configured to: when there is no icon in the same row as the related row on the adjacent page, cancel the user sliding operation.

[0214] The screen icon operating methods provided in the embodiments in FIG. 2 to FIG. 19 are all performed by the processor 2001. File data and/or calculated data in this application are/is stored in the memory 2002. In addition, the memory 2002 is further configured to store program instructions and the like that are executed by the processor to implement the screen icon operating methods provided in the embodiments in FIG. 2 to FIG. 19.

[0215] This application discloses a screen icon operating method and apparatus, to determine, by using collected touch information, whether a current user sliding operation is an entire screen operation or a row/column icon operation. For the entire screen operation, a conventional operation may be excluded based on a sliding speed, and entire-screen icon movement is performed based on the touch information. For the row/column icon operation, a conventional operation may be excluded based on pressing duration, and row or column icon movement may be performed in a sliding direction. In the foregoing manner, a corresponding icon can be quickly found. In addition, when an input device is a finger, for a large-screen terminal device whose size exceeds a specific size, operations can be quickly implemented with one hand. Therefore, the operations are more simple and convenient, and user operation experience is improved.

[0216] An ordinary person in the art may be further aware that, in combination with the examples described in the embodiments disclosed in this specification, units and algorithm steps may be implemented by electronic hardware, computer software, or a combination thereof. To clearly describe the interchangeability between the hardware and the software, the foregoing has generally described compositions and steps of each example according to functions. Whether the functions are performed by hardware or software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.

[0217] Persons of ordinary skill in the art may understand that all or a part of the steps in each of the foregoing method of the embodiments may be implemented by a program instructing a processor. The foregoing program may be stored in a computer readable storage medium. The storage medium may be a non-transitory (non-transitory) medium, such as a random-access memory, read-only memory, a flash memory, a hard disk, a solid state drive, a magnetic tape (magnetic tape), a floppy disk (floppy disk), an optical disc (optical disc), or any combination thereof.

[0218] The foregoing descriptions are merely preferred specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.


Claims

1. A touchscreen icon operating method, wherein the method comprises:

collecting user sliding operation information, wherein the user sliding operation information comprises: a first location, a sliding speed, pressing duration before sliding, or a sliding direction, and the first location is an initial location of a user sliding operation; and

when the first location is not located on an icon, determining that the sliding speed is less than a sliding speed threshold, and moving all icons on a display page in the sliding direction; or

when the first location is located on the icon, determining that the pressing duration is greater than or equal to a first duration threshold and less than or equal to a second duration threshold, and moving, in the sliding direction, column icons in a related column or row icons in a related row of the icon on which the first location is located on the display page.


 
2. The method according to claim 1, wherein the user sliding operation information further comprises a second location, and the second location is a touch location at which the user sliding operation ends; and
the moving all icons on a display page in the sliding direction comprises:

determining a sliding distance ℓ of the user sliding operation based on the first location and the second location, wherein ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction;

determining a supplementary parameter N, wherein N is determined by dividing ℓ by a unit switching distance Δh, Δh is greater than or equal to a width of a single icon and less than or equal to a width of an entire screen, and Δh is an integer multiple of the width of the single icon; and

moving all the icons on the display page by X rows or columns along the sliding direction, wherein X is a quantity of rows or columns of icons in an NxΔh range, and X is an integer.


 
3. The method according to claim 1 or 2, wherein the sliding direction comprises a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge; and
the moving all the icons on the display page by X rows or columns along the sliding direction comprises:

if the sliding direction is the horizontal direction, moving all the icons on the display page by the X columns along the horizontal direction; or

if the sliding direction is the vertical direction, cyclically moving all the icons on the display page by the X rows along the vertical direction.


 
4. The method according to claim 3, wherein if the sliding direction is the horizontal direction, the method further comprises:
removing icons that fall outside the display page after the movement, determining, from an adjacent page in a direction opposite to the sliding direction, X columns of icons adjacent to the display page, and moving the icons to the display page.
 
5. The method according to claim 4, wherein if the sliding direction is the horizontal direction, the method further comprises:

when there are at least one column of icons on the adjacent page, and a quantity of columns of icons is less than X, determining a quantity Q of columns of icons on the adjacent page, wherein Q is a positive integer, and 0 < Q < X; and

moving all the icons on the display page by Q columns along the horizontal direction, removing icons that fall outside the display page after the movement, and moving the Q columns of icons on the adjacent page to the display page.


 
6. The method according to any one of claims 3 to 5, wherein if the sliding direction is the horizontal direction, the method further comprises:
when there is no column of icons on the adjacent page, canceling the user sliding operation.
 
7. The method according to claim 1, wherein

the first location comprises two or more locations; and

the method further comprises: determining, based on the two or more locations, that an area in which the first location is located on the display page comprises at least two rows or at least two columns.


 
8. The method according to claim 1 or 7, wherein the touch information further comprises a second location, and the second location is a touch location at which the user sliding operation ends; and the sliding direction comprises a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge; and
the moving, in the sliding direction, column icons in a related column or row icons in a related row of the icon on which the first location is located on the display page comprises:

determining a sliding distance ℓ of the user sliding operation based on the first location and the second location, wherein ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and

when the sliding direction or a pressing force direction of the first location is the vertical direction, determining the related column of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than a minimum sliding distance Δℓ, moving the column icons in the related column on the display page; or

when the sliding direction or the pressing force direction of the first location is the horizontal direction, determining the related row of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than Δℓ, moving the row icons in the related row on the display page.


 
9. The method according to claim 8, wherein the moving the column icons in the related column on the display page comprises:
cyclically moving the column icons in the related column.
 
10. The method according to claim 8, wherein the moving the row icons in the related row on the display page comprises:
moving the row icons in the related row on the display page by Y icon distances along the horizontal direction, wherein Y is a quantity of icons in a ℓ distance range, and Y is an integer distance.
 
11. The method according to claim 10, wherein the method further comprises:
removing icons that fall outside the display page after the movement, determining, from an adjacent page in a direction opposite to the sliding direction, Y icons that are located in a same row as the related row and that are adj acent to the display page, and moving the icons to the related row on the display page.
 
12. The method according to claim 11, wherein the method further comprises:

when there are icons in the same row as the related row on the adjacent page and a quantity of icons is less than Y, determining a quantity P of icons in the same row as the related row on the adjacent page, wherein P is a positive integer, and 0 < P < Y; and

moving all the icons in the related row on the display page by the P icons along the horizontal direction, removing icons that fall outside the display page after the movement, and moving the P icons in the same row as the related row on the adjacent page to the related row on the display page.


 
13. The method according to any one of claims 10 to 12, wherein the method further comprises:
when there is no icon in the same row as the related row on the adjacent page, canceling the user sliding operation.
 
14. A touchscreen icon operating apparatus, wherein the apparatus comprises a sensor, a memory, a processor, and an interface circuit, wherein

the sensor is configured to collect user sliding operation information, wherein the user sliding operation information comprises: a first location, a sliding speed, pressing duration before sliding, or a sliding direction, and the first location is an initial location of a user sliding operation;

the memory is configured to store code instructions and the user sliding operation information collected by the sensor;

the interface circuit is configured to receive the code instructions and transmit the code instructions to the processor; and

the processor is configured to: when the first location is not located on an icon, determine that the sliding speed is less than a sliding speed threshold, and move all icons on a display page in the sliding direction; or

the processor is further configured to: when the first location is located on the icon, determine that the pressing duration is greater than or equal to a first duration threshold and less than or equal to a second duration threshold, and move, in the sliding direction, column icons in a related column or row icons in a related row of the icon on which the first location is located on the display page.


 
15. The apparatus according to claim 14, wherein the touch information further comprises a second location, and the second location is a touch location at which the user sliding operation ends; and
the processor is further configured to:

determine a sliding distance ℓ of the user sliding operation based on the first location and the second location, wherein ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and

determine a supplementary parameter N, wherein N is determined by dividing ℓ by a unit switching distance Δh, Δh is greater than or equal to a width of a single icon and less than or equal to a width of an entire screen, and Δh is an integer multiple of the width of the single icon; and

move all the icons on the display page by X rows or columns along the sliding direction, wherein X is a quantity of rows or columns of icons in an NxΔh range, and X is an integer.


 
16. The apparatus according to claim 14 or 15, wherein the sliding direction comprises a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge; and
the processor is further configured to:

if the sliding direction is the horizontal direction, move all the icons on the display page by the X columns along the horizontal direction; or

if the sliding direction is the vertical direction, cyclically move all the icons on the display page by the X rows along the vertical direction.


 
17. The method according to claim 16, wherein the processor is further configured to:
remove icons that fall outside the display page after the movement, determine, from an adjacent page in a direction opposite to the sliding direction, X columns of icons adjacent to the display page, and move the icons to the display page.
 
18. The apparatus according to claim 17, wherein the processor is further configured to:

when there are at least one column of icons on the adjacent page, and a quantity of columns of icons is less than X, determine a quantity Q of columns of icons on the adjacent page, wherein Q is a positive integer, and 0 < Q < X; and

move all the icons on the display page by Q columns along the horizontal direction, remove icons that fall outside the display page after the movement, and move the Q columns of icons on the adjacent page to the display page.


 
19. The apparatus according to claim 16 or 18, wherein the processor is further configured to:
when there is no column of icons on the adjacent page, cancel the user sliding operation.
 
20. The apparatus according to claim 14, wherein the first location comprises two or more locations; and
the processor is further configured to:
determine, based on the two or more locations, that an area in which the first location is located on the display page comprises at least two rows or at least two columns.
 
21. The apparatus according to claim 14 or 20, wherein the touch information further comprises a second location, and the second location is a touch location at which the user sliding operation ends; and the sliding direction comprises a horizontal direction and a vertical direction, the horizontal direction is parallel to a first edge of the touchscreen, the vertical direction is parallel to a second edge of the touchscreen, and the first edge is perpendicular to the second edge; and
the processor is further configured to:

determine a sliding distance ℓ of the user sliding operation based on the first location and the second location, wherein ℓ is a projection distance of a straight-line distance between the second location and the first location in the sliding direction; and

when the sliding direction or a pressing force direction of the first location is the vertical direction, determine the related column of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than a minimum sliding distance Δℓ, move the column icons in the related column on the display page; or

when the sliding direction or the pressing force direction of the first location is the horizontal direction, determine the related row of the icon on which the first location is located; and when ℓ of the user sliding operation is greater than Δℓ, move the row icons in the related row on the display page.


 
22. The apparatus according to claim 21, wherein the processor is further configured to:
cyclically move the column icons in the related column.
 
23. The apparatus according to claim 21, wherein the processor is further configured to:
move the row icons in the related row on the display page by Y icon distances along the horizontal direction, wherein Y is a quantity of icons in a ℓ distance range, and Y is an integer distance.
 
24. The apparatus according to claim 23, wherein the processor is further configured to:
remove icons that fall outside the display page after the movement, determine, from an adjacent page in a direction opposite to the sliding direction, Y icons that are located in a same row as the related row and that are adjacent to the display page, and move the icons to the related row on the display page.
 
25. The apparatus according to claim 24, wherein the processor is further configured to:

when there are icons in the same row as the related row on the adjacent page and a quantity of icons is less than Y, determine a quantity P of icons in the same row as the related row on the adjacent page, wherein P is a positive integer, and 0 < P < Y; and

move all the icons in the related row on the display page by the P icons along the horizontal direction, remove icons that fall outside the display page after the movement, and move the P icons in the same row as the related row on the adjacent page to the related row on the display page.


 
26. The apparatus according to any one of claims 23 to 25, wherein the processor is further configured to:
when there is no icon in the same row as the related row on the adjacent page, cancel the user sliding operation.
 
27. A terminal device, comprising a collection module and a processing module, wherein the sensing module is configured to collect user sliding operation information; and
the processing module is configured to perform the method according to any one of claims 1 to 13.
 
28. A computer-readable storage medium storing a program, wherein the program comprises instructions, and when the instructions are executed, the method according to any one of claims 1 to 13 is performed.
 
29. A computer program product comprising instructions, wherein when the computer program product is run on a communications apparatus, the communications apparatus is enabled to perform the method according to any one of claims 1 to 13.
 




Drawing


















































































Search report










Cited references

REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description