Summary of the invention
The purpose of the embodiment of the present invention is to provide a kind of Interface Moving method and device, improves the accuracy of content location, it is to avoid positioned the inaccurate content caused by content discontinuous.Concrete technical scheme is as follows:
The invention provides a kind of Interface Moving method, be applied to terminal unit, described method includes:
Detection is directed to the slide of current interface, wherein, enumerates display object according to predetermined DISPLAY ORDER in described current interface;
When slide being detected, determine the Interface Moving direction corresponding to described slide;
Determine the display size of the destination object corresponding with described Interface Moving direction;
Described current interface is moved to described Interface Moving direction the display size of described destination object.
Optionally, the described Interface Moving direction determined corresponding to described slide, including:
Determine original position point and the end position point of the formed sliding trace of described slide;
Determine described original position point and the described end position point relative position relation in described current interface;
Based on described relative position relation, obtain the Interface Moving direction corresponding to described slide.
Optionally, described predetermined DISPLAY ORDER includes: DISPLAY ORDER from top to bottom;
Described Interface Moving direction includes: up or down.
Optionally, when described Interface Moving direction be upwards time, the described display size determining the destination object corresponding with described Interface Moving direction, including:
The object that described current interface top shows is determined to belong to the destination object that Interface Moving direction upwards is corresponding;
Determine the display height of described destination object;
The described display size that described current interface is moved to described Interface Moving direction described destination object, including:
Described current interface is moved up the display height of described destination object;
Or,
When described Interface Moving direction is downward, the described display size determining the destination object corresponding with described Interface Moving direction, including:
A upper object of the object shown on described current interface top is determined to belong to the destination object that downward Interface Moving direction is corresponding;
Determine the display height of described destination object;
The described display size that described current interface is moved to described Interface Moving direction described destination object, including:
Described current interface is moved down the display height of described destination object.
Optionally, described predetermined DISPLAY ORDER includes DISPLAY ORDER from left to right;
Described Interface Moving direction includes: to the left or to the right.
Optionally, when described Interface Moving direction be to the left time, the described display size determining the destination object corresponding with described Interface Moving direction, including:
The object that described current interface left end shows is determined to belong to the destination object that Interface Moving direction to the left is corresponding;
Determine the display width of described destination object;
The described display size that described current interface is moved to described Interface Moving direction described destination object, including:
Described current interface is moved to the left the display width of described destination object;
Or,
When described Interface Moving direction be to the right time, the described display size determining the destination object corresponding with described Interface Moving direction, including:
A upper object of the object shown by described current interface left end is determined to belong to the destination object that Interface Moving direction to the right is corresponding;
Determine the display width of described destination object;
The described display size that described current interface is moved to described Interface Moving direction described destination object, including:
Move right the display width of described destination object by described current interface.
The invention provides a kind of Interface Moving device, be applied to terminal unit, described device includes:
Detection module, is directed to the slide of current interface, wherein, enumerates display object according to predetermined DISPLAY ORDER in described current interface for detection;
First determines module, for when slide being detected, determines the Interface Moving direction corresponding to described slide;
Second determines module, for determining the display size of the destination object corresponding with described Interface Moving direction;
Mobile module, for moving the display size of described destination object by described current interface to described Interface Moving direction.
Optionally, described first determines module, including:
Location point determines unit, for when slide being detected, determines original position point and the end position point of the formed sliding trace of described slide;
Relative position relation determines unit, for determining described original position point and the described end position point relative position relation in described current interface;
Interface Moving direction-determining unit, for based on described relative position relation, obtains the Interface Moving direction corresponding to described slide.
Optionally, described predetermined DISPLAY ORDER includes: DISPLAY ORDER from top to bottom;
Described Interface Moving direction includes: up or down.
Optionally, described second determines module, including:
First object object determines unit, for when described Interface Moving direction be upwards time, the object that described current interface top shows is determined to belong to the destination object that Interface Moving direction upwards is corresponding;
First display highly determines unit, for determining the display height of described destination object;
Described mobile module, specifically for:
Described current interface is moved up the display height of described destination object;
Or,
Described second determines module, including:
Second destination object determines unit, and for when described Interface Moving direction is downward, a upper object of the object shown on described current interface top is determined to belong to the destination object that downward Interface Moving direction is corresponding;
Second display highly determines unit, for determining the display height of described destination object;
Described mobile module, specifically for:
Described current interface is moved down the display height of described destination object.
Optionally, described predetermined DISPLAY ORDER includes DISPLAY ORDER from left to right;
Described Interface Moving direction includes: to the left or to the right.
Optionally, described second determines module, including:
3rd destination object determines unit, for when described Interface Moving direction be to the left time, the object that described current interface left end shows is determined to belong to the destination object that Interface Moving direction to the left is corresponding;
First display width determines unit, for determining the display width of described destination object;
Described mobile module, specifically for:
Described current interface is moved to the left the display width of described destination object;
Or,
Described second determines module, including:
4th destination object determines unit, for when described Interface Moving direction be to the right time, a upper object of the object shown by described current interface left end is determined to belong to the destination object that Interface Moving direction to the right is corresponding;
Second display width determines unit, for determining the display width of described destination object;
Described mobile module, specifically for:
Move right the display width of described destination object by described current interface.
Compared with prior art, in the embodiment of the present invention, determine the Interface Moving direction corresponding to described slide, determine the display size of the destination object corresponding with described Interface Moving direction, described current interface is moved to described Interface Moving direction the display size of described destination object, move the display size of described destination object to moving direction due to current interface every time, make next display object that the interface display after moving is complete, improve the accuracy of content location, it is to avoid it is discontinuous to be positioned the inaccurate content caused by content.Certainly, arbitrary product or the method for implementing the present invention must be not necessarily required to reach all the above advantage simultaneously.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
In order to solve prior art problem, embodiments provide a kind of Interface Moving method and device.
A kind of Interface Moving method provided the embodiment of the present invention first below is introduced.
It should be noted that a kind of Interface Moving method that the embodiment of the present invention is provided is applied to terminal unit.In actual applications, this terminal unit can be smart mobile phone, panel computer, notebook computer etc., and this is all rational.
As it is shown in figure 1, a kind of Interface Moving method that the embodiment of the present invention provides, being applied to terminal unit, the method may include that
S101: detection is directed to the slide of current interface.
Wherein, this current interface enumerates display object according to predetermined DISPLAY ORDER.
Concrete, in actual applications, this predetermined DISPLAY ORDER can be the DISPLAY ORDER that user sets, it is also possible to for the DISPLAY ORDER of acquiescence in terminal unit, this is all rational.
Wherein, terminal unit can detect in real time and be directed to the slide of current interface in terminal unit, and performs subsequent operation according to testing result.
S102: when slide being detected, determines the Interface Moving direction corresponding to this slide.
Wherein, slide can have multiple, and every kind of slide is to there being a kind of Interface Moving direction.
Owing to needing to determine the moving direction at interface according to slide, therefore, when slide having been detected, it is determined that the Interface Moving direction corresponding to this slide.
S103: determine the display size of the destination object corresponding with this Interface Moving direction.
Wherein, in interface, the DISPLAY ORDER of each display object is different, then different and destination object the display size of destination object is different, accordingly, it is determined that the display size of the destination object corresponding with this Interface Moving direction.
S104: this current interface is moved to this Interface Moving direction the display size of this destination object.
After the display size determining the destination object corresponding with this Interface Moving direction, this current interface is moved the display size of this destination object to reach the purpose of Interface Moving to this Interface Moving direction.
Compared with prior art, in the embodiment of the present invention, determine the Interface Moving direction corresponding to described slide, determine the display size of the destination object corresponding with described Interface Moving direction, described current interface is moved to described Interface Moving direction the display size of described destination object, move the display size of described destination object to moving direction due to current interface every time, make next display object that the interface display after moving is complete, improve the accuracy of content location, it is to avoid it is discontinuous to be positioned the inaccurate content caused by content.
Concrete, in one implementation, this predetermined DISPLAY ORDER may include that DISPLAY ORDER from top to bottom;
Accordingly, this Interface Moving direction may include that up or down.
When this Interface Moving direction be upwards time, determine the display size of the destination object corresponding with this Interface Moving direction, may include that
The object that this current interface top shows is determined to belong to the destination object that Interface Moving direction upwards is corresponding;
Determine the display height of this destination object;
This current interface is moved to this Interface Moving direction the display size of this destination object, may include that
This current interface is moved up the display height of this destination object;
Or,
When this Interface Moving direction is downward, determines the display size of the destination object corresponding with this Interface Moving direction, may include that
A upper object of the object shown on this current interface top is determined to belong to the destination object that downward Interface Moving direction is corresponding;
Determine the display height of this destination object;
This current interface is moved to this Interface Moving direction the display size of this destination object, may include that
This current interface is moved down the display height of this destination object.
Below by a specific embodiment when the DISPLAY ORDER that predetermined DISPLAY ORDER is from top to bottom, method shown in Fig. 1 is specifically described.
Such as: as shown in Figure 2, terminal unit is hands machine, mobile phone current interface enumerates A according to DISPLAY ORDER from top to bottom, B and C tri-shows object, the object that mobile phone current interface top shows is A, when user upward sliding interface being detected, A is determined to belong to the destination object that Interface Moving direction upwards is corresponding, determine the display height H of A, mobile phone current interface is moved up H, now, the object that mobile phone current interface top shows is B, when user slide downward interface being detected, A is determined to belong to the destination object that downward Interface Moving direction is corresponding, determine the display height H of A, mobile phone current interface is moved down H.
Concrete, in another kind of implementation, this predetermined DISPLAY ORDER can include DISPLAY ORDER from left to right;
Accordingly, this Interface Moving direction may include that to the left or to the right.
When this Interface Moving direction be to the left time, determine the display size of the destination object corresponding with this Interface Moving direction, may include that
The object that this current interface left end shows is determined to belong to the destination object that Interface Moving direction to the left is corresponding;
Determine the display width of this destination object;
This current interface is moved to this Interface Moving direction the display size of this destination object, may include that
This current interface is moved to the left the display width of this destination object;
Or,
When this Interface Moving direction be to the right time, determine the display size of the destination object corresponding with this Interface Moving direction, may include that
A upper object of the object shown by this current interface left end is determined to belong to the destination object that Interface Moving direction to the right is corresponding;
Determine the display width of this destination object;
This current interface is moved to this Interface Moving direction the display size of this destination object, may include that
Move right the display width of this destination object by this current interface.
Below by a specific embodiment when the DISPLAY ORDER that predetermined DISPLAY ORDER is from left to right, method shown in Fig. 1 is specifically described.
Such as: terminal unit is hands machine, mobile phone current interface enumerates E according to DISPLAY ORDER from left to right, F and G tri-shows object, the object that mobile phone current interface left end shows is E, when user's sliding interface to the left being detected, E is determined to belong to the destination object that Interface Moving direction to the left is corresponding, determine the display width W of E, mobile phone current interface is moved to the left W, now, the object that mobile phone current interface left end shows is F, when user's sliding interface to the right being detected, E is determined to belong to the destination object that Interface Moving direction to the right is corresponding, determine the display width W of E, move right W by mobile phone current interface.
Further, determining that the implementation in the Interface Moving direction corresponding to this slide exists multiple, below in conjunction with a kind of specific implementation, a kind of Interface Moving method being provided the embodiment of the present invention describes in detail.As it is shown on figure 3, a kind of Interface Moving method that the present invention provides, may include that
S301: detection is directed to the slide of current interface.
Wherein, described current interface enumerates display object according to predetermined DISPLAY ORDER.
Wherein, step S301 is identical with step S101 of method shown in Fig. 1, repeats no more.
S302: when slide being detected, determines original position point and the end position point of the formed sliding trace of this slide.
Wherein, what slide was formed is a sliding trace, determines original position point and the end position point of this sliding trace, in order to carry out follow-up step.
S303: determine the relative position relation of this original position point and this end position point interface in this prior.
After the original position point determining sliding trace and end position point, determining these two location points relative position relation in current interface, concrete, this relative position relation is corresponding with Interface Moving direction.
S304: based on this relative position relation, obtain the Interface Moving direction corresponding to this slide.
Concrete, the predetermined DISPLAY ORDER of display object is enumerated based on current interface, and the relative position relation of original position point and end position point obtains the Interface Moving direction corresponding to this slide, wherein, this relative position relation can be end position point relative to original position point, above original position point, lower section, left or right.
Such as: terminal unit is mobile phone, mobile phone current screen enumerates display object according to DISPLAY ORDER from top to bottom, the original position point M and end position point N of the sliding trace that detection user's slide is formed, when N is above M, the slide that user is described is upward sliding, determine the Interface Moving direction of mobile phone current screen for upwards, when the N lower section at M, the slide that user is described is slide downward, determines that the Interface Moving direction of mobile phone current screen is downward;
Mobile phone current screen enumerates display object according to DISPLAY ORDER from left to right, the original position point J and end position point K of the sliding trace that detection user's slide is formed, when the K left at J, illustrate that the slide of user is for slide to the left, determine that the Interface Moving direction of mobile phone current screen is for the left, when the K right at J, illustrate that the slide of user, for slide to the right, determines that the Interface Moving direction of mobile phone current screen is for the right.
S305: determine the display size of the destination object corresponding with this Interface Moving direction.
S306: this current interface is moved to this Interface Moving direction the display size of this destination object.
Wherein, step S305 is identical with step S103 of method shown in Fig. 1, and step S306 is identical with step S104 of method shown in Fig. 1, repeats no more.
Thus, original position point based on the formed sliding trace of slide and the relative position relation at end position point interface in this prior, obtain the Interface Moving direction corresponding to this slide, this current interface is moved the display size of this destination object to reach the purpose of Interface Moving to this Interface Moving direction.
Relative to said method embodiment, the embodiment of the present invention additionally provides a kind of Interface Moving device, is applied to terminal unit, and as shown in Figure 4, this device may include that
Detection module 401, is directed to the slide of current interface, wherein, enumerates display object according to predetermined DISPLAY ORDER in described current interface for detection;
First determines module 402, for when slide being detected, determines the Interface Moving direction corresponding to described slide;
Second determines module 403, for determining the display size of the destination object corresponding with described Interface Moving direction;
Mobile module 404, for moving the display size of described destination object by described current interface to described Interface Moving direction.
Compared with prior art, in the embodiment of the present invention, determine the Interface Moving direction corresponding to described slide, determine the display size of the destination object corresponding with described Interface Moving direction, described current interface is moved to described Interface Moving direction the display size of described destination object, move the display size of described destination object to moving direction due to current interface every time, make next display object that the interface display after moving is complete, improve the accuracy of content location, it is to avoid it is discontinuous to be positioned the inaccurate content caused by content.
Described predetermined DISPLAY ORDER may include that DISPLAY ORDER from top to bottom;
Described Interface Moving direction may include that up or down.
Described second determines module 403, may include that
First object object determines unit, for when described Interface Moving direction be upwards time, the object that described current interface top shows is determined to belong to the destination object that Interface Moving direction upwards is corresponding;
First display highly determines unit, for determining the display height of described destination object;
Described mobile module 404, can be specifically for:
Described current interface is moved up the display height of described destination object;
Or,
Described second determines module 403, may include that
Second destination object determines unit, and for when described Interface Moving direction is downward, a upper object of the object shown on described current interface top is determined to belong to the destination object that downward Interface Moving direction is corresponding;
Second display highly determines unit, for determining the display height of described destination object;
Described mobile module 404, can be specifically for:
Described current interface is moved down the display height of described destination object.
Described predetermined DISPLAY ORDER can include DISPLAY ORDER from left to right;
Described Interface Moving can include with direction: to the left or to the right.
Described second determines module 403, may include that
3rd destination object determines unit, for when described Interface Moving direction be to the left time, the object that described current interface left end shows is determined to belong to the destination object that Interface Moving direction to the left is corresponding;
First display width determines unit, for determining the display width of described destination object;
Described mobile module 404, can be specifically for:
Described current interface is moved to the left the display width of described destination object;
Or,
Described second determines module 403, may include that
4th destination object determines unit, for when described Interface Moving direction be to the right time, a upper object of the object shown by described current interface left end is determined to belong to the destination object that Interface Moving direction to the right is corresponding;
Second display width determines unit, for determining the display width of described destination object;
Described mobile module 404, can be specifically for:
Move right the display width of described destination object by described current interface.
Further, as it is shown in figure 5, a kind of Interface Moving device that the present invention provides, it is applied to terminal unit, may include that
Detection module 501, is directed to the slide of current interface, wherein, enumerates display object according to predetermined DISPLAY ORDER in described current interface for detection;
Location point determines unit 502, for when slide being detected, determines original position point and the end position point of the formed sliding trace of described slide;
Relative position relation determines unit 503, for determining described original position point and the described end position point relative position relation in described current interface;
Interface Moving direction-determining unit 504, for based on described relative position relation, obtains the Interface Moving direction corresponding to described slide.
Second determines module 505, for determining the display size of the destination object corresponding with described Interface Moving direction;
Mobile module 506, for moving the display size of described destination object by described current interface to described Interface Moving direction.
It should be noted that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation or sequentially that there is any this reality between these entities or operation.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
Each embodiment in this specification all uses relevant mode to describe, and between each embodiment, identical similar part sees mutually, and what each embodiment stressed is the difference with other embodiments.For system embodiment, owing to it is substantially similar to embodiment of the method, so describe is fairly simple, relevant part sees the part of embodiment of the method and illustrates.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All any modification, equivalent substitution and improvement etc. made within the spirit and principles in the present invention, are all contained in protection scope of the present invention.