A kind of method of contact action list box
Technical field
The present invention relates to the operating method of user interface for electronic devices and its device, more particularly to a kind of contact action list
The method of frame.
Background technology
Now with the more and more flourishing of science and technology, the information content that user can touch is also more and more, but how to roll
The content of needs is quick and precisely found in dynamic list box.It is the relatively difficult thing of part, for example has in mobile portable phone this application
The thousands of individual contact phone numbers of Shi Duoda, or have the content for being up to very much tens of pages, the behaviour of traditional touch screen in web page browsing
Make list box method can only one slide it is one dynamic, it is sliding how many dynamic how many, search get up to cause high effort for it is time-consuming.
Therefore, prior art is up for improving and developing.
The content of the invention
It is an object of the invention to provide a kind of achievable inertia slide, it is laborsaving and timesaving contact action list box
Method.
Technical scheme is as follows:
A kind of method of contact action list box, comprises the following steps:
A, the Grid Track and sliding time slided on touch screen is obtained, according to the Grid Track calculations list frame direction
On sliding distance D1;
B, judges whether the sliding distance D1 is more than the first threshold values T1, is then to show that list box rolls phase with glide direction
Same sliding distance D1, otherwise judges whether the slip on touch screen stops, not stopping then return to step A, stopped sliding, then
Into step C;
C, when sliding stopping, judging whether the sliding time is more than the second threshold values T2, otherwise list box is rolled and terminated,
It is then to calculate momentum value M and entrance step D, the momentum value M=sliding distance D1* sensitivity coefficients C1;
D, display list box continue to roll inertia distance D3, the inertia distance D3=constant values D2+ punchings with glide direction
Value M;
E, list box, which rolls, to be terminated.
The method of described contact action list box, wherein, also include between the step D and step E,
E1, after list box continues to roll inertia distance D3 with glide direction, change momentum value M, make M=M* correction factors
C2, and judge whether the momentum value M after changing is more than the 3rd threshold values T3, otherwise progress step E, is then return to step D.
The method of described contact action list box, wherein, the section of the first threshold values T1 is [30,60] pixel, institute
The section for stating constant value D2 is [10,60] pixel, and the section of the sensitivity coefficient C1 is [0.1,0.35], the second threshold values T2
Section be [300,500] millisecond.
The method of described contact action list box, wherein, the section of the 3rd threshold values T3 is [1,10] pixel, institute
The section for stating correction factor C2 is [0.81,0.99].
The method of described contact action list box, wherein, in the step C, the identification standard for sliding stopping is user
Operated off touch screen.
The method of described contact action list box, wherein, the touch screen is mobile phone touch.
A kind of touch screen-device, including one be used to show the touch display screen of list box, wherein, in addition to,
One timer for calculating sliding time;
One is used to obtain the Grid Track slided on user's touch screen and calculates sliding distance D1 measuring unit;
One is used for the first threshold values T1 of storage, the second threshold values T2, sensitivity coefficient C1 and constant value D2 storage element;
One be used for judge whether list box rolls with glide direction, relatively and judge list box whether carry out roll inertia away from
From processing unit;
The touch display screen is connected with timer, measuring unit, the processing unit respectively with touch display screen, timing
Device, measuring unit are connected with storage element.
The present invention is to show that list box rolls with glide direction by setting the first threshold values T1 to determine whether, sets the second valve
Value T2, judges whether list box continues to roll inertia distance, during so as to realize user's quick sliding, list box meeting with glide direction
Roll more, so as to allow user is laborsaving to save worry, the content in fast browsing list box.Preferred scheme is to set the 3rd threshold values again
T3 judges whether list box needs to roll certain inertia distance with glide direction again, as long as when momentum value M is less than the 3rd valve
Just terminate list box rolling during value T3, so as to realize that the rolling of list box can little by little stop, operation has more hommization.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the method preferred embodiment of contact action list box of the present invention.
Fig. 2 is a kind of schematic flow sheet of touch screen-device preferred embodiment of the present invention.
Embodiment
The invention provides a kind of method of contact action list box, to make the purpose of the present invention, technical scheme and effect
It is clearer, clear and definite, referring to the drawings and give an actual example that the present invention is described in more detail.It is it should be appreciated that described herein
Specific embodiment only to explain the present invention, be not intended to limit the present invention.
As shown in figure 1, be a kind of schematic flow sheet of the method preferred embodiment of contact action list box of the present invention, this hair
Bright method can be only applied to touch-screen equipment, such as mobile phone with contact action, game machine, tablet personal computer and other portable sets.
Comprise the following steps that:
Step A, when user is being slided with finger or stylus etc. on touch screen, device interior driver can be obtained by seat
Track and sliding time are marked, this has the prior art of touch-screen equipment, and specific operation principle will not be repeated here, device interior journey
Sequence can calculate the sliding distance D1 on list box direction according to the Grid Track.
Step B, then according to judging whether the sliding distance D1 is more than the first threshold values T1, the area of the first threshold values T1
Between scope be preferably [30,60] pixel, when sliding distance D1 is more than the first threshold values T1, just then show list box with glide direction
Identical sliding distance D1 is rolled, this is in order to avoid the neglectful touching of user or click also cause unnecessary list box to roll
It is dynamic.When sliding distance D1 is less than the first threshold values T1, then also need to judge whether the slip on touch screen stops, if do not stopped also
Sliding stop, system may proceed to calculate the sliding distance D1 on list box direction according to the Grid Track of slip;If stop over
Sliding stop, then into the judgement of next step.
Step C, when sliding stopping, the identification standard stopped of sliding is that user's has operated off touch screen.If
It is to enter line slip with finger, then is interpreted as after finger lifts, just slides and stop at last, if other articles are carried out with stylus etc.
Operate, then stylus have left touch screen and just stop sliding at last, if touch screen is not left in operation also, does not assert slip stopping, is
System may proceed to calculate its sliding distance D1 and sliding time.When slide stop when, then judge whether the sliding time is more than the
Two threshold values T2, the interval range of the second threshold values T2 is preferably between [300,500] millisecond, when sliding time is less than the second valve
List box is rolled and terminated during value T2, and list box caused by of short duration slip caused by avoiding user's imprudence rolls;When sliding
Between when being more than the second threshold values T2, then calculate momentum value M and enter step D, the momentum value M=sliding distance D1* sensitivity coefficients
C1;The momentum value M is to be demonstrate,proved to calculate inertia the distance D3, the sensitivity coefficient C1 of next step interval range through experiment
It is bright preferably between [0.1,0.35].
Step D, when sliding time is more than the second threshold values T2, display list box continues to roll inertia distance with glide direction
D3, just because of the rolling for adding inertia distance D3 so that even if list box can is similar after user slides certain time
The principle of " inertia " is further continued for rolling a segment distance.Inertia distance D3=constant values D2+ momentum the values M, the constant value D2
Interval range preferably between [10,60] pixel.
Step E, after completing step D, list box, which rolls, to be terminated.During in order that must slide longer, the rolling of list box also phase
It should lengthen, the state after completing inertia distance D3 rolling can also be judged in step D, while in order to allow inertia to move
To make more life-like, the intensity of inertia is less and less, now changes momentum value M, makes M=M* correction factor C2, and after judging change
Momentum value M whether be more than the 3rd threshold values T3, the interval range of the 3rd threshold values T3 is preferably between [1,10] pixel, when changing
When momentum value M after change is less than the 3rd threshold values T3, list box is tied with regard to the rolling of no longer progress " inertia " so as to which list box rolls
Beam;When the momentum value M after change is still above the 3rd threshold values T3, then an inertia is carried out again and is rolled, because momentum value M subtracts
Inertia distance D3=constant value D2+ momentum values M few, that list box rolls;Also corresponding to reduce, rolling is sentenced again after terminating
Disconnected, momentum value M and inertia distance D3 also can be less and less, and when momentum value M is less than the 3rd threshold values T3, list box is just really tied
Beam rolls.
Touch screen of the present invention can be touching for mobile phone, game machine, tablet personal computer and other portable set notebooks
Screen.
The invention also discloses a kind of touch screen-device, as shown in Fig. 2 including the touch display screen one for showing list box
20, a timer 30 for calculating sliding time;One is used to obtain the Grid Track slided on user's touch screen and calculates slip
Distance D1 measuring unit 40;One is used for the first threshold values T1 of storage, the second threshold values T2, sensitivity coefficient C1 and constant value D2 storage
Unit 50;One be used for judge whether list box rolls with glide direction, relatively and judge list box whether carry out roll inertia away from
From processing unit 60.
The touch display screen 20 is connected with timer 30, measuring unit 40, timer 30 and measuring unit 40 according to
Family obtains the data of correlation in the operation of touch display screen 20, and transfers data to processing unit 60, the processing unit
60 are connected with touch display screen 20, timer 30, measuring unit 40 and storage element 50 respectively.The processing unit 60 judges
Shown afterwards by touch display screen 20, the specific judgement principle of processing unit 60 refer to a kind of above-mentioned contact action list
The content of the method for frame.
It should be appreciated that for those of ordinary skills, can according to the above description be improved or converted,
And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.