Background
At present, mobile terminals are more and more compact with people's life, and smart phones, tablet computers and the like are seen everywhere in daily life. With the development of various application software, the functions of the mobile terminal are more and more powerful, and the hardware performance of the mobile terminal is more and more high for the good operation of the device and for improving the experience and feeling of the user, wherein one of the prominent manifestations is that the screen size of the mobile terminal is more and more large, so that more contents can be accommodated.
As the screen size becomes larger, icons that can be arranged on the desktop of the mobile terminal increase significantly, and when the screen size exceeds a certain size, for example, when a user operates the mobile terminal with a screen larger than 5 inches, if the user wants to click on an application above the screen, only the hand holding the mobile terminal can be moved upward, or both hands have to be used together to assist in completing the operation with the other hand, so that the convenience of one-hand operation is lost.
However, in some cases, such as when a user holds the handle with one hand, holds the object with one hand, or eats a meal, etc., the user can only operate the mobile terminal with one hand. Because the range that can be reached by one-handed operation is limited, it is very important to reasonably adjust the position of the desktop icon of the mobile terminal so that the user can operate the desktop icon quickly.
In the published patent literature, chinese patent CN104571827A discloses "an icon arrangement adjustment method and a mobile terminal", wherein a user can adjust the arrangement of icons on a screen by shaking the terminal, and can define different shaking directions corresponding to different arrangements; chinese patent CN104345887A discloses a method and apparatus for adjusting the position of desktop icons, which divides the desktop into regions, adjusts the positions of the region distribution according to the user's instructions, and adjusts the positions of the icons in the region accordingly, so that the icons outside the single-hand operation range are adjusted to be within the single-hand operation range; chinese patent CN103324414A discloses "a method and a mobile terminal for adjusting icon position", which adjusts the position of an icon according to the type of sliding operation of a user, the sliding direction, etc., and can move multiple icons at a time to adjust the icon position.
However, the above conventional method for adjusting the position of the desktop icon of the mobile terminal mainly has the following disadvantages:
1) the method for adjusting the position of the icon by shaking the terminal is suitable for left-hand and right-hand operation, but cannot solve the problem of completely operating the icon by one hand.
2) The desktop icons are divided into areas, and the icons are rotated clockwise or anticlockwise according to gesture actions, so that the problem of one-hand operation of a user can be solved, but the adjusted icons can only be rotated and cannot be adjusted in place in one step.
3) The position of the icon and the row or column of the icon can be adjusted according to the gesture action, so that the problem of adjusting the positions of the icons in a single row or a single column can be solved, the problem of adjusting the positions of all the icons on the desktop of the mobile terminal cannot be solved, and the operation is inconvenient by a single hand.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a method and an apparatus for adjusting a desktop icon, which can conveniently and effectively operate a large-screen mobile terminal without moving with one hand, and improve the use and experience of the mobile terminal, thereby achieving the effect of one-hand operation.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a desktop icon adjusting method, which is characterized in that a floating window is preset, and corresponding relations between different moving directions of the floating window and different desktop icon adjusting modes are preset; the method further comprises the following steps:
identifying the moving direction of the floating window according to the operation on the floating window;
and determining an adjustment mode of the desktop icon according to the identified moving direction of the floating window and the corresponding relation, and starting a corresponding adjustment method to adjust the desktop icon according to the determined adjustment mode.
In the above solution, the moving direction of the floating window includes: left, right, up, down, left up, left down, right up, right down.
In the above scheme, the adjusting method includes: and exchanging icons in two side areas of the datum line on the desktop by taking the transverse center line, the longitudinal center line or the diagonal line of the desktop as the datum line.
In the foregoing solution, the determining an adjustment manner of the desktop icon according to the identified moving direction of the floating window and the corresponding relationship, and starting a corresponding adjustment method to adjust the desktop icon according to the determined adjustment manner includes:
respectively calculating absolute distances of movement along the direction of a transverse axis and the direction of a longitudinal axis according to the initial position coordinate and the end position coordinate of the dragging floating window, and comparing the absolute distances;
when the ratio of the smaller absolute distance to the larger absolute distance in the two is smaller than 1/10, if the current floating window moves horizontally leftwards or rightwards, the longitudinal center line of the desktop is used as the reference line, and the corresponding columns of the icons in the two side areas of the reference line on the desktop are interchanged; if the current floating window moves upwards or downwards longitudinally, the horizontal center line of the desktop is used as a reference line, and corresponding rows of icons in two side areas of the reference line on the desktop are exchanged; otherwise, the diagonal line of the desktop is taken as a reference line, the corresponding columns of the icons in the two side areas of the reference line on the desktop are exchanged, and then the corresponding rows of the icons in the two side areas of the reference line on the desktop are exchanged.
In the scheme, the floating window is circular or square, and the size of the floating window is fit with that of a fingertip.
The embodiment of the invention also provides a desktop icon adjusting device, which comprises:
the device comprises a setting module, a display module and a display module, wherein the setting module is used for presetting a floating window and corresponding relations between different moving directions of the floating window and different adjustment modes of desktop icons;
the identification module is used for identifying the moving direction of the floating window according to the operation on the floating window;
and the adjusting module is used for determining an adjusting mode of the desktop icon according to the identified moving direction of the floating window and the corresponding relation, and starting a corresponding adjusting method to adjust the desktop icon according to the determined adjusting mode.
In the above solution, the moving direction of the floating window includes: left, right, up, down, left up, left down, right up, right down.
In the above solution, the adjustment mode applied by the adjustment module includes: and exchanging icons in two side areas of the datum line on the desktop by taking the transverse center line, the longitudinal center line or the diagonal line of the desktop as the datum line.
In the above scheme, the adjusting module determines an adjusting manner of the desktop icon according to the identified moving direction of the floating window and the corresponding relationship, and starts a corresponding adjusting method to adjust the desktop icon according to the determined adjusting manner, including:
respectively calculating absolute distances of movement along the direction of a transverse axis and the direction of a longitudinal axis according to the initial position coordinate and the end position coordinate of the dragging floating window, and comparing the absolute distances;
when the ratio of the smaller absolute distance to the larger absolute distance in the two is smaller than 1/10, if the current floating window moves transversely leftwards or rightwards, the longitudinal center line of the desktop is used as the reference line, the corresponding columns of the icons in the two side areas of the reference line on the desktop are exchanged, and if the current floating window moves longitudinally upwards or downwards, the transverse center line of the desktop is used as the reference line, and the corresponding rows of the icons in the two side areas of the reference line on the desktop are exchanged; otherwise, the diagonal line of the desktop is taken as a reference line, the corresponding columns of the icons in the two side areas of the reference line on the desktop are exchanged, and then the corresponding rows of the icons in the two side areas of the reference line on the desktop are exchanged.
In the scheme, the floating window is circular or square, and the size of the floating window is fit with that of a fingertip.
The desktop icon adjusting method and device provided by the embodiment of the invention have the advantages that the floating window is preset, and the corresponding relations between different moving directions of the floating window and different adjusting modes of the desktop icon are preset; identifying the moving direction of the floating window according to the operation on the floating window, determining the adjustment mode of the desktop icon according to the identified moving direction and the corresponding relation of the floating window, and starting a corresponding adjustment method to adjust the desktop icon according to the determined adjustment mode. Therefore, under the condition that one hand does not move, the position of the application icon on the desktop of the mobile terminal is adjusted, so that a user can conveniently and effectively operate the mobile terminal with a larger size, the use and experience of the mobile terminal are improved, and the effect of one-hand operation is achieved; the method is suitable for all mobile terminals, the technology is simple to implement, the misoperation probability is low, and therefore the operation of a user is more convenient.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
In the embodiment of the present invention, the mobile terminal may include, but is not limited to, a mobile device such as a mobile phone, a tablet, a palmtop, and the like.
As shown in fig. 1, an implementation process of the desktop icon adjusting method in the embodiment of the present invention includes the following steps:
step 101: presetting a floating window and corresponding relations between different moving directions of the floating window and different adjustment modes of the desktop icon;
in practical applications, the preset floating window according to the embodiment of the present invention may be a floating widget (widget) in the mobile terminal; the correspondence may be stored in the form of a table.
Here, the floating window may be located on the left or right screen of the mobile terminal to facilitate the dragging by the user, and after the dragging is completed, the floating window may automatically move to a position closer to the screen of the mobile terminal to facilitate the next operation by the user.
Step 102: identifying the moving direction of the floating window according to the operation on the floating window;
here, the moving direction of the floating window includes: left, right, up, down, left up, left down, right up, right down; the floating window is round or square, and the size of the floating window is matched with that of a fingertip, so that a user can conveniently click the floating window by using a thumb or other fingers during single-hand operation.
Here, the desktop launcher may be notified of the identified moving direction of the floating window;
step 103: and determining an adjustment mode of the desktop icon according to the identified moving direction of the floating window and the corresponding relation, and starting a corresponding adjustment method to adjust the desktop icon according to the determined adjustment mode.
Here, the adjustment method includes: and exchanging icons in two side areas of the datum line on the desktop by taking the transverse center line, the longitudinal center line or the diagonal line of the desktop as the datum line.
Further, the determining an adjustment mode of the desktop icon according to the identified moving direction of the floating window and the corresponding relationship, and starting a corresponding adjustment method to adjust the desktop icon according to the determined adjustment mode includes:
respectively calculating absolute distances of movement along the direction of a transverse axis and the direction of a longitudinal axis according to the initial position coordinate and the end position coordinate of the dragging floating window, and comparing the absolute distances;
when the ratio of the smaller absolute distance to the larger absolute distance in the two is smaller than 1/10, if the current floating window moves transversely leftwards or rightwards, the longitudinal center line of the desktop is used as the reference line, the corresponding columns of the icons in the two side areas of the reference line on the desktop are exchanged, and if the current floating window moves longitudinally upwards or downwards, the transverse center line of the desktop is used as the reference line, and the corresponding rows of the icons in the two side areas of the reference line on the desktop are exchanged; otherwise, the diagonal line of the desktop is taken as a reference line, the corresponding columns of the icons in the two side areas of the reference line on the desktop are exchanged, and then the corresponding rows of the icons in the two side areas of the reference line on the desktop are exchanged.
Here, since there may be a case where dragging is unstable when the user drags the floating window, there is a possibility that a pixel distance generated in the abscissa direction may not match a pixel distance generated in the ordinate direction, that is, when a ratio of a smaller one of the two pixel distances to a larger one of the two pixel distances is less than 1/10, the desktop icon is operated with a horizontal center line or a vertical center line of the desktop as a reference line, and otherwise, the desktop icon is operated with a diagonal line of the desktop as a reference line. 1/10 is obtained by statistics of big data samples of the floating window operated by the user for many times according to the operation habits of most users.
The embodiment of the invention presets a floatable window on the desktop of the mobile terminal, and the floatable window can be moved at will, so that the mobile terminal is very convenient and quick for a user to operate the mobile terminal by one hand, and meanwhile, the corresponding icon adjustment is carried out by adopting a mode of operating the floatable window (such as an integrated mipop screen assistant), the conflict with the original gesture action on the launcher can be effectively avoided, and the misoperation caused by the gesture action on the launcher can be prevented.
The following further introduces the technical solution of the method for implementing desktop icon adjustment provided by the present invention in detail:
in the embodiment of the present invention, the method for implementing desktop icon adjustment specifically includes using a horizontal center line, a vertical center line, or a diagonal line of the desktop as a reference line, and correspondingly adjusting icons in two side areas of the reference line on the desktop.
In particular, when the user operates the floating window, there may be a case where the movement is unstable, for example, when the floating window is moved to the right, the distance of 300 pixels is generated in the abscissa direction, but the distance of only 20 pixels may be generated in the ordinate direction, and then it is necessary to determine whether the current operation is correct again.
When the floating window starts to move, the coordinates (a and b) of the current initial position are recorded, after the floating window is moved by a user, the coordinates (x and y) of the ending position are recorded, then the absolute distance of movement along the horizontal axis direction and the absolute distance of movement along the vertical axis direction are respectively calculated according to the coordinates (a, b) and (x and y), and the absolute distances are compared. When the ratio of the smaller absolute distance to the larger absolute distance is smaller than 1/10, the icon is operated by using the horizontal center line or the vertical center line of the desktop as the reference line, otherwise, the icon is operated by using the diagonal line of the desktop as the reference line.
Here, for different moving directions of the floating window, the following processing manners may be specifically possible:
the first method is as follows: if the current floating window moves horizontally leftwards or rightwards, the longitudinal center line of the desktop is taken as a reference line, and corresponding columns of icons in two side areas of the reference line on the desktop are interchanged, as shown in fig. 2. Assuming that the desktop has N columns of icons, when N is an odd number, the icons in the 1 st column and the icons in the Nth column are exchanged, the icons in the 2 nd column and the icons in the N-1 st column are exchanged, and so on, and the positions of the icons in the middle column are kept unchanged; and when N is an even number, the icons in the 1 st column and the icons in the N th column are interchanged, the icons in the 2 nd column and the icons in the N-1 st column are interchanged, and by analogy, the corresponding columns of the icons in the two side areas of the datum line on the desktop are directly interchanged by taking the longitudinal center line of the desktop as a symmetry axis.
The second method comprises the following steps: if the current floating window moves upwards or downwards longitudinally, the corresponding rows of icons in the two side areas of the reference line on the desktop are exchanged by taking the transverse center line of the desktop as the reference line, as shown in fig. 3. Assuming that the desktop has N rows of icons, when N is an odd number, the icons in the row 1 and the icons in the row N are interchanged, the icons in the row 2 and the icons in the row N-1 are interchanged, and the like, and the positions of the icons in the middle row are kept unchanged; and when N is an even number, the icons in the row 1 and the icons in the row N are interchanged, the icons in the row 2 and the icons in the row N-1 are interchanged, and the like, the transverse center line of the desktop is taken as a symmetry axis, and the corresponding rows of the icons in the two side areas of the reference line on the desktop are directly interchanged.
The third method comprises the following steps: if the current floating window is moved in a left-up direction, a left-down direction, a right-up direction or a right-down direction, the icons in the two side areas of the reference line on the desktop are exchanged by taking the diagonal line of the desktop as the reference line, as shown in fig. 4. The specific operation flow is as follows: after the corresponding columns of the icons in the two side areas of the reference line on the desktop are exchanged and adjusted according to the operation flow of the first mode, the corresponding rows of the icons in the two side areas of the reference line on the desktop are exchanged and adjusted according to the operation flow of the second mode, and finally the exchange of the diagonal icons of the desktop is achieved. The method can realize desktop icon adjustment to the maximum extent, and is convenient for a user to operate icons with a long distance by one hand.
In order to implement the foregoing method, an embodiment of the present invention further provides a desktop icon adjusting apparatus, as shown in fig. 5, the apparatus includes a setting module 51, an identifying module 52, and an adjusting module 53; wherein,
the setting module 51 is used for presetting a floating window and corresponding relations between different moving directions of the floating window and different adjustment modes of the desktop icon;
the identification module 52 is configured to identify a moving direction of the floating window according to the operation on the floating window;
and an adjusting module 53, configured to determine an adjusting manner of the desktop icon according to the identified moving direction of the floating window and the corresponding relationship, and start a corresponding adjusting method to adjust the desktop icon according to the determined adjusting manner.
Here, the moving direction of the floating window includes: left, right, up, down, left up, left down, right up, right down; the floating window is round or square in shape, and the size of the floating window is fit with that of a fingertip; the adjustment mode applied by the adjustment module 53 includes: and exchanging icons in two side areas of the datum line on the desktop by taking the transverse center line, the longitudinal center line or the diagonal line of the desktop as the datum line.
The adjusting module 53 determines an adjustment manner of the desktop icon according to the identified moving direction of the floating window and the corresponding relationship, and starts a corresponding adjusting method to adjust the desktop icon according to the determined adjustment manner, including:
respectively calculating absolute distances of movement along the direction of a transverse axis and the direction of a longitudinal axis according to the initial position coordinate and the end position coordinate of the dragging floating window, and comparing the absolute distances;
when the ratio of the smaller absolute distance to the larger absolute distance in the two is smaller than 1/10, if the current floating window moves transversely leftwards or rightwards, the longitudinal center line of the desktop is used as the reference line, the corresponding columns of the icons in the two side areas of the reference line on the desktop are exchanged, and if the current floating window moves longitudinally upwards or downwards, the transverse center line of the desktop is used as the reference line, and the corresponding rows of the icons in the two side areas of the reference line on the desktop are exchanged; otherwise, the diagonal line of the desktop is taken as a reference line, the corresponding columns of the icons in the two side areas of the reference line on the desktop are exchanged, and then the corresponding rows of the icons in the two side areas of the reference line on the desktop are exchanged.
In practical applications, the setting module 51, the identifying module 52 and the adjusting module 53 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like located on the mobile terminal.
The embodiment of the invention presets a floating window and the corresponding relation between different moving directions of the floating window and different adjustment modes of the desktop icon; identifying the moving direction of the floating window according to the operation on the floating window, determining the adjustment mode of the desktop icon according to the identified moving direction and the corresponding relation of the floating window, and starting a corresponding adjustment method to adjust the desktop icon according to the determined adjustment mode. Therefore, under the condition that one hand does not move, the position of the application icon on the desktop of the mobile terminal is adjusted, so that a user can conveniently and effectively operate the mobile terminal with a larger size, the use and experience of the mobile terminal are improved, and the effect of one-hand operation is achieved; the method is suitable for all mobile terminals, the technology is simple to implement, the misoperation probability is low, and therefore the operation of a user is more convenient.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.