Patent Description:
Currently, there are more and more applications of a mobile phone. In an icon management manner in the related art, it is difficult for a user to manage a plurality of icons at the same time, and in particular, it is difficult to sort icons across desktops. When icons of a plurality of desktop are exchanged, operations are cumbersome and time-consuming.

<CIT> provides a method for changing a coordinate of an icon according to a sensing signal. The method comprises: outputting the sensing signal via a sensor according to an interactive operation of a user; displaying a plurality of the icons of an operating system via a display device, wherein each icon corresponds to a data element; when receiving the sensing signal and a trigger signal by a processor, by the processor, acquiring the icons currently shown on the display device, generating an updated coordinate of each icon according to the sensing signal output by the sensor, changing the coordinates of the icons of the operating system, and displaying the icons on the display device according to the updated coordinates.

Embodiments of the present disclosure provide an object position adjustment method and an electronic device, to resolve a problem that a position adjustment operation of an object (for example, an application icon) on a display interface in the related art is cumbersome and time-consuming.

In the embodiments of the present disclosure, a first input performed by a user is received, a first object is marked by using a first mark in response to the first input, a second input performed by the user is received, and positions of the first object and a second object are switched in response to the second input. In this manner, the user does not need to manually drag objects on a desktop one by one, so that a position of an object can be quickly adjusted, and operations are convenient and time-saving.

The following clearly and completely describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.

As shown in <FIG>, an embodiment of the present disclosure provides an object position adjustment method, including:
Step <NUM>: Receive a first input performed by a user.

It should be noted that the first input may be a tap input, a long press and hold input, a slide input, or the like, that is, the first input is an input or an operation that is performed by the user on an interface of an electronic device to mark a first object, including a tap operation, a long press and hold operation, a slide operation, a zoom operation, or the like.

Step <NUM>: Mark a first object by using a first mark in response to the first input.

Specifically, the electronic device needs to mark the first object, to distinguish a to-be-moved object from an object that does not need to be moved. In addition, to conveniently distinguish objects during moving, a mark number of each object (that is, specific content of the first mark) needs to be determined, and the mark number is distinguished by using different numbers, for example, mark numbers are allocated to the first object in ascending order of numbers.

Step <NUM>: Receive a second input performed by the user.

It should be noted that the second input may be a tap input, a long press and hold input, a slide input, or the like, that is, the second input is an operation that is performed by the user on the interface of the electronic device to switch positions of the first object and a second object, including a tap operation, a long press and hold operation, a slide operation, a zoom operation, or the like.

Step <NUM>: Switch positions of the first object and a second object in response to the second input.

The second object is marked by using a second mark.

It should be noted that, in the foregoing manner, positions of different objects on the interface of the electronic device may be switched. The object may be an application icon of an application program, may be an icon of a folder, or may be an image displayed on the interface of the electronic device.

It should be noted that in this embodiment of the present disclosure, cross-desktop movement of application icons is mainly implemented. During cross-desktop movement, only a predetermined operation (which may be a slide operation, a tap operation, or a press and hold operation) needs to be performed on a second screen desktop, so that a specific application icon that is in marked application icons on a first screen desktop and that is corresponding to the predetermined operation can be moved to the second screen desktop. Therefore, the user does not need to perform an operation of dragging an application icon from one screen desktop to another screen desktop, thereby reducing operation complexity of the user.

The following examples are described by using an example in which a position of an application icon is adjusted. It should be noted that, in this embodiment of the present disclosure, a position of an application icon may be directly adjusted in a normal mode of a terminal (the normal mode means that the user may open an application on a desktop). Further, it should be noted that in this case, the operation used in this embodiment of the present disclosure should be different from an operation in the related art to avoid a false trigger. Optionally, before this embodiment of this disclosure, the electronic device may also first enter a mode of adjusting the position of the application icon (in this mode, only the position of the application icon can be adjusted, which is different from the foregoing normal mode). For example, the user may perform a slide operation on the desktop to enter the mode of adjusting the position of the application icon. As shown in <FIG>, the user slides upward from the bottom of the screen by using three fingers (an arrow direction in <FIG> indicates a slide direction of the finger), that is, may enter the mode of adjusting the position of the application icon. In <FIG>, application icons from the top to the bottom and from the left to the right are an icon <NUM> corresponding to an application A, an icon <NUM> corresponding to an application B, an icon <NUM> corresponding to an application C, and an icon <NUM> corresponding to an application D.

It should be noted that, when the user marks the first object, a quantity of marked first objects is different because the first input is performed differently. The following separately describes step <NUM> in this embodiment of the present disclosure in detail from different perspectives.

In a first manner, there are N first objects, N is an integer greater than or equal to <NUM>, the first input includes N first sub-inputs, and each first sub-input acts on one first object.

It should be noted that, in this case, a specific implementation of step <NUM> is:.

It should be noted that in this case, the user performs the first sub-input once to mark only one first object.

Further, it should be noted that, for different first input features, a manner of determining the ith first mark of the ith first object is also different. When the first input feature is an input sequence and fingerprint information that are of the ith first sub-input, the manner of determining the ith first mark of the ith first object specifically is:
in a case that the fingerprint information of the ith first sub-input is preset first fingerprint information, determining the ith first mark of the ith first object based on the input sequence of the ith first sub-input.

It should be noted that, because different fingers correspond to different fingerprint information, a specific finger may be used in advance to mark the first object in this case. For example, an index finger is used to mark the first object. When the index finger operates one application icon once, the application icon is marked as <NUM>. When the index finger operates another application icon once, the application icon is marked as <NUM>. By analogy, to clearly let the user know a specific mark of each application icon, a corresponding mark number is displayed below each application icon.

When the first input feature is fingerprint information of the ith first sub-input, and fingerprint information of each first sub-input is different, the manner of determining the ith first mark of the ith first object is specifically:
determining a mark associated with the fingerprint information of the ith first sub-input as the ith first mark of the ith first object.

It should be noted that in this case, a plurality of pieces of different fingerprint information are preset, different fingerprint information corresponds to different first marks, and an object is marked by using different fingerprint information. For example, a mark corresponding to fingerprint information of an index finger is <NUM>, and a mark corresponding to fingerprint information of a middle finger is <NUM>. When the user marks an application icon by using the middle finger, and the terminal obtains the mark <NUM> corresponding to the fingerprint information of the middle finger, the terminal marks the application icon as <NUM>. To clearly let the user know a sequence of marks, a corresponding mark number is displayed below each application icon.

It should be further noted that, to facilitate identifying the first object marked by the user, a marking box needs to be displayed on the first object. The marking box is a preset shape. The preset shape may be a regular shape such as a circle, a square, a diamond, or a triangle, or may be an irregular shape defined by the user. The marking box is used to clearly indicate the first object marked by the user, so that the user can distinguish the marked first object.

For example, as shown in <FIG>, if the user wants to mark an icon <NUM> corresponding to an application C, the user needs to press and hold the icon <NUM> corresponding to the application C and slide the icon <NUM> in an arrow direction in <FIG> to display a square marking box above the icon <NUM> corresponding to the application C. If the user wants to mark an icon <NUM> corresponding to an application B, the user needs to press and hold the icon <NUM> corresponding to the application B and slide the icon <NUM> in an arrow direction in <FIG> to display a square marking box above the icon <NUM> corresponding to the application B.

It should be noted that, in this case, the user directly performs different marking by using a plurality of objects, so that a plurality of pairs of objects are quickly switched, thereby reducing operation time and improving user experience.

In a second manner, there are M first objects, and M is an integer greater than or equal to <NUM>.

It should be noted that in this case, the user may perform the first input once to mark at least one object at the same time. Specifically, a quantity of objects that can be marked may be preset by the user and stored in the electronic device.

Further, it should be noted that the first input is a touch input performed by the user in a target area on a target interface, the target area does not include the first object or the second object, and the second input feature includes M touch points. Specifically, an implementation of marking the M first objects by using the M first marks based on the second input feature is:.

In a case that the preset object is the object of the preset type, the M first objects are objects of a same type. That is, in this case, the electronic device marks the objects of the same type. For example, if a type of the first object is online shopping, the electronic device sequentially marks M application icons whose types are online shopping from a first application icon whose type is a network on the target interface.

In a case that the preset object is the object at the preset position, the M first objects are objects at adjacent arrangement positions or objects at preset arrangement intervals. That is, in this case, the electronic device marks adjacent first objects or first objects arranged into a preset rule (for example, marks one application icon every other application icon). For example, the user performs the first input by using M fingers, and the electronic device marks M application icons from a first application icon on the target interface, or starting from a first application icon on the target interface, the electronic device marks one application icon every two application icons until the M application icons are marked.

In this case, the electronic device determines, based on an arrangement sequence of first objects on a desktop, that mark numbers of marked first object corresponds to the arrangement sequence, that is, sequentially numbers the marked first objects from front to back based on the arrangement sequence from front to back. Specifically, to facilitate the user to view the mark numbers, the mark number corresponding to the first object is displayed on one side of each marked first object. The mark numbers are distinguished by using different numbers. For example, a mark number of a first object ranked first is <NUM>, a mark number of a first object ranked second is <NUM>, and by analogy.

For example, as shown in <FIG>, if the user wants to mark three application icons, the user may use three fingers to slide upward in an arrow direction on an interface, and the electronic device marks the first three application icons on the desktop. After the user performs the first input, mark numbers of marked application icons on the desktop of the electronic device are <NUM>, <NUM>, and <NUM>, and corresponding application icons are an icon <NUM> corresponding to an application A, an icon <NUM> corresponding to an application B, and an icon <NUM> corresponding to an application C.

It should be noted that, in this case, an operation manner of simultaneously marking a plurality of objects avoids individual marking of an object, reduces interaction time, and meets a requirement for using the electronic device by the user in more scenarios.

It should be further noted that, after the user marks the first object, a case that mark numbers of some first objects may not meet an adjustment requirement during subsequent object adjustment. Therefore, after the first object is marked, the user may further exchange marks of different objects. A specific implementation is: receiving a third input performed by the user on a first target object and a second target object in the N first objects; and
exchanging a first mark of the first target object and a first mark of the second target object in the first objects in response to the third input.

It should be noted that the third input may be a tap input, a long press and hold input, a slide input, or the like. Specifically, an optional implementation of receiving the third input performed by the user on the first target object and the second target object in the N first objects is:
receiving the third input through which the user moves the first target object to a position that at least partially overlaps the second target object.

For example, when the user presses and holds an application icon corresponding to a to-be-modified mark number on one desktop to slide to another marked application icon on the same desktop, mark numbers of the two application icons are exchanged, thereby modifying a mark number of an application icon. For example, as shown in <FIG>, a left part in <FIG> is a state before a mark number of an application icon is adjusted. In this case, a mark number of an icon <NUM> corresponding to an application C is <NUM>, and a mark number of an icon <NUM> corresponding to an application B is <NUM>. The user slides the icon <NUM> corresponding to the application C to the icon <NUM> corresponding to the application B in an arrow direction the figure. In this case, a mark number of the icon <NUM> corresponding to the application C and a mark number of the icon <NUM> corresponding to the application B are changed, and a status of a desktop after the mark number is adjusted is shown in a right part in <FIG>. In this case, the mark number of the icon <NUM> corresponding to the application C is <NUM>, and the mark number of the icon <NUM> corresponding to the application B is <NUM>.

It should be noted that, the third input is used to exchange mark numbers of different objects, so that the user can flexibly switch objects.

The following describes a specific implementation of step <NUM>.

In a first manner, objects are directly switched.

Specifically, in this case, a specific implementation of step <NUM> is:.

It should be noted that, in this case, the marking of the second object and the switching of the positions of the objects are performed simultaneously, and an object switching process may be implemented quickly. Specifically, an implementation of marking the second object by using the second marking is similar to the implementation of marking the first object by using the first mark, and is not described herein again.

The electronic device performs switching through mark matching. For example, when the first mark is <NUM>, the electronic device switches positions of objects whose first mark is <NUM> and second mark is <NUM>.

For example, on a first screen desktop, the user marks an icon A by using a middle finger, marks an icon B by using an index finger, and marks an icon C by using a thumb, and mark numbers corresponding to the middle finger, the index finger, and the thumb are <NUM>, <NUM>, and <NUM>. When the user performs a slide operation on a second screen desktop by pressing and holding an icon E by using an index finger, a position of the icon E and a position of the icon B on the first screen desktop are switched. After the switching, the icon E is displayed at the position of the icon B, and the icon A is displayed at the position of the icon B.

In a second manner, the second object is marked first, and then objects are switched through an input performed by the user.

It should be noted that the implementation of marking the second object by using the second mark is similar to the manner of marking the first object by using the first mark. Details are as follows:.

In a first manner, there are H second objects, H is an integer greater than or equal to <NUM>, the second input includes H second sub-inputs, and each second sub-input acts on one second object.

It should be noted that in this case, the specific implementation of marking the second object by using the second mark is:.

It should be noted that in this case, the user performs the second sub-input once to mark only one second object.

Further, it should be noted that, for different fourth input features, a manner of determining the jth second mark of the jth second object is also different. When the fourth input feature is an input sequence and fingerprint information that are of the jth second sub-input, a manner of determining the jth second mark of the jth second object is specifically:
in a case that the fingerprint information of the jth second sub-input is preset second fingerprint information, determine the jth second mark of the jth second object based on the input sequence of the jth second sub-input.

It should be noted that, because different fingers correspond to different fingerprint information, a specific finger may be used in advance to mark the second object in this case. For example, an index finger is used to mark the second object. When the index finger operates one application icon once, the application icon is marked as <NUM>. When the index finger operates another application icon once, the application icon is marked as <NUM>. By analogy, to clearly let the user know a specific mark of each application icon, a corresponding mark number is displayed below each application icon.

When the fourth input feature is fingerprint information of the jth second sub-input, and fingerprint information of each second sub-input is different, the manner of determining the jth second mark of the jth second object is specifically:
determining a mark associated with the fingerprint information of the jth second sub-input as the jth second mark of the jth second object.

It should be noted that in this case, a plurality of pieces of different fingerprint information are preset, different fingerprint information corresponds to different second marks, and an object is marked by using different fingerprint information. For example, a mark corresponding to fingerprint information of an index finger is <NUM>, and a mark corresponding to fingerprint information of a middle finger is <NUM>. When the user marks an application icon by using the middle finger, and the terminal obtains the mark <NUM> corresponding to the fingerprint information of the middle finger, the terminal marks the application icon as <NUM>. To clearly let the user know a sequence of marks, a corresponding mark number is displayed below each application icon.

It should be further noted that, to facilitate identifying the second object marked by the user, a marking box needs to be displayed on the second object. The marking box is a preset shape. The preset shape may be a regular shape such as a circle, a square, a diamond, or a triangle, or may be an irregular shape defined by the user. The marking box is used to clearly indicate the second object marked by the user, so that the user can distinguish the marked second object.

In a second manner, there are K second objects, and K is an integer greater than or equal to <NUM>.

It should be noted that in this case, the specific implementation of marking the second object by using the second mark is:
marking the K second objects by using K second marks based on the fourth input feature.

It should be noted that in this case, the user may perform the second input once to mark at least one object at the same time. Specifically, a quantity of objects that can be marked may be preset by the user and stored in the electronic device.

Further, it should be noted that the second input is a touch input performed by the user in a target area on a target interface, the target area does not include the first object or the second object, and the fourth input feature includes K touch points. Specifically, an implementation of marking the K second objects by using the K second marks based on the fourth input feature includes:.

In a case that the preset object is the object of the preset type, the K second objects are objects of a same type. That is, in this case, the electronic device marks the objects of the same type. For example, if a type of the second object is online shopping, the electronic device sequentially marks K application icons whose types are online shopping starting from a first application icon whose type is a network on the target interface.

In a case that the preset object is the object at the preset position, the K second objects are objects at adjacent arrangement positions or objects at preset arrangement intervals. That is, in this case, the electronic device marks adjacent first objects or first objects arranged into a preset rule (for example, marks one application icon every other application icon). For example, the user performs the second input by using K fingers, and the electronic device marks K application icons from a first application icon on the target interface, or starting from a first application icon on the target interface, the electronic device marks one application icon every two application icons until the K application icons are marked.

It should be further noted that after marking the second object, the user may further exchange marks of different objects. A specific implementation is: receiving a preset input performed by the user on a third target object and a fourth target object in the second objects; and
exchanging a second mark of the third target object and a second mark of the fourth target object in the second objects in response to the preset input.

It should be noted that the preset input may be a tap input, a long press and hold input, a slide input, or the like. Specifically, an optional implementation of receiving the preset input performed by the user on the third target object and the fourth target object in the second objects is:
receiving the preset input through which the user moves the third target object to a position that at least partially overlaps the fourth target object.

It should be noted that, the preset input is used to exchange mark numbers of different objects, so that the user can flexibly switch objects.

It should be further noted that the first object is an object on a first interface, and the second object is an object on a second interface. To enable the user to better understand a specific to-be-switched object when switching the first object and the second object, before step <NUM>, the method further includes:.

In this case, when the first object and the second object are switched, the to-be-switched first object is first displayed in a blank position on the interface on which the second object is located, to remind the user of the marked object on the first interface, so that the user can clearly know the marked object on the first interface, thereby assisting the user in accurately switching objects.

Specifically, an implementation of displaying the marked first object in response to the fifth input is: obtaining a fifth input feature of the fifth input; and displaying the marked first object in a case that the fifth input feature is the same as an input feature of the first input.

In this case, the input feature of the fifth input should be the same as an input feature used when the first object is marked. For example, when specific fingerprint information is used to mark the first object, and the first object is displayed, the fifth input should also be performed by using a finger having input fingerprint information. When the first object is marked by using unused fingerprint information, and the first object is displayed, if the fifth input is performed by using a particular finger, and the marked first object corresponding to fingerprint information of the finger is displayed.

Specifically, another implementation of displaying the marked first object in response to the fifth input is:.

In this case, the fifth input for displaying the first object is not associated with the input feature for marking the first object. When displaying the first object, the fingerprint information of the fifth input may be specific fingerprint information, and the fifth input may be performed once to display one first object, or the fifth input may be performed once to display a plurality of first objects. It should be noted that in this manner, the user does not need to remember the input feature for marking the first object, and the user does not need to record a correspondence between the fingerprint information and the input feature for marking the first object, so that a display speed of the first object can be increased, and an object switching time can be shortened.

For example, as shown in <FIG>, a left side in <FIG> represents a first screen desktop of the electronic device, and a right side represents a second screen desktop of the electronic device. When the user performs a slide operation in an arrow direction in the figure at a blank position on the second screen desktop for the first time, an icon <NUM> corresponding to an application C is moved to the blank position on the second screen desktop. When a slide operation is performed for the second time, an icon <NUM> corresponding to an application B is moved to the blank position on the second screen desktop. An application icon that is moved to the second screen desktop also has a mark number, and the user may also adjust the mark number of the application icon on the second screen desktop.

It should be noted that a position of the marked application icon operated by the user on the second screen desktop is exchanged with a position of a marked application icon on the first screen desktop. Herein, it should be noted that positions of the application icons are exchanged based on mark numbers, that is, after the second input is performed, positions of application icons with a same mark number on different desktops are switched.

For example, as shown in <FIG>, a left side in <FIG> represents a first screen desktop of the electronic device, and a right side represents a second screen desktop of the electronic device. A slide operation is performed on an icon <NUM> corresponding to an application G on the second screen desktop in an arrow direction. Because a mark number of the icon <NUM> corresponding to the application G is <NUM>, a position of the icon <NUM> corresponding to the application G is exchanged with a position of an icon <NUM> that is corresponding to the application C and whose mark number is <NUM> on the first screen desktop. A slide operation is performed on an icon <NUM> corresponding to an application H on the second screen desktop in an arrow direction. Because a mark number of the icon <NUM> corresponding to the application H is <NUM>, a position of the icon <NUM> corresponding to the application H is exchanged with a position of an icon <NUM> that is corresponding to an application B and whose mark number is <NUM> on the first screen desktop.

The following separately describes the foregoing implementations by using examples from a perspective of a mark of an icon and a switching manner.

Example <NUM>: An operation is performed by using a same finger for a plurality of times on both the first screen desktop and the second screen desktop to mark icons one by one, and objects are switched through an input performed by the user by using a mark of the second object first. During the switching, the marked first object does not need to be displayed on the second screen desktop.

On the first screen desktop, the user respectively marks an icon A, an icon B, and an icon C by using one finger, and mark numbers corresponding to the icon A, the icon B, and the icon C are respectively <NUM>, <NUM>, and <NUM>. On the second screen desktop, the user marks an icon E, an icon F, and an icon G by using one finger, and mark numbers corresponding to the icon E, the icon F, and the icon G are respectively <NUM>, <NUM>, and <NUM>. When the user performs a slide operation on the second screen desktop by pressing and holding the marked icon E, a position of the icon E is switched with a position of the icon A on the first screen desktop, and after the switching, the icon E is displayed at the position of the icon A, and the icon A is displayed at the position of the icon E.

Example <NUM>: An operation is performed by using a same finger for a plurality of times both the first screen desktop and the second screen desktop to mark icons one by one, and objects are switched through an input performed by the user by using a mark of the second object first. During the switching, the marked first object needs to be displayed on the second screen desktop.

On the first screen desktop, the user respectively marks an icon A, an icon B, and an icon C by using one finger, and mark numbers corresponding to the icon A, the icon B, and the icon C are respectively <NUM>, <NUM>, and <NUM>. On the second screen desktop, the user marks an icon E, an icon F, and an icon G by using one finger, and mark numbers corresponding to the icon E, the icon F, and the icon G are respectively <NUM>, <NUM>, and <NUM>. When the user performs sliding by using a finger at a blank position on the second screen desktop, an icon on the first screen desktop is displayed at the blank position. For example, one icon is displayed if the finger slides in ascending order of mark numbers on the first screen desktop. If the user performs a slide operation on the second screen desktop by pressing and holding the marked icon E, a position of the icon E is switched with a position of the icon A on the first screen desktop, and after the switching, the icon E is displayed at the position of the icon A, and the icon A is displayed at the position of the icon E.

Example <NUM>: Operations are performed by using different fingers on both the first screen desktop and the second screen desktop to mark icons, and objects are switched through an input performed by the user by using a mark of the second object first. During the switching, the marked first object does not need to be displayed on the second screen desktop.

On the first screen desktop, if the user marks an icon A by using a middle finger, marks an icon B by using an index finger, and marks an icon C by using a thumb, and mark numbers corresponding to the middle finger, the index finger, and the thumb are respectively <NUM>, <NUM>, and <NUM>, mark numbers corresponding to the icon A, the icon B, and the icon C are also respectively <NUM>, <NUM>, and <NUM>. On the second screen desktop, if the user an icon E by using a middle finger, marks an icon F by using an index finger, and marks an icon G by using a thumb, and mark numbers corresponding to the middle finger, the index finger, and the thumb are respectively <NUM>, <NUM>, and <NUM>, mark numbers corresponding to the icon E, the icon F, and the icon G are also respectively <NUM>, <NUM>, and <NUM>. When the user performs a slide operation on the second screen desktop by pressing and holding the marked icon F by using the index finger, a position of the icon F is switched with a position of the icon B on the first screen desktop. After the switching, the icon F is displayed at the position of the icon B, and the icon B is displayed at the position of the icon F.

Example <NUM>: Operations are performed by using different fingers on both the first screen desktop and the second screen desktop to mark icons one by one, and objects are switched through an input performed by the user by using a mark of the second object first. During the switching, the marked first object needs to be displayed on the second screen desktop.

On the first screen desktop, if the user marks an icon A by using a middle finger, marks an icon B by using an index finger, and marks an icon C by using a thumb, and mark numbers corresponding to the middle finger, the index finger, and the thumb are respectively <NUM>, <NUM>, and <NUM>, mark numbers corresponding to the icon A, the icon B, and the icon C are also respectively <NUM>, <NUM>, and <NUM>. On the second screen desktop, if the user an icon E by using a middle finger, marks an icon F by using an index finger, and marks an icon G by using a thumb, and mark numbers corresponding to the middle finger, the index finger, and the thumb are respectively <NUM>, <NUM>, and <NUM>, mark numbers corresponding to the icon E, the icon F, and the icon G are also respectively <NUM>, <NUM>, and <NUM>. The user slides by using the middle finger to display the icon A on the first screen desktop at a blank position on the second screen desktop, and slides by using the index finger to display the icon B on the first screen desktop at the blank position. If the user performs a slide operation on the second screen desktop by pressing and holding the marked icon E, a position of the icon E is switched with a position of the icon A on the first screen desktop. After the switching, the icon E is displayed at the position of the icon A, and the icon A is displayed at the position of the icon E.

Example <NUM>: An operation is performed once by using a plurality of fingers on both the first screen desktop and the second screen desktop to mark a plurality of one by one, and objects are switched through an input performed by the user by using a mark of the second object first. During the switching, the marked first object does not need to be displayed on the second screen desktop.

On the first screen desktop, if the user slides by using three fingers to mark an icon A, an icon B, and an icon C simultaneously, mark numbers of the three icons are determined based on an arrangement sequence on the desktop, and are respectively <NUM>, <NUM>, and <NUM>. On the second screen desktop, if the user slides by using three fingers to mark an icon E, an icon F, and an icon G simultaneously, mark numbers of the three icons are determined based on an arrangement sequence on the desktop, and are respectively <NUM>, <NUM>, and <NUM>. When the user performs a slide operation on the second screen desktop by using three fingers, a position of the icon E is switched with a position of the icon A on the first screen desktop, a position of the icon F is switched with a position of the icon B on the first screen desktop, and a position of the icon G is switched with a position of the icon C on the first screen desktop.

Example <NUM>: An operation is performed once by using a plurality of fingers on both the first screen desktop and the second screen desktop to mark a plurality of one by one, and objects are switched through an input performed by the user by using a mark of the second object first. During the switching, the marked first object needs to be displayed on the second screen desktop.

On the first screen desktop, if the user slides by using three fingers to mark an icon A, an icon B, and an icon C simultaneously, mark numbers of the three icons are determined based on an arrangement sequence on the desktop, and are respectively <NUM>, <NUM>, and <NUM>. On the second screen desktop, if the user slides by using three fingers to mark an icon E, an icon F, and an icon G simultaneously, mark numbers of the three icons are determined based on an arrangement sequence on the desktop, and are respectively <NUM>, <NUM>, and <NUM>. When the user slides by using the three fingers on the second screen desktop to display the three marked icons on the first screen desktop at a blank position, and performs a slide operation by pressing and holding the marked icon E, a position of the icon E is switched with a position of the icon A on the first screen desktop. After the switching, the icon E is displayed at the position of the icon A, and the icon A is displayed at the position of the icon E.

It should be further noted that the user may further cancel a previous operation on an application icon. For example, the user performs an operation of exchanging a mark number of an icon <NUM> corresponding to an application B with a mark number of an icon <NUM> corresponding to an application C. However, the user does not want to perform such an exchange. As shown in <FIG>, if the user performs a slide-down operation by using two fingers in an arrow direction at a blank position on the desktop, the electronic device cancels the previous operation of adjusting the mark numbers. After the operation is canceled, the mark number of the icon <NUM> corresponding to the application B is <NUM>, and the mark number of the icon <NUM> corresponding to the application C is <NUM>.

It should be further noted that when the user does not need to adjust a position of an application icon, the user needs to exit a mode of adjusting the position of the application icon. On a desktop of the electronic device, the user performs a predetermined operation to exit the mode of adjusting the position of the application icon. For example, the user may perform a slide operation on the desktop to exit the mode of adjusting the position of the application icon. As shown in <FIG>, the user slides by using three fingers in an arrow direction in the figure to reach the bottom of the screen (the arrow direction in <FIG> indicates a slide direction of the fingers), thereby exiting the mode of adjusting the position of the application icon.

It should be noted that in this embodiment of the present disclosure, different operation intentions may be distinguished by using slide operations performed by using different quantities of fingers. For example, when the user performs a slide operation by using three fingers, the electronic device enters or exits the mode of adjusting the position of the application icon. When the user performs a slide operation by using two fingers, the electronic device performs an operation of canceling the previous operation on the application icon.

In this embodiment of the present disclosure, the user does not need to manually drag icons on the desktop one by one, so that application icons can be quickly adjusted across desktops, and operations are convenient and time-saving, thereby improving user experience.

As shown in <FIG>, an embodiment of the present disclosure further provides an electronic device, including:.

Optionally, there are N first objects, N is an integer greater than or equal to <NUM>, the first input includes N first sub-inputs, and each first sub-input acts on one first object; and
the marking module <NUM> includes:.

Further, the first input feature is an input sequence and fingerprint information that are of the ith first sub-input; and
the first determining unit <NUM> is configured to:
in a case that the fingerprint information of the ith first sub-input is preset first fingerprint information, determine the ith first mark of the ith first object based on the input sequence of the ith first sub-input.

Further, the first input feature is fingerprint information of the ith first sub-input, and fingerprint information of each first sub-input is different; and
the first determining unit <NUM> is configured to:
determine a mark associated with the fingerprint information of the ith first sub-input as the ith first mark of the ith first object.

Optionally, there are M first objects, and M is an integer greater than or equal to <NUM>; and
the marking module <NUM> includes:.

Further, the first input is a touch input performed by the user in a target area on a target interface, the target area does not include the first object or the second object, and the second input feature includes M touch points; and
the second marking unit <NUM> is configured to:.

Optionally, after the marking module <NUM> marks the first object by using the first mark in response to the first input, the electronic device further includes:.

Specifically, the third receiving module <NUM> is configured to:
receive the third input through which the user moves the first target object to a position that at least partially overlaps the second target object.

According to the invention, the switching module <NUM> includes:.

Further, there are H second objects, H is an integer greater than or equal to <NUM>, the second input includes H second sub-inputs, and each second sub-input acts on one second object; and
the third marking unit <NUM> includes:.

Specifically, the fourth input feature is an input sequence and fingerprint information that are of the jth first sub-input; and
the determining subunit <NUM> is configured to:
in a case that the fingerprint information of the jth second sub-input is preset second fingerprint information, determine the jth second mark of the jth second object based on the input sequence of the jth second sub-input.

Specifically, the fourth input feature is fingerprint information of the jth second sub-input, and fingerprint information of each second sub-input is different; and
the determining subunit <NUM> is configured to:
determine a mark associated with the fingerprint information of the jth second sub-input as the jth second mark of the jth second object.

Further, there are K second objects, and K is an integer greater than or equal to <NUM>; and
the third marking unit <NUM> is configured to:
mark the K second objects by using K second marks based on the fourth input feature.

Specifically, the second input is a touch input performed by the user in a target area on a target interface, the target area does not include the first object or the second object, and the fourth input feature includes K touch points; and
when marking the K second objects by using K second marks based on the fourth input feature, the third marking unit <NUM> is further configured to:.

Optionally, the first object is an object on a first interface, and the second object is an object on a second interface; and
before the switching module <NUM> switches the positions of the first object and the second object in response to the second input, the electronic device further includes:.

Optionally, the display module <NUM> includes:.

Further, the display module <NUM> includes:.

The electronic device provided in this embodiment of the present disclosure can implement the processes implemented by the electronic device in the method embodiment in <FIG>. To avoid repetition, details are not described herein again. According to the electronic device in this embodiment of the present disclosure, a first input performed by a user is received, a first object is marked by using a first mark in response to the first input, a second input performed by the user is received, and positions of the first object and a second object are switched in response to the second input. In this manner, the user does not need to manually drag objects on a desktop one by one, so that a position of an object can be quickly adjusted. In this manner, the user does not need to manually drag icons on desktops one by one, so that application icons can be quickly adjusted across desktops, and operations are convenient and time-saving.

<FIG> is a structural diagram of hardware of an electronic device according to a non-claimed embodiment of the present disclosure.

An electronic device <NUM> includes but is not limited to components such as a radio frequency unit <NUM>, a network module <NUM>, an audio output unit <NUM>, an input unit <NUM>, a sensor <NUM>, a display unit <NUM>, a user input unit <NUM>, an interface unit <NUM>, a memory <NUM>, a processor <NUM>, and a power supply <NUM>. A person skilled in the art may understand that a structure of the electronic device shown in <FIG> constitutes no limitation on the electronic device, and the electronic device may include more or fewer components than those shown in the figure, or have a combination of some components, or have a different component arrangement. In this non-claimed embodiment of the present disclosure, the electronic device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, a pedometer, and the like.

The processor <NUM> is configured to: receive a first input performed by a user through the user input unit <NUM>; mark a first object by using a first mark in response to the first input; receive a second input performed by the user through the user input unit <NUM>; and switch positions of the first object and a second object in response to the second input.

According to the electronic device in this non-claimed embodiment of the present disclosure, a first input performed by a user is received, a first object is marked by using a first mark in response to the first input, a second input performed by the user is received, and positions of the first object and a second object are switched in response to the second input. In this manner, the user does not need to manually drag objects on a desktop one by one, so that a position of an object can be quickly adjusted. In this manner, the user does not need to manually drag icons on desktops one by one, so that application icons can be quickly adjusted across desktops, and operations are convenient and time-saving.

It should be understood that, in this non-claimed embodiment of the present disclosure, the radio frequency unit <NUM> may be configured to receive and send information or a signal in a call process. Specifically, after receiving downlink data from a base station, the radio frequency unit <NUM> sends the downlink data to the processor <NUM> for processing. In addition, the radio frequency unit <NUM> sends uplink data to the base station. Usually, the radio frequency unit <NUM> includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit <NUM> may communicate with a network and another device through a wireless communication system.

The electronic device provides wireless broadband Internet access for the user by using the network module <NUM>, for example, helping the user to send and receive an e-mail, brows a web page, and access streaming media.

The audio output unit <NUM> may convert audio data received by the radio frequency unit <NUM> or the network module <NUM> or stored in the memory <NUM> into an audio signal and output the audio signal as a sound. In addition, the audio output unit <NUM> may further provide an audio output (for example, a call signal received voice, or a message received voice) related to a specific function implemented by the electronic device <NUM>. The audio output unit <NUM> includes a speaker, a buzzer, a telephone receiver, and the like.

The input unit <NUM> is configured to receive an audio signal or a video signal. The input unit <NUM> may include a graphics processing unit (Graphics Processing Unit, GPU) <NUM> and a microphone <NUM>, and the graphics processing unit <NUM> processes image data of a still picture or video obtained by an image capture apparatus (such as a camera) in a video capture mode or an image capture mode. A processed image frame may be displayed on the display unit <NUM>. The image frame processed by the graphics processing unit <NUM> may be stored in the memory <NUM> (or another storage medium) or sent by using the radio frequency unit <NUM> or the network module <NUM>. The microphone <NUM> may receive a sound and can process such sound into audio data. Processed audio data may be converted, in a call mode, into a format that can be sent to a mobile communication base station by using the radio frequency unit <NUM> for output.

The electronic device <NUM> further includes at least one sensor <NUM> such as a light sensor, a motion sensor, and another sensor. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor may adjust luminance of the display panel <NUM> based on brightness of ambient light. The proximity sensor may turn off the display panel <NUM> and/or backlight when the electronic device <NUM> moves to an ear. As a type of the motion sensor, an accelerometer sensor may detect an acceleration value in each direction (generally, three axes), and detect a value and a direction of gravity when the accelerometer sensor is static, and may be used for recognizing a posture of the electronic device (such as screen switching between landscape and portrait modes, a related game, or magnetometer posture calibration), a function related to vibration recognition (such as a pedometer or a knock), and the like. The sensor <NUM> may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like.

The display unit <NUM> is configured to display information entered by a user or information provided for a user. The display unit <NUM> may include a display panel <NUM>.

The user input unit <NUM> may be configured to: receive entered digital or character information, and generate key signal input related to a user setting and function control of the electronic device. Specifically, the user input unit <NUM> includes a touch panel <NUM> and another input device <NUM>. The touch panel <NUM> is also referred to as a touchscreen, and may collect a touch operation performed by a user on or near the touch panel <NUM> (such as an operation performed by a user on the touch panel <NUM> or near the touch panel <NUM> by using any proper object or accessory, such as a finger or a stylus). The touch panel <NUM> may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects a touch position of the user, detects a signal brought by the touch operation, and sends the signal to the touch controller. The touch controller receives touch information from the touch detection apparatus, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor <NUM>, and can receive and execute a command sent by the processor <NUM>. In addition, the touch panel <NUM> may be of a resistive type, a capacitive type, an infrared type, a surface acoustic wave type, or the like. The user input unit <NUM> may include another input device <NUM> in addition to the touch panel <NUM>. Specifically, the another input device <NUM> may include but is not limited to a physical keyboard, a functional button (such as a volume control button or a power on/off button), a trackball, a mouse, and a joystick.

Further, the touch panel <NUM> may cover the display panel <NUM>. When detecting the touch operation on or near the touch panel <NUM>, the touch panel <NUM> transmits the touch operation to the processor <NUM> to determine a type of a touch event, and then the processor <NUM> provides corresponding visual output on the display panel <NUM> based on the type of the touch event. In <FIG>, although the touch panel <NUM> and the display panel <NUM> are used as two independent parts to implement input and output functions of the electronic device, in some non-claimed embodiments, the touch panel <NUM> and the display panel <NUM> may be integrated to implement the input and output functions of the electronic device. This is not specifically limited herein.

The interface unit <NUM> is an interface for connecting an external apparatus with the electronic device <NUM>. For example, the external apparatus may include a wired or wireless headphone port, an external power supply (or a battery charger) port, a wired or wireless data port, a storage card port, a port used to connect to an apparatus having an identity module, an audio input/output (I/O) port, a video I/O port, a headset port, and the like. The interface unit <NUM> may be configured to receive input (for example, data information and power) from an external apparatus and transmit the received input to one or more elements in the electronic device <NUM> or may be configured to transmit data between the electronic device <NUM> and an external apparatus.

The memory <NUM> may be configured to store a software program and various data. The memory <NUM> may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound play function or an image play function), and the like. The data storage area may store data (such as audio data or an address book) created based on use of the mobile phone, and the like. In addition, the memory <NUM> may include a high-speed random access memory, and may further include a nonvolatile memory, for example, at least one magnetic disk storage component, a flash memory component, or another volatile solid-state storage component.

The processor <NUM> is a control center of the electronic device, connects all parts of the entire electronic device by using various interfaces and lines, and performs various functions of the electronic device and data processing by running or executing a software program and/or a module that are/is stored in the memory <NUM> and by invoking data stored in the memory <NUM>, to overall monitor the electronic device. The processor <NUM> may include one or more processing units. Optionally, an application processor and a modem processor may be integrated into the processor <NUM>. The application processor mainly processes an operating system, a user interface, an application program, and the like. The modem processor mainly processes wireless communications. It can be understood that, alternatively, the modem processor may not be integrated into the processor <NUM>.

The electronic device <NUM> may further include the power supply <NUM> (such as a battery) that supplies power to each component. Optionally, the power supply <NUM> may be logically connected to the processor <NUM> by using a power supply management system, so as to implement functions such as charging and discharging management, and power consumption management by using the power supply management system.

In addition, the electronic device <NUM> includes some function modules not shown, and details are not described herein.

Optionally, a non-claimed embodiment of the present disclosure further provides an electronic device, including a processor <NUM>, a memory <NUM>, and a computer program that is stored in the memory <NUM> and that can be run on the processor <NUM>. When the computer program is executed by the processor <NUM>, the processes of the foregoing object position adjustment method embodiment are implemented and a same technical effect can be achieved. To avoid repetition, details are not described herein again.

A non-claimed embodiment of the present disclosure further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when executing the computer program, a processor implements the processes of the foregoing object position adjustment method embodiment and a same technical effect can be achieved. To avoid repetition, details are not described herein again. The computer-readable storage medium includes a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disc.

A non-claimed embodiment of the present disclosure further provides an electronic device, including:.

A non-claimed embodiment of the present disclosure further provides a computer non-transitory storage medium. The computer non-transitory storage medium stores a computer program, and when the computer program is executed by a computing device, the steps of the foregoing object position adjustment method are implemented.

A non-claimed embodiment of the present disclosure further provides a computer program product. When running on a computer, the computer program product enables the computer to perform the steps of the foregoing object position adjustment method.

It should be noted that, in this specification, the terms "include", "comprise", or their any other variant is intended to cover a non-exclusive inclusion, so that a process, a method, an article, or an apparatus that includes a list of elements not only includes those elements but also includes other elements which are not expressly listed, or further includes elements inherent to such process, method, article, or apparatus. An element limited by "including a. " does not, without more constraints, preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

Based on the descriptions of the foregoing implementations, a person skilled in the art may clearly understand that the method in the foregoing embodiment may be implemented by software in addition to a necessary universal hardware platform or by hardware only. In most circumstances, the former is a preferred implementation. Based on such an understanding, the technical solutions of the present disclosure essentially or the part contributing to the prior art may be implemented in a form of a software product. The computer software product is stored in a storage medium (such as a ROM/RAM, a hard disk, or an optical disc), and includes several instructions for instructing an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, a network device, or the like) to perform the methods in the embodiments of the present disclosure.

Claim 1:
An object position adjustment method, comprising:
receiving (<NUM>) a first input performed by a user;
marking (<NUM>) a first object by using a first mark in response to the first input;
receiving (<NUM>) a second input performed by the user; and
switching (<NUM>) positions of the first object and a second object in response to the second input, wherein
the second object is marked by using a second mark;
characterized in that the switching (<NUM>) positions of the first object and a second object in response to the second input comprises:
obtaining a third input feature of the second input; and
marking the second object by using the second mark based on the third input feature, and switching the positions of the first object and the second object in a case that the second mark matches the first mark;
or,
obtaining a fourth input feature of the second input;
marking the second object by using the second mark based on the fourth input feature;
receiving a fourth input performed by the user; and
switching the positions of the first object and the second object in response to the fourth input in a case that the first mark matches the second mark.