Summary of the invention
Based on this, be necessary to show incomplete problem for above-mentioned entry, a kind of control method and system of sliding list is provided.
A control method for sliding list, comprises the following steps:
After sliding list deceleration slip stops, judging whether the stop position of described sliding list exceedes borderline region;
If the stop position of described sliding list does not exceed borderline region, judge whether the shown height of entry of described sliding list the top is less than predetermined value;
If so, control described sliding list upward sliding to the first assigned address;
If not, control described sliding list and slide down to the second assigned address.
A control system for sliding list, comprising:
The first judge module, after stopping, judging whether the stop position of described sliding list exceedes borderline region for the slip of slowing down when sliding list;
The second judge module, if do not exceed borderline region for the stop position of described sliding list, judges whether the shown height of entry of described sliding list the top is less than predetermined value;
Upper sliding control module, if be less than described predetermined value for the shown height of entry of described sliding list the top, controls described sliding list upward sliding to the first assigned address;
Gliding control module, if be more than or equal to described predetermined value for the shown height of entry of described sliding list the top, control described sliding list and slides down to the second assigned address.
By above scheme, can be found out, the control method of a kind of sliding list of the embodiment of the present invention and system, its sliding list when the slip of slowing down stops is no more than under the prerequisite of borderline region, when finding that the shown height of entry of sliding list the top is less than predetermined value, control sliding list and be moved upwards up to assigned address; When the shown height of the entry of sliding list the top is more than or equal to predetermined value, control sliding list and be moved down into another assigned address, after slip finishes, that entry of current sliding list the top is wanted to show completely in a word.Through after this processing that is similar to Grid Align of the embodiment of the present invention, the demonstration of entry is more complete, visually also more attractive in appearance, more orderly, and entry that can complete demonstration increases, and is more conducive to user's selection.
Embodiment
Below in conjunction with preferred embodiments wherein, the present invention program is described in detail.
Shown in Figure 3, a kind of control method of sliding list, comprises the following steps:
Step S101, well-known, when pressing sliding list and slide to a direction, be now considered to be in and carry out slide; If now user raises one's hand, finish slide, sliding list is not to stop at once but can do to slow down and slide.In embodiments of the present invention, after detecting that sliding list deceleration slip stops, first judging whether the stop position of described sliding list has exceeded borderline region.
As a good embodiment, if the stop position that the result of above-mentioned judgement is sliding list has exceeded borderline region and (has exceeded borderline region and meaned that slip reaches an end, the words of now still sliding there will be white space), can control the position of sliding list self-return to borderline region, the control mode original by system can realize this self-return, and now the flow process of the embodiment of the present invention finishes; If the stop position that the result of judgement is sliding list does not exceed borderline region, can enter step S102.
Step S102, if the stop position of described sliding list does not exceed borderline region, further judges whether the shown height of entry of described sliding list the top is less than predetermined value; If enter step S103, enter if not step S104.
Above-mentioned predetermined value, the difference that can need according to practical application is done different settings.As in one embodiment of the invention, can described predetermined value be set to the height of half entry.
Step S103, if be judged as YES, the shown height of the entry of sliding list the top is less than predetermined value, controls sliding list upward sliding to the first assigned address.
The difference that described the first assigned address can need according to practical application is done different settings.As a good embodiment, the upper edge that described the first assigned address can be set to that entry under the entry of described sliding list the top is upper along concordant position with described sliding list, when controlling described sliding list upward sliding, until the upper edge of that entry under the entry of sliding list the top operates along the concordant upward sliding that just stops with the upper of described sliding list.
Step S104, if be judged as NO, the shown height of the entry of sliding list the top is more than or equal to predetermined value, controls sliding list and slides down to the second assigned address.
The difference that described the second assigned address can also need according to practical application is done different settings.As a good embodiment, described the second assigned address can be set to upper edge and described sliding list upper along concordant position of the entry of described sliding list the top.When controlling described sliding list down sliding, until the upper edge of the entry of sliding list the top operates along the concordant down sliding that just stops with the upper of described sliding list.
The embodiment of the present invention is that the mode that adds the animation of a return by slowing down in sliding list after slip stops realizes Grid Align.But in most of the cases,, because the speed that the deceleration of sliding list is slided before stopping can be very slow, if just add return animation when stopping completely, visual effect is also bad.For addressing this problem, in one of them embodiment of the present invention, can be before sliding list deceleration slip stop, also comprising the steps: to judge whether the speed of described deceleration slip is less than some critical values of setting; If so, stopping this deceleration slides.So just need not by the time slowing down slides stops having carried out return animation more completely, but then stopping slowing down and slide initiatively carried out return animation below, thereby brought better visual effect at once.
The control method of a kind of sliding list of the embodiment of the present invention, its sliding list when the slip of slowing down stops is no more than under the prerequisite of borderline region, when finding that the shown height of entry of sliding list the top is less than predetermined value, control sliding list and be moved upwards up to assigned address; When the shown height of the entry of sliding list the top is more than or equal to predetermined value, control sliding list and be moved down into another assigned address, after slip finishes, that entry of current sliding list the top is wanted to show completely in a word.The sliding list schematic diagram of comparison diagram 1 under traditional control method is controlled and Fig. 2 adopt the sliding list schematic diagram of the control method of the embodiment of the present invention under controlling known, through after this processing that is similar to Grid Align of the embodiment of the present invention, the demonstration of entry is more complete, visually also more attractive in appearance, more orderly, and entry that can complete demonstration also increased, be more conducive to user's selection.
Corresponding with the control method of above-mentioned a kind of sliding list, the embodiment of the present invention also provides a kind of control system of sliding list, shown in Figure 4, comprising:
Thefirst judge module 101, after stopping, judging whether the stop position of described sliding list exceedes borderline region for the slip of slowing down when sliding list;
Thesecond judge module 102, if do not exceed borderline region for the stop position of described sliding list, judges whether the shown height of entry of described sliding list the top is less than predetermined value;
Upper slidingcontrol module 103, if be less than described predetermined value for the shown height of entry of described sliding list the top, controls described sliding list upward sliding to the first assigned address;
Gliding control module 104, if be more than or equal to described predetermined value for the shown height of entry of described sliding list the top, control described sliding list and slides down to the second assigned address.
In an embodiment, the control system of described sliding list can also comprise therein:
The 3rd judge module, before stopping, judging whether the speed of described deceleration slip is less than the critical value of setting for the slip of slowing down in described sliding list;
Stopping modular, if the speed of sliding for described automatic retarding is less than the critical value of setting, stops this deceleration and slides.By the action of above-mentioned two modules, after the slip of can by the time slowing down stops completely, carry out again return animation, but then the deceleration slip that stops of active carries out return animation below at once, thereby brought better visual effect.
Wherein, the difference that the predetermined value in described thesecond judge module 102 can need according to practical application is done different settings.As in one embodiment of the invention, can described predetermined value be set to the height of half entry.
In addition, the difference that described the first assigned address, the second assigned address can also need according to practical application is done different settings.As a good embodiment, the upper edge that described the first assigned address can be set to that entry under the entry of described sliding list the top is upper along concordant position with described sliding list, upper slidingcontrol module 103 is when controlling described sliding list upward sliding, until the upper edge of that entry under the entry of sliding list the top operates along the concordant upward sliding that just stops with the upper of described sliding list.
In like manner, described the second assigned address can be set to upper edge and described sliding list upper along concordant position of the entry of described sliding list the top.Be thatgliding control module 104 is when controlling described sliding list down sliding, until the upper edge of the entry of sliding list the top operates along the concordant down sliding that just stops with the upper of described sliding list.
As a good embodiment, the control system of described sliding list can also comprise self-return module, if exceed borderline region for the stop position of sliding list, controls the position of sliding list self-return to borderline region.
Other technical characterictic of the control system of a kind of sliding list in the embodiment of the present invention is identical with the control method of above-mentioned a kind of sliding list, and it will not go into details herein.
By above scheme, can find out, the control system of a kind of sliding list of the embodiment of the present invention, its sliding list when the slip of slowing down stops is no more than under the prerequisite of borderline region, when finding that the shown height of entry of sliding list the top is less than predetermined value, control sliding list and be moved upwards up to assigned address; When the shown height of the entry of sliding list the top is more than or equal to predetermined value, control sliding list and be moved down into another assigned address, after slip finishes, that entry of current sliding list the top is wanted to show completely in a word.Through after this processing that is similar to Grid Align of the embodiment of the present invention, the demonstration of entry is more complete, visually also more attractive in appearance, more orderly, and entry that can complete demonstration increases, and is more conducive to user's selection.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.