Rock method and the portable terminal thereof of realizing desktop icons automatic aligning and orderingTechnical field
The present invention relates to the technical field of mobile terminal desktop management of icons, relate more specifically to a kind of method and portable terminal thereof of realizing desktop icons automatic aligning and ordering that rock.
Background technology
At present portable terminal and people's life is more and more tightr, and smart mobile phone, panel computer etc. are seen everywhere in the life.Along with popularizing of portable terminal, the function of portable terminal from strength to strength, the opening of portable terminal is also more and more stronger.At present increasing portable terminal has supported the user to install voluntarily and delete application program, even allows user individual to arrange, increase and reduce the desktop icons of portable terminal.
Yet the user has also found some problems in the easily while that the opening of enjoying portable terminal is brought.On the deletion portable terminal during some application program, corresponding desktop icons also will be deleted in the lump, but all desktop icons can't align and sort automatically again after the deletion, thereby cause former desktop icons position vacancy to occur, have affected desktop attractive in appearance of portable terminal.Attractive in appearance for the desktop that keeps portable terminal, the user has to manually to drag one by one desktop icons makes its alignment and ordering.Yet, manual mode not only time-consuming, require great effort but also the user that reduced portable terminal experiences.
Therefore, be necessary to provide a kind of method and portable terminal thereof of realizing desktop icons automatic aligning and ordering of rocking to overcome defects.
Summary of the invention
The purpose of this invention is to provide a kind of method that realizes desktop icons automatic aligning and ordering of rocking, with the function that realizes making desktop icons automatic aligning and ordering by rocking, thereby help to keep the neat, attractive in appearance of mobile terminal desktop, and improve the user and experience.
Another object of the present invention provides a kind of portable terminal of realizing desktop icons automatic aligning and ordering that rocks, with the function that realizes making desktop icons automatic aligning and ordering by rocking, thereby help to keep the neat, attractive in appearance of mobile terminal desktop, and improve the user and experience.
In order to solve the problems of the technologies described above, the invention provides a kind of method that realizes desktop icons automatic aligning and ordering of rocking, be applicable to portable terminal, and described portable terminal is in desktop state, said method comprising the steps of:
Whether (1) detect portable terminal is rocked;
(2) if, the automatic aligning of then finishing desktop icons according to alignment thereof and the sortord of desktop icons and ordering, otherwise, repeating said steps (1) then.
Compared with prior art, whether the present invention at first detects portable terminal and is rocked when portable terminal is in desktop state, call the alignment thereof of desktop icons and automatic aligning that sortord is finished desktop icons and ordering according to testing result again, realized making the also function of ordering of desktop icons automatic aligning by rocking, help to keep the neat, attractive in appearance of mobile terminal desktop, and improved user's experience.
Particularly, described step (1) also comprises before:
Obtain described portable terminal up and down or the accekeration of left and right directions;
Judge whether described accekeration surpasses threshold value, if, judge that then described portable terminal is rocked, otherwise, judge that then described portable terminal is not rocked.
Particularly, described step (1) also comprises before:
Described threshold value is set, enables the alignment thereof and the sortord that rock alignment function and described desktop icons are set of described portable terminal.
Preferably, the alignment thereof of described desktop icons comprises left-justify, Right Aligns, upper alignment or lower alignment.
Preferably, the sortord of described desktop icons comprise mode that the title initial by described desktop icons sorts successively, the mode that sorts successively by the file size of described desktop icons, the mode that sorts successively by the file type of described desktop icons or the mode that sorts successively by the modification time of described desktop icons.
Correspondingly, the present invention also provides a kind of portable terminal of realizing desktop icons automatic aligning and ordering that rocks, and described portable terminal comprises:
Whether detection module is rocked for detection of described portable terminal;
Execution module is used for testing result when described detection module and is the automatic aligning of finishing desktop icons according to alignment thereof and the sortord of desktop icons when being and sorts.
Particularly, described detection module comprises:
Acquiring unit is used for obtaining described portable terminal up and down or the accekeration of left and right directions;
Judging unit is used for judging whether described accekeration surpasses threshold value, if, judge that then described portable terminal is rocked, otherwise, judge that then described portable terminal is not rocked.
Particularly, in a preferred embodiment of the present invention, described portable terminal also comprises:
Module is set, is used for the alignment thereof and the sortord that rock alignment function and described desktop icons are set that described threshold value are set, enable described portable terminal; And
Memory module is called for described execution module for alignment thereof and the sortord of storing described threshold value, described desktop icons.
Preferably, the alignment thereof of described desktop icons comprises left-justify, Right Aligns, upper alignment or lower alignment.Different alignment thereof can satisfy user's different alignment requirement, experiences thereby improve the user.
Preferably, the sortord of described desktop icons comprise mode that the title initial by described desktop icons sorts successively, the mode that sorts successively by the file size of described desktop icons, the mode that sorts successively by the file type of described desktop icons or the mode that sorts successively by the modification time of described desktop icons.Different sortords can satisfy user's difference ordering demand, experiences thereby further improve the user.
By following description also by reference to the accompanying drawings, it is more clear that the present invention will become, and these accompanying drawings are used for explaining embodiments of the invention.
Description of drawings
Fig. 1 is the embodiment process flow diagram that the present invention rocks the method that realizes desktop icons automatic aligning and ordering.
Fig. 2 is for using the desktop icons synoptic diagram of the front portable terminal of the described method of Fig. 1.
Fig. 3 is desktop icons one synoptic diagram of portable terminal after the described method of use Fig. 1.
Fig. 4 is for using described in Fig. 1 another synoptic diagram of desktop icons of portable terminal after the method.
Fig. 5 is the example structure figure that the present invention rocks the portable terminal of realizing desktop icons automatic aligning and ordering.
Embodiment
With reference now to accompanying drawing, describe embodiments of the invention, similar element numbers represents similar element in the accompanying drawing.
With reference to Fig. 1, the invention provides a kind of method that realizes desktop icons automatic aligning and ordering of rocking, be applicable to portable terminal, and described portable terminal is in desktop state, said method comprising the steps of:
Step S101 arranges threshold value, enables the alignment thereof and the sortord that rock alignment function and desktop icons are set of portable terminal; Particularly, the alignment thereof of described desktop icons comprises left-justify, Right Aligns, upper alignment or lower alignment; The mode that the title initial by described desktop icons that comprises the sortord of described desktop icons sorts successively, the mode that sorts successively by the file size of described desktop icons, the mode that sorts successively by the file type of described desktop icons or the mode that sorts successively by the modification time of described desktop icons; As: it is 1.0g that threshold value is set; As: the alignment thereof that desktop icons are set is upper alignment, the mode that the sortord that desktop icons are set sorts successively for the modification time by desktop icons; Or as: the alignment thereof that desktop icons are set is left-justify, the mode that the sortord that desktop icons are set sorts successively for the title initial by desktop icons; It should be noted that and also can close the described alignment function of rocking;
Step S102 obtains described portable terminal up and down or the accekeration of left and right directions; As: the accekeration that the acceleration transducer by portable terminal gets access to the portable terminal above-below direction is 2.0g;
Step S103 judges that whether described accekeration surpasses described threshold value, if, execution in step S104 then, on the contrary then repeating said steps S102 is to described step S103; As: because accekeration 2.0g has surpassed threshold value 1.0g, so execution in step S104; Namely, by judging whether described accekeration surpasses described threshold value to judge whether portable terminal is rocked, if surpass, judge that then portable terminal is rocked and execution in step S 104, otherwise, then judge portable terminal do not rocked and repeating step S102 to step S103;
Step S104 finishes automatic aligning and the ordering of desktop icons according to alignment thereof and described sortord.As: with reference to Fig. 3, be automatic aligning and the ordering that mode that the sortord of upper alignment, desktop icons sorts successively for the modification time by desktop icons is finished desktop icons according to the alignment thereof of desktop icons.Or as: with reference to Fig. 4, be automatic aligning and the ordering that mode that the sortord of left-justify, desktop icons sorts successively for the title initial by desktop icons is finished desktop icons according to the alignment thereof of desktop icons.
With reference to Fig. 5, the present invention also provides a kind ofportable terminal 100 of realizing desktop icons automatic aligning and ordering that rocks, and comprising:
Module 10 is set, is used for the alignment thereof and the sortord that rock alignment function and described desktop icons are set that threshold value are set, enable describedportable terminal 100; Particularly, the alignment thereof of described desktop icons comprises left-justify, Right Aligns, upper alignment or lower alignment; The mode that the title initial by described desktop icons that comprises the sortord of described desktop icons sorts successively, the mode that sorts successively by the file size of described desktop icons, the mode that sorts successively by the file type of described desktop icons or the mode that sorts successively by the modification time of described desktop icons;
Memory module 40 is for alignment thereof and the sortord of storing described threshold value, described desktop icons;
Whetherdetection module 20 is rocked for detection of describedportable terminal 100;
Execution module 30 is used for when the testing result of describeddetection module 20 is, calls the alignment thereof of the described desktop icons that describedmemory module 20 stores and automatic aligning that sortord is finished desktop icons and sort.
Particularly, describeddetection module 20 comprises:
Acquiring unit 201 is used for obtaining describedportable terminal 100 up and down or the accekeration of left and right directions; In the present embodiment, described acquiringunit 201 is acceleration transducer;
Judging unit 202 is used for judging whether described accekeration surpasses the described threshold value of describedmemory module 20 storages, if, judge that then describedportable terminal 100 is rocked, otherwise, judge that then describedportable terminal 100 is not rocked.
Can find out according to above description, whether the present invention detectsportable terminal 100 bydetection module 20 and is rocked whenportable terminal 100 is in desktop state, automatic aligning and the ordering of finishing desktop icons byexecution module 30 according to alignment thereof and the sortord of testing result and desktop icons again, realized making the also function of ordering of desktop icons automatic aligning by rocking, help to keep the neat, attractive in appearance ofportable terminal 100 desktops, and improved user's experience.
Above invention has been described in conjunction with most preferred embodiment, but the present invention is not limited to the embodiment of above announcement, and should contain various modification, equivalent combinations of carrying out according to essence of the present invention.