CN110851029A - Method, device, terminal and storage medium for interchanging application icons - Google Patents

Method, device, terminal and storage medium for interchanging application icons Download PDF

Info

Publication number
CN110851029A
CN110851029A CN201910913229.7A CN201910913229A CN110851029A CN 110851029 A CN110851029 A CN 110851029A CN 201910913229 A CN201910913229 A CN 201910913229A CN 110851029 A CN110851029 A CN 110851029A
Authority
CN
China
Prior art keywords
position information
application icons
interchange
sliding
exchanging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910913229.7A
Other languages
Chinese (zh)
Other versions
CN110851029B (en
Inventor
罗时益
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910913229.7A priority Critical patent/CN110851029B/en
Publication of CN110851029A publication Critical patent/CN110851029A/en
Application granted granted Critical
Publication of CN110851029B publication Critical patent/CN110851029B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The invention relates to the technical field of electronic equipment, in particular to a method, a device, a terminal and a storage medium for interchanging application icons, wherein the method is applied to the terminal and comprises the following steps: if the operation that a user clicks two application icons is detected, acquiring the position information of the two application icons; judging whether the two application icons are in the same row or the same column according to the position information of the two application icons; and if the position information of the target application icon is in the same row or the same column, determining the target application icon needing position information interchange and the interchange rule of the position information, interchanging the position information of the target application icon according to the interchange rule, and finally displaying according to the interchanged position information. By using the method of the invention, all the application icons in two rows or two columns can be directly replaced, and the user does not need to exchange the application icons in sequence, thereby simplifying the operation steps and improving the experience of the user.

Description

Method, device, terminal and storage medium for interchanging application icons
Technical Field
The present invention relates to the field of electronic device technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for exchanging application icons.
Background
At present, with the continuous development of the related technologies of electronic devices, more and more application programs are stored in the electronic devices of users, when a user opens an operation desktop of the electronic device, the user finds that various application icons are listed on a screen of the electronic device, and the user habitually adjusts the positions of the application icons, so that the electronic device is convenient to use.
For example, if a user wants to interchange application icons of two rows on an operating desktop, the user first needs to interchange a first pair of application icons in the two rows, and the interchange process is as follows: and respectively pressing the two application icons in the pair, then exchanging the positions of the two application icons, and so on, and finally finishing the complete exchange of the application icons in two rows or columns.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a terminal and a storage medium for exchanging application icons, which can realize fast exchange of two rows or two columns of application icons, and have the advantages of simple and convenient operation and improved user experience.
(II) technical scheme
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a method for exchanging application icons, where the method is applied to a terminal, and the method includes:
if the operation that a user clicks two application icons is detected, acquiring the position information of the two application icons;
judging whether the two application icons are in the same row or the same column according to the position information of the two application icons;
and if the position information of the target application icon is in the same row or the same column, determining the target application icon needing position information interchange and the interchange rule of the position information, interchanging the position information of the target application icon according to the interchange rule, and finally displaying according to the interchanged position information.
Optionally, if the icons are in the same row or the same column, determining a target application icon that needs to be subjected to position information interchange and an interchange rule of position information, interchanging the position information of the target application icon according to the interchange rule, and finally displaying according to the interchanged position information, where the method includes:
if the two application icons are in the same row, exchanging the position information of the application icons with the same vertical coordinate in the column of the two application icons in the operation desktop database of the terminal, and displaying according to the exchanged position information;
and if the two application icons are in the same column, interchanging the position information of the application icons with the same abscissa in the row where the two application icons are located in the operation desktop database of the terminal, and displaying according to the interchanged position information.
Optionally, the method further includes:
if the two application icons are not in the same row and the same column, detecting whether a sliding operation exists;
if the position information exists, determining a target application icon needing position information interchange and an interchange rule of the position information according to the direction of the sliding operation, and interchanging the position information of the target application icon according to the interchange rule.
Optionally, determining, according to the direction of the sliding operation, a target application icon whose position information needs to be interchanged and an interchange rule of position information, and interchanging the position information of the target application icon according to the interchange rule, including:
and if the sliding operation direction is the horizontal direction, interchanging the position information of the application icons with the same vertical coordinate in the column of the two application icons in the operation desktop database of the terminal, and updating the operation desktop.
Optionally, determining, according to the direction of the sliding operation, a target application icon whose position information needs to be interchanged and an interchange rule of position information, and interchanging the position information of the target application icon according to the interchange rule, including:
and if the sliding operation direction is the vertical direction, interchanging the position information of the application icons with the same horizontal coordinates in the row where the two application icons are located in the operation desktop database of the terminal, and updating the operation desktop.
Optionally, detecting whether there is a sliding operation includes:
acquiring the current sliding distance and the sliding direction;
if the current sliding distance is larger than or equal to a preset distance threshold value and the sliding component in the horizontal direction is larger than the sliding component in the vertical direction, determining that sliding operation in the horizontal direction exists;
and if the current sliding distance is larger than or equal to a preset distance threshold value and the sliding component in the vertical direction is larger than the sliding component in the horizontal direction, determining that the sliding operation in the vertical direction exists.
In order to achieve the above object, a second embodiment of the present invention provides an apparatus for exchanging application icons, the apparatus being applied to a terminal, and the apparatus including:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the position information of two application icons if the operation that a user clicks the two application icons is detected;
the first interchange module is used for judging whether the two application icons are in the same row or the same column according to the position information of the two application icons;
and if the position information of the target application icon is in the same row or the same column, determining the target application icon needing position information interchange and the interchange rule of the position information, interchanging the position information of the target application icon according to the interchange rule, and finally displaying according to the interchanged position information.
Optionally, the first exchanging module is specifically configured to:
if the two application icons are in the same row, exchanging the position information of the application icons with the same vertical coordinate in the column of the two application icons in the operation desktop database of the terminal, and displaying according to the exchanged position information;
and if the two application icons are in the same column, interchanging the position information of the application icons with the same abscissa in the row where the two application icons are located in the operation desktop database of the terminal, and displaying according to the interchanged position information.
Optionally, the apparatus further comprises:
the detection module is used for detecting whether the sliding operation exists or not if the two application icons are not in the same row and the same column;
and the second interchange module is used for determining a target application icon needing position information interchange and an interchange rule of position information according to the direction of the sliding operation if the position information interchange exists, and interchanging the position information of the target application icon according to the interchange rule.
Optionally, the second interchange module is specifically configured to:
and if the sliding operation direction is the horizontal direction, interchanging the position information of the application icons with the same vertical coordinate in the column of the two application icons in the operation desktop database of the terminal, and updating the operation desktop.
Optionally, the second interchange module is specifically configured to:
and if the sliding operation direction is the vertical direction, interchanging the position information of the application icons with the same horizontal coordinates in the row where the two application icons are located in the operation desktop database of the terminal, and updating the operation desktop.
Optionally, the detection module includes:
the acquisition unit is used for acquiring the current sliding distance and the sliding direction;
the first determining unit is used for determining that sliding operation in the horizontal direction exists if the current sliding distance is larger than or equal to a preset distance threshold value and the sliding component in the horizontal direction is larger than the sliding component in the vertical direction;
and the second determining unit is used for determining that the sliding operation in the vertical direction exists if the current sliding distance is greater than or equal to a preset distance threshold and the sliding component in the vertical direction is greater than the sliding component in the horizontal direction.
In order to achieve the above object, a third embodiment of the present invention provides a terminal, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; the memory stores a computer program operable on the processor, and the processor implements the steps of the method when executing the computer program.
In order to achieve the above object, a fourth aspect of the present invention provides a storage medium having a computer program stored therein, wherein the computer program is configured to perform the above method when running.
(III) the beneficial effects are as follows:
compared with the prior art, the technical scheme provided by the embodiment of the invention has the following advantages:
the embodiment of the invention provides a method, a device, a terminal and a storage medium for application icon interchange, wherein the method is applied to the terminal and comprises the following steps: if the operation that a user clicks two application icons is detected, acquiring the position information of the two application icons; judging whether the two application icons are in the same row or the same column according to the position information of the two application icons; and if the position information of the target application icon is in the same row or the same column, determining the target application icon needing position information interchange and the interchange rule of the position information, interchanging the position information of the target application icon according to the interchange rule, and finally displaying according to the interchanged position information. By using the method of the invention, all the application icons in two rows or two columns can be directly replaced, and the user does not need to exchange the application icons in sequence, thereby simplifying the operation steps and improving the experience of the user.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart illustrating an embodiment of a method for exchanging application icons according to an embodiment of the present invention;
FIG. 2 is a diagram of an application scenario before and after a change in one embodiment of FIG. 1;
FIG. 3 is a diagram of an application scenario before and after a change in another embodiment of FIG. 1;
fig. 4 is a flowchart illustrating another embodiment of a method for exchanging application icons according to an embodiment of the present invention;
FIG. 5 is a diagram of an application scenario before and after a change in one embodiment of FIG. 4;
FIG. 6 is a diagram of an application scenario before and after a change in another embodiment of FIG. 4;
fig. 7 is a block diagram of a terminal according to an embodiment of the present invention;
FIG. 8 is a block diagram illustrating an exemplary embodiment of an apparatus for exchanging application icons according to an embodiment of the present invention;
fig. 9 is a block diagram illustrating another embodiment of an apparatus for exchanging application icons according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The invention is described in further detail below with reference to the attached drawing figures and the detailed description:
fig. 1 is a schematic flowchart illustrating an embodiment of a method for exchanging application icons according to an embodiment of the present invention;
FIG. 2 is a diagram of an application scenario before and after a change in one embodiment of FIG. 1;
FIG. 3 is a diagram of an application scenario before and after a change in another embodiment of FIG. 1;
for example, if a user wants to interchange application icons of two rows on an operating desktop, the user first needs to interchange a first pair of application icons in the two rows, and the interchange process is as follows: and respectively pressing the two application icons in the pair, then exchanging the positions of the two application icons, and so on, and finally finishing the complete exchange of the application icons in two rows or columns.
For this reason, the embodiment of the present invention provides a method for exchanging application icons, where the method is applied to a terminal, where the terminal may be set as a device, a mobile phone, a tablet computer, and the like, and for convenience of description, the mobile phone is taken as an example, and it is to be noted that, in this scheme, corresponding steps may be replaced with each other without conflict; as shown in fig. 1, 2 and 3, the method for exchanging application icons may include the following steps:
step S101, if the operation that a user clicks two application icons is detected, position information of the two application icons is obtained;
the position information includes abscissa information and ordinate information.
Step S102, judging whether the two application icons are in the same row or the same column according to the position information of the two application icons;
the same row means that the abscissa in the position information of the two application icons is the same, and the same column means that the ordinate in the position information of the two application icons is the same.
And if the position information of the target application icon is in the same row or the same column, determining the target application icon needing position information interchange and the interchange rule of the position information, interchanging the position information of the target application icon according to the interchange rule, and finally displaying according to the interchanged position information. By using the method of the invention, all the application icons in two rows or two columns can be directly replaced, and the user does not need to exchange the application icons in sequence, thereby simplifying the operation steps and improving the experience of the user.
In one embodiment of the present invention;
step S103, if the application icons are in the same row, interchanging the position information of the application icons with the same vertical coordinate in the column of the two application icons in the operation desktop database of the terminal, and displaying the application icons according to the interchanged position information;
specifically, as shown in fig. 2, if the user wants to interchange all the application icons in two columns, the user can click two application icons in the same row, and the specific process is as follows: for example, when a user clicks "calendar" and "contact", the terminal first judges the position information of "calendar" and "contact" on the terminal display desktop, and when it is detected that the abscissa of the two icons is the same, it is judged that the two application icons are in the same row, so that the position information of the application icons with the same ordinate is exchanged in the columns of "calendar" and "contact" in the operation desktop database of the terminal, that is: and the positions of the calendar and the contact person are exchanged, the positions of the telephone and the browser are exchanged, all icon information in the column is exchanged in the same way, and the display desktop of the terminal is refreshed, so that the exchange operation is finished.
Similarly, in step S104, if the two application icons are in the same column, the position information of the application icon with the same abscissa in the row where the two application icons are located in the operation desktop database of the terminal is exchanged, and the position information is displayed according to the exchanged position information.
Specifically, as shown in fig. 3, if the user wants to interchange all the application icons in two rows, the user can click two application icons in the same column, and the specific process is as follows: for example, when a user clicks "camera" and "short message", a server of the terminal first determines position information of the "camera" and the "short message" on a display desktop of the terminal, and when it is detected that vertical coordinates of the two icons are the same, it is determined that the two application icons are in the same column, so that position information of the application icons with the same horizontal coordinates in an operation desktop database of the terminal is interchanged, that is: the positions of a calendar and a telephone are exchanged, the positions of a contact and a browser are exchanged, the positions of a camera and a short message are exchanged, the positions of a setting and a weather are exchanged, all icon information of a line is exchanged by analogy, and meanwhile, a display desktop of the terminal is refreshed, so that the exchange operation is completed.
Fig. 4 is a flowchart illustrating another embodiment of a method for exchanging application icons according to an embodiment of the present invention;
FIG. 5 is a diagram of an application scenario before and after a change in the embodiment of FIG. 4;
FIG. 6 is a diagram of an application scenario before and after a change in another embodiment of FIG. 4;
in yet another embodiment of the present application, as shown in fig. 4, 5 and 6;
step S201, if the two application icons are not in the same row and not in the same column, detecting whether a sliding operation exists;
the method comprises the following specific steps:
acquiring the current sliding distance and the sliding direction;
firstly, a point where a user initially clicks an application icon is used as a first pixel point, and a point where sliding is finished and stays is used as a second pixel point, so that the sliding distance refers to the distance from the first pixel point to the second pixel point; the sliding direction refers to the direction of the second pixel point deviating from the first pixel point;
specifically, if the current sliding distance is greater than or equal to a preset distance threshold and the sliding component in the horizontal direction is greater than the sliding component in the vertical direction, it is determined that a sliding operation in the horizontal direction exists;
the preset distance threshold is 10 pixels, and certainly, the preset distance threshold can also be set in a self-defined manner in advance according to needs.
And if the current sliding distance is greater than or equal to the preset distance threshold value and the sliding component in the vertical direction is greater than the sliding component in the horizontal direction, determining that the sliding operation in the vertical direction exists.
If the position information exists, the target application icon needing position information interchange and the interchange rule of the position information are determined according to the direction of the sliding operation, and the position information of the target application icon is interchanged according to the interchange rule.
Specifically, the method comprises the following steps:
step S202, if the sliding operation direction is the horizontal direction, exchanging the position information of the application icons with the same vertical coordinate in the column where the two application icons are located in the operation desktop database of the terminal, and updating the operation desktop.
Specifically, as shown in fig. 5, if the user wants to interchange all the application icons in two columns, the user can also click on two application icons in different rows and different columns, which includes the following steps: for example, first, the user clicks "contact" and "weather", and then both fingers of the user have sliding operation along the horizontal direction, wherein the "contact" can move along the direction close to the "camera" or move away from the "camera", and the "weather" can move along the direction close to the "short message" or move away from the "short message"; when the terminal detects the sliding operation, the position information of the application icons with the same ordinate is exchanged in the columns in which the "contact" and the "weather" in the operation desktop database of the terminal are respectively located, for example: and the positions of the contact person and the setting are exchanged, the positions of the browser and the weather are exchanged, all icon information in the column is exchanged in the same way, and the display desktop of the terminal is refreshed, so that the exchange operation is finished.
Step S203, if the direction of the sliding operation is the vertical direction, exchanging the position information of the application icons with the same abscissa in the row where the two application icons are located in the operation desktop database of the terminal, and updating the operation desktop.
Specifically, as shown in fig. 6, for example, first, the user clicks "contact" and "weather", and then both fingers of the user have a sliding operation in the vertical direction, where the "contact" may move in a direction close to the "browser" or in a direction away from the "browser", and the "weather" may move in a direction close to the "setting" or in a direction away from the "setting"; when the terminal detects the sliding operation, the position information of the application icons with the same abscissa in the rows where the "contact" and the "weather" in the operation desktop database of the terminal are respectively located is exchanged, for example: the positions of a calendar and a telephone are exchanged, the positions of a contact person and a browser are exchanged, the positions of a camera and a short message are exchanged, the positions of a setting and a weather are exchanged, all icon information in a column is exchanged by analogy, and meanwhile, a display desktop of the terminal is refreshed, so that the exchange operation is completed.
Fig. 7 is a structural diagram of a terminal according to an embodiment of the present invention;
as shown in fig. 7, a terminal provided in an embodiment of the present invention includes: the system comprises a processor 5, a communication interface 6, a memory 7 and a communication bus 8, wherein the processor 5, the communication interface 6 and the memory 7 are communicated with each other through the communication bus 8; the memory 7 stores a computer program operable on the processor 5, and the processor 5 implements the steps of the method described above when executing the computer program.
An embodiment of the present invention provides a storage medium, in which a computer program is stored, where the computer program is configured to execute the above method when running.
FIG. 8 is a block diagram illustrating an exemplary embodiment of an apparatus for exchanging application icons according to an embodiment of the present invention;
as shown in fig. 8, an embodiment of the present invention provides an apparatus for exchanging application icons, where the apparatus is applied to a terminal, and the apparatus includes:
the acquisition module 1 is used for acquiring the position information of the two application icons if the operation that the user clicks the two application icons is detected;
the first interchange module 2 is used for judging whether the two application icons are in the same row or the same column according to the position information of the two application icons;
and if the position information of the target application icon is in the same row or the same column, determining the target application icon needing position information interchange and the interchange rule of the position information, interchanging the position information of the target application icon according to the interchange rule, and finally displaying according to the interchanged position information.
In an embodiment of the present invention, the first interchange module 2 is specifically configured to:
if the application icons are in the same row, exchanging the position information of the application icons with the same vertical coordinate in the column where the two application icons are located in the operation desktop database of the terminal, and displaying according to the exchanged position information;
and if the two application icons are in the same column, interchanging the position information of the application icons with the same abscissa in the row of the two application icons in the operation desktop database of the terminal, and displaying according to the interchanged position information.
Fig. 9 is a block diagram illustrating another embodiment of an apparatus for exchanging application icons according to an embodiment of the present invention.
As shown in fig. 9, in another embodiment of the present invention, if the two application icons are not in the same row and not in the same column, the apparatus further includes:
the detection module 3 is used for detecting whether the sliding operation exists or not;
wherein, detection module 3 includes:
the acquisition unit is used for acquiring the current sliding distance and the sliding direction;
the first determining unit is used for determining that sliding operation in the horizontal direction exists if the current sliding distance is larger than or equal to a preset distance threshold value and the sliding component in the horizontal direction is larger than the sliding component in the vertical direction;
and the second determining unit is used for determining that the sliding operation in the vertical direction exists if the current sliding distance is greater than or equal to the preset distance threshold and the sliding component in the vertical direction is greater than the sliding component in the horizontal direction.
And the second interchange module 4 is used for determining a target application icon which needs to be subjected to position information interchange and an interchange rule of the position information according to the direction of the sliding operation if the position information exists, and interchanging the position information of the target application icon according to the interchange rule.
In one embodiment of the present invention, the second interchange module 4 is specifically configured to:
and if the sliding operation direction is the horizontal direction, interchanging the position information of the application icons with the same vertical coordinate in the column of the two application icons in the operation desktop database of the terminal, and updating the operation desktop.
In another embodiment of the present invention, the second interchange module 4 is specifically configured to:
and if the sliding operation direction is the vertical direction, interchanging the position information of the application icons with the same horizontal coordinate in the row where the two application icons are located in the operation desktop database of the terminal, and updating the operation desktop.
The communication bus 8 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 81140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The communication interface 6 is used for communication between the above-described electronic apparatus and other apparatuses.
The memory 7 may include a random access memory 7 (RAM), or may also include a non-volatile memory 7(non-volatile memory), such as at least one disk memory 7. Alternatively, the memory 7 may be at least one memory device located remotely from the processor 5.
The processor 5 may be a general-purpose processor 5, and includes a central processing unit 5 (CPU), a network processor 5 (NP), and the like; the device may also be a digital signal processor 5 (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (ssd)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (14)

1. A method for exchanging application icons is applied to a terminal, and the method comprises the following steps:
if the operation that a user clicks two application icons is detected, acquiring the position information of the two application icons;
judging whether the two application icons are in the same row or the same column according to the position information of the two application icons;
and if the position information of the target application icon is in the same row or the same column, determining the target application icon needing position information interchange and the interchange rule of the position information, interchanging the position information of the target application icon according to the interchange rule, and finally displaying according to the interchanged position information.
2. The method of claim 1, wherein if the icons are in the same row or the same column, determining a target icon to be interchanged in position information and an interchange rule of position information, interchanging the position information of the target icon according to the interchange rule, and finally displaying the icon according to the interchanged position information, comprises:
if the two application icons are in the same row, exchanging the position information of the application icons with the same vertical coordinate in the column of the two application icons in the operation desktop database of the terminal, and displaying according to the exchanged position information;
and if the two application icons are in the same column, interchanging the position information of the application icons with the same abscissa in the row where the two application icons are located in the operation desktop database of the terminal, and displaying according to the interchanged position information.
3. The method for exchanging application icons according to claim 2, further comprising:
if the two application icons are not in the same row and the same column, detecting whether a sliding operation exists;
if the position information exists, determining a target application icon needing position information interchange and an interchange rule of the position information according to the direction of the sliding operation, and interchanging the position information of the target application icon according to the interchange rule.
4. The method for exchanging application icons according to claim 3, wherein the determining a target application icon whose position information is exchanged and an exchange rule of position information according to the direction of the sliding operation, and exchanging the position information of the target application icon according to the exchange rule comprises:
and if the sliding operation direction is the horizontal direction, interchanging the position information of the application icons with the same vertical coordinate in the column of the two application icons in the operation desktop database of the terminal, and updating the operation desktop.
5. The method for exchanging application icons according to claim 3, wherein the determining a target application icon whose position information is exchanged and an exchange rule of position information according to the direction of the sliding operation, and exchanging the position information of the target application icon according to the exchange rule comprises:
and if the sliding operation direction is the vertical direction, interchanging the position information of the application icons with the same horizontal coordinates in the row where the two application icons are located in the operation desktop database of the terminal, and updating the operation desktop.
6. The method for exchanging application icons according to claim 3, wherein detecting whether a sliding operation exists comprises:
acquiring the current sliding distance and the sliding direction;
if the current sliding distance is larger than or equal to a preset distance threshold value and the sliding component in the horizontal direction is larger than the sliding component in the vertical direction, determining that sliding operation in the horizontal direction exists;
and if the current sliding distance is larger than or equal to a preset distance threshold value and the sliding component in the vertical direction is larger than the sliding component in the horizontal direction, determining that the sliding operation in the vertical direction exists.
7. An apparatus for exchanging application icons, the apparatus being applied to a terminal, the apparatus comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the position information of two application icons if the operation that a user clicks the two application icons is detected;
the first interchange module is used for judging whether the two application icons are in the same row or the same column according to the position information of the two application icons;
and if the position information of the target application icon is in the same row or the same column, determining the target application icon needing position information interchange and the interchange rule of the position information, interchanging the position information of the target application icon according to the interchange rule, and finally displaying according to the interchanged position information.
8. The apparatus for exchanging application icons according to claim 7, wherein the first exchanging module is specifically configured to:
if the two application icons are in the same row, exchanging the position information of the application icons with the same vertical coordinate in the column of the two application icons in the operation desktop database of the terminal, and displaying according to the exchanged position information;
and if the two application icons are in the same column, interchanging the position information of the application icons with the same abscissa in the row where the two application icons are located in the operation desktop database of the terminal, and displaying according to the interchanged position information.
9. The apparatus for exchanging application icons according to claim 8, further comprising:
the detection module is used for detecting whether the sliding operation exists or not if the two application icons are not in the same row and the same column;
and the second interchange module is used for determining a target application icon needing position information interchange and an interchange rule of position information according to the direction of the sliding operation if the position information interchange exists, and interchanging the position information of the target application icon according to the interchange rule.
10. The apparatus for exchanging application icons according to claim 9, wherein the second exchanging module is specifically configured to:
and if the sliding operation direction is the horizontal direction, interchanging the position information of the application icons with the same vertical coordinate in the column of the two application icons in the operation desktop database of the terminal, and updating the operation desktop.
11. The apparatus for exchanging application icons according to claim 9, wherein the second exchanging module is specifically configured to:
and if the sliding operation direction is the vertical direction, interchanging the position information of the application icons with the same horizontal coordinates in the row where the two application icons are located in the operation desktop database of the terminal, and updating the operation desktop.
12. The apparatus for exchanging application icons according to claim 9, wherein the detecting module comprises:
the acquisition unit is used for acquiring the current sliding distance and the sliding direction;
the first determining unit is used for determining that sliding operation in the horizontal direction exists if the current sliding distance is larger than or equal to a preset distance threshold value and the sliding component in the horizontal direction is larger than the sliding component in the vertical direction;
and the second determining unit is used for determining that the sliding operation in the vertical direction exists if the current sliding distance is greater than or equal to a preset distance threshold and the sliding component in the vertical direction is greater than the sliding component in the horizontal direction.
13. A terminal, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; stored in the memory is a computer program that can be run on the processor, characterized in that the steps of the method according to any of the preceding claims 1 to 6 are implemented when the computer program is executed by the processor.
14. A storage medium having a computer program stored thereon, wherein the computer program is arranged to, when executed, perform the method of any of claims 1 to 6.
CN201910913229.7A 2019-09-25 2019-09-25 Method, device, terminal and storage medium for interchanging application icons Active CN110851029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910913229.7A CN110851029B (en) 2019-09-25 2019-09-25 Method, device, terminal and storage medium for interchanging application icons

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910913229.7A CN110851029B (en) 2019-09-25 2019-09-25 Method, device, terminal and storage medium for interchanging application icons

Publications (2)

Publication Number Publication Date
CN110851029A true CN110851029A (en) 2020-02-28
CN110851029B CN110851029B (en) 2021-03-16

Family

ID=69595936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910913229.7A Active CN110851029B (en) 2019-09-25 2019-09-25 Method, device, terminal and storage medium for interchanging application icons

Country Status (1)

Country Link
CN (1) CN110851029B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126843A (en) * 2021-04-19 2021-07-16 北京小米移动软件有限公司 Method, device and storage medium for exchanging application icon positions

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631440A (en) * 2013-11-18 2014-03-12 上海斐讯数据通信技术有限公司 Method for adjusting positions of desktop icons and mobile terminal
CN104516673A (en) * 2014-12-09 2015-04-15 厦门美图移动科技有限公司 Icon display method, equipment and mobile terminal
KR20160017535A (en) * 2014-08-06 2016-02-16 인포뱅크 주식회사 Mobile communication terminal for changing app icon position according to place and the app program stored in medium for executing the method
KR20160020744A (en) * 2014-08-14 2016-02-24 인포뱅크 주식회사 Mobile communication terminal for changing app icon position according to receiving push message and the app program stored in medium for executing the method
CN105843480A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Desktop icon adjustment method and apparatus
CN107203307A (en) * 2017-05-19 2017-09-26 维沃移动通信有限公司 A kind of icon management method and mobile terminal
CN109164961A (en) * 2018-08-10 2019-01-08 珠海格力电器股份有限公司 A kind of method and device of mobile application icon

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631440A (en) * 2013-11-18 2014-03-12 上海斐讯数据通信技术有限公司 Method for adjusting positions of desktop icons and mobile terminal
KR20160017535A (en) * 2014-08-06 2016-02-16 인포뱅크 주식회사 Mobile communication terminal for changing app icon position according to place and the app program stored in medium for executing the method
KR20160020744A (en) * 2014-08-14 2016-02-24 인포뱅크 주식회사 Mobile communication terminal for changing app icon position according to receiving push message and the app program stored in medium for executing the method
CN104516673A (en) * 2014-12-09 2015-04-15 厦门美图移动科技有限公司 Icon display method, equipment and mobile terminal
CN105843480A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Desktop icon adjustment method and apparatus
CN107203307A (en) * 2017-05-19 2017-09-26 维沃移动通信有限公司 A kind of icon management method and mobile terminal
CN109164961A (en) * 2018-08-10 2019-01-08 珠海格力电器股份有限公司 A kind of method and device of mobile application icon

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113126843A (en) * 2021-04-19 2021-07-16 北京小米移动软件有限公司 Method, device and storage medium for exchanging application icon positions

Also Published As

Publication number Publication date
CN110851029B (en) 2021-03-16

Similar Documents

Publication Publication Date Title
US11393017B2 (en) Two-dimensional code identification method and device, and mobile terminal
CN103262015B (en) To receiving the Apparatus and method for that the Scale command responds
CN109144392B (en) Method and device for processing gesture conflict and electronic equipment
CN107153546B (en) Video playing method and mobile device
CN104778007A (en) Screen capturing method and screen capturing device
EP4044008A1 (en) Target object display method and apparatus, electronic device, and computer-readable medium
CN106648281B (en) Screenshot method and device
CN109240591B (en) Interface display method and device
CN110989877B (en) Message management method, related equipment and computer readable storage medium
CN110851029B (en) Method, device, terminal and storage medium for interchanging application icons
CN111966273A (en) Information display processing method and device
CN110825303A (en) Interaction method, device, terminal and computer readable medium
CN114265653A (en) Interface display method, device, equipment, storage medium and program product
CN111143731B (en) Display method and device for webpage interface zooming and terminal equipment
US20220374144A1 (en) Target object display method and apparatus, electronic device and non-transitory computer-readable medium
CN110955480B (en) View display method and device
CN111274513B (en) Window display method, device, terminal and storage medium
CN110427135B (en) Method, device, terminal and storage medium for determining application call
CN111506185B (en) Method, device, electronic equipment and storage medium for operating document
CN108363525B (en) Method and device for responding to user gesture operation in webpage and terminal equipment
CN111580662A (en) View scrolling control method and device, electronic equipment and storage medium
CN111767206A (en) Statistical method and device for content unit exposure presentation rate and electronic equipment
JP6520674B2 (en) Display system, display terminal, display method, and display program
CN105511795A (en) Method for operating user interface and mobile terminal
CN111786934A (en) Method and device for detecting normal user of client

Legal Events

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