CN104834474B - Page furbishing method and device - Google Patents
Page furbishing method and device Download PDFInfo
- Publication number
- CN104834474B CN104834474B CN201510293762.XA CN201510293762A CN104834474B CN 104834474 B CN104834474 B CN 104834474B CN 201510293762 A CN201510293762 A CN 201510293762A CN 104834474 B CN104834474 B CN 104834474B
- Authority
- CN
- China
- Prior art keywords
- touch signals
- preset pattern
- current display
- distance
- display page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of page furbishing method and devices.Wherein, page furbishing method includes: reception touch signals, wherein the signal that touch signals generate when being the current display page in contact arrangement screen;In the case where touch signals continue to slide according to predetermined direction, the preset pattern shown in current display page is filled;In the case where preset pattern is completely filled, the first default text is shown in current display page;Wherein, the first default text is for prompting touch signals stopping to slide according to predetermined direction;In the case where showing the first default text in current display page, judge whether touch signals are released;Current display page in the case where judging that touch signals are released, in refreshing a device screen.Through the invention, it is more complicated to solve the mode refreshed in the prior art to current display page, leads to the problem of user's operation inconvenience, and then has achieved the effect that simplified user refreshes current display page operation.
Description
Technical field
The present invention relates to page process fields, in particular to a kind of page furbishing method and device.
Background technique
In recent years, become stronger day by day with the acceleration of people's life rhythm with cell-phone function, it is raw that mobile phone has incorporated people
Every aspect living, people are increasingly dependent on mobile phone.With the continuous promotion of smart mobile phone hardware configuration and performance, user can be with
A large amount of application program is installed on mobile phone.
When user uses some application program on mobile phone, if after having used some times, not by the application
Stop, but running background has been fallen back on, when user reuses the application program, it usually needs to the application program
Current display page is refreshed, to obtain the what be new provided by the application program.In the prior art to current aobvious
The mode for showing that the page is refreshed is more complicated, is easy to make troubles to user's operation.
It is for the mode refreshed in the prior art to current display page more complicated, cause user's operation inconvenient
Problem, currently no effective solution has been proposed.
Summary of the invention
The present invention provides a kind of page furbishing method and device, to solve in the prior art to brush current display page
New mode is more complicated, leads to the problem of user's operation inconvenience.
According to an aspect of an embodiment of the present invention, a kind of page furbishing method is provided.Page brush according to the present invention
New method includes: reception touch signals, wherein the touch signals generate when being the current display page in contact arrangement screen
Signal;In the case where the touch signals continue to slide according to predetermined direction, to what is shown in the current display page
Preset pattern is filled;In the case where the preset pattern is completely filled, is shown in the current display page
One default text;Wherein, the described first default text is for prompting the touch signals to stop sliding according to the predetermined direction;
In the case where showing the first default text in the current display page, judge whether the touch signals are released;And
In the case where judging that the touch signals are released, refresh the current display page in the device screen.
Further, in the case where the touch signals continue to slide according to predetermined direction, the page furbishing method
Further include: it obtains the touch signals and continues the distance slided according to the predetermined direction, obtain first distance;Judge described
Whether one distance is greater than or equal to pre-determined distance threshold value;Judging the first distance more than or equal to pre-determined distance threshold value
In the case of, the preset pattern is shown in the current display page.
Further, in the case where the touch signals continue to slide according to predetermined direction, to the current display page
It includes: the height for obtaining the preset pattern that the preset pattern shown in face, which is filled, obtains second distance;And according to institute
State first distance and the determining filling extent to the preset pattern of the second distance.
Further, the filling extent packet to the preset pattern is determined according to the first distance and the second distance
It includes: according to formulaDetermine the filling extent to the preset pattern, wherein C is the first distance, TIfFor institute
Pre-determined distance threshold value is stated, T is the second distance, and F is filling extent ratio.
Further, before receiving touch signals, the page furbishing method further include: obtain the first picture and second
Picture, wherein first picture is the picture for the preset pattern that storage is not filled, and the second picture is to store
The picture for the preset pattern being all filled;Target widget is established, and first picture and the second picture are made
It is parameter assignment in target widget, wherein the target widget is for filling the preset pattern, wherein in the touch screen
Signal continues in the case where sliding according to predetermined direction, is filled packet to the preset pattern shown in the current display page
It includes: in the case where the touch signals continue to slide according to predetermined direction, according to the target side determined by the target widget
The preset pattern shown in the current display page is filled.
Further, in the case where the touch signals continue to slide to the predetermined direction, to the current display
After the preset pattern shown in the page is filled, the page furbishing method further include: incomplete in the preset pattern
In the case that portion is filled, the second default text is shown in the current display page, wherein the second default text is used for
The touch signals are prompted still to continue to slide according to the predetermined direction.
According to another aspect of an embodiment of the present invention, a kind of page furbishing device is provided.Page brush according to the present invention
New equipment includes: receiving unit, for receiving touch signals, wherein the touch signals are current in contact arrangement screen
The signal generated when showing the page;Fills unit, for the touch signals continue slided according to predetermined direction in the case where,
The preset pattern shown in the current display page is filled;First display unit, in the preset pattern quilt
In the case where being stuffed entirely with, the first default text is shown in the current display page;Wherein, the described first default text is used
Stop sliding according to the predetermined direction in the prompt touch signals;First judging unit, in the current display page
In the case where showing the first default text in face, judge whether the touch signals are released;And refresh unit, for sentencing
It is disconnected go out in the case that the touch signals are released, refresh the current display page in the device screen.
Further, the page furbishing device further include: first acquisition unit, for persistently being pressed in the touch signals
It in the case where according to predetermined direction sliding, obtains the touch signals and continues the distance slided according to the predetermined direction, obtain the
One distance;Second judgment unit, for judging whether the first distance is greater than or equal to pre-determined distance threshold value;Second display is single
Member, in the case where judging that the first distance is greater than or equal to pre-determined distance threshold value, in the current display page
Show the preset pattern.
Further, the fills unit includes: acquisition module, for obtaining the height of the preset pattern, obtains
Two distances;And determining module, for being filled out according to the first distance and second distance determination to the preset pattern
Fill degree.
Further, the determining module comprises determining that submodule, for according to formulaIt determines to described
The filling extent of preset pattern, wherein C is the first distance, TIfFor the pre-determined distance threshold value, T is the second distance,
F is filling extent ratio.
Further, the page furbishing device further include: second acquisition unit is used for before receiving touch signals,
Obtain the first picture and second picture, wherein first picture is the picture for the preset pattern that storage is not filled, institute
State the picture that second picture is the preset pattern that storage has all been filled;Unit is established, for establishing target widget, and
Using first picture and the second picture as parameter assignment in target widget, wherein the target widget is for filling out
Fill the preset pattern, wherein the fills unit includes: filling module, for continuing in the touch signals according to predetermined
It is pre- to being shown in the current display page according to the target direction determined by the target widget in the case that direction is slided
If figure is filled.
Further, the page furbishing device further include: the second display unit, for the touch signals continue to
In the case where the predetermined direction sliding, after being filled to the preset pattern shown in the current display page, in institute
It states in the case that preset pattern is not completely filled, the second default text is shown in the current display page, wherein described
Second default text is for prompting the touch signals still to continue to slide according to the predetermined direction.
According to embodiments of the present invention, by receiving touch signals, wherein the touch signals are in contact arrangement screen
Current display page and the signal generated;In the case where the touch signals continue to slide according to predetermined direction, work as to described
The preset pattern shown in the preceding display page is filled;In the case where the preset pattern is completely filled, work as described
The first default text is shown in the preceding display page;Wherein, the described first default text for prompt equipment holder interrupt or
Stop contacting the device screen;In the case where showing the first default text in the current display page, the touching is judged
Whether screen signal is released;And in the case where judging that the touch signals are released, refresh in the device screen
The current display page, it is more complicated to solve the mode refreshed in the prior art to current display page, causes to use
The inconvenient problem in family, and then achieved the effect that simplified user refreshes current display page operation.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of page furbishing method according to an embodiment of the present invention;And
Fig. 2 is the schematic diagram of page furbishing device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method that can be used for implementing the application Installation practice is provided,
It should be noted that step shown in the flowchart of the accompanying drawings can be in the department of computer science of such as a group of computer-executable instructions
It is executed in system, although also, logical order is shown in flow charts, and it in some cases, can be to be different from herein
Sequence execute shown or described step.
In embodiments of the present invention, equipment is with touching screen, and any type that can install application program are whole
End, such as mobile phone, tablet computer etc..
According to embodiments of the present invention, a kind of page furbishing method is provided.Fig. 1 is page brush according to an embodiment of the present invention
The flow chart of new method, as shown in Figure 1, this method includes the following steps, namely S102 to step S110:
Step S102: touch signals are received, wherein touch signals produce when being the current display page in contact arrangement screen
Raw signal.
Step S104: in the case where touch signals continue to slide according to predetermined direction, to being shown in current display page
Preset pattern be filled.
Step S106: in the case where preset pattern is completely filled, the first default text is shown in current display page
Word, wherein the first default text is for prompting touch signals stopping to slide according to predetermined direction.
Step S108: in current display page show the first default text in the case where, judge touch signals whether by
Release.
Step S110: the current display page in the case where judging that touch signals are released, in refreshing a device screen.
The touch screen generated when in embodiments of the present invention, by receiving the current display page in user's touch apparatus screen
Signal, and the preset pattern occurred in current display page is filled out according to the touch signals for continuing to slide to predetermined direction
It fills, realizes in a manner of showing filling graph amount the drop-down journey for prompting user to the current display page in device screen
Degree, is completely filled in preset pattern, and after slide of user's release in current display page, can be completed to working as
The refreshing of the preceding display page.It being compared in the prior art, user needs to first pass through the Menu key for clicking current display page, from
In find refreshing key, then click the refreshing key, the mode of operation of page furbishing can be completed, the embodiment of the present invention is mentioned
In the page furbishing mode of confession, user need to only touch the current display page in screen, and slide according to predetermined direction, to default
Release when filling graph finishes, to complete refresh operation, the operating process of such page furbishing is relatively simple, solves existing
The mode refreshed in technology to current display page is more complicated, leads to the problem of user's operation inconvenience, and then reach
Simplify the effect that user refreshes current display page operation.
It should be noted that page furbishing method provided by the above embodiment of the present invention can be applied to any be mounted on
In application program in terminal device.
Optionally, current display page is when front opening is mounted on the page that any application program in equipment obtains.
Optionally, as long as can play and be filled out to the preset pattern shown in current display page after touch signals sliding
The effect filled, the glide direction of the touch signals are exactly the predetermined direction in the above embodiment of the present invention.For example, predetermined direction can
Be from top to bottom, from the bottom to top, from left to right and from right to left in any one straight line or radian etc., it is specifically above-mentioned
Which kind of situation can be arranged according to demand.
Optionally, the content of the first default text can be arranged according to demand, such as: release refreshes.When the first default text
When word is that release refreshes, in the case where preset pattern has been completely filled, display " release refreshes " in current display page.
Optionally, the concrete shape of preset pattern and size can be arranged according to demand.The shape of preset pattern can be with
Be it is regular, be also possible to irregular.Such as: the logo of some application program or some company, square, rectangle
Deng.
Further alternative, in embodiments of the present invention, display position and display mode to the first default text are not
It limits.For example, the display position of the first default text includes but is not limited to any position in the surrounding of preset pattern, show
The mode of showing can be by left-to-right display, be also possible to show from top to bottom, can specifically be determined according to user demand.
As an alternative embodiment, in the case where the first default text is shown in current display page, touch screen is judged
Whether signal is released can be with are as follows: in the case where showing the first default text in current display page, judges touch signals
Whether still exist.
As an alternative embodiment, in the case where judging that touch signals are released, working as in refreshing a device screen
The preceding display page can be with are as follows: in the presence of judging touch signals not still, refreshes in such a way that drop-down refreshes
Shown current display page in device screen.
As an alternative embodiment, after judging that touch signals are released, page provided by the embodiment of the present invention
Face method for refreshing further include: whether judgement receives touch signals within a preset time again, wherein is judging when default
In do not receive touch signals again in the case where, the current display page in refreshing a device screen.Preset time can root
It is arranged according to demand, such as: 2S.
As an alternative embodiment, before judging whether touch signals are released, provided by the embodiment of the present invention
Page furbishing method further include: in current display page show the first default text after, judge touch signals whether according to
Pre-programmed curve sliding, wherein in the case where judging that touch signals are slided according to pre-programmed curve, then whether judge touch signals
It is released.Pre-programmed curve can be any one with cambered curve.
As an alternative embodiment, in the case where touch signals continue to slide according to predetermined direction, the present invention is implemented
Page furbishing method provided by example include thes steps that following S1 to step S5:
Step S1: obtaining touch signals and continue the distance slided according to predetermined direction, and obtained above-mentioned distance was both,
In, the unit of the first distance is pixel.
Step S3: judge whether first distance is greater than or equal to pre-determined distance threshold value.
In embodiments of the present invention, pre-determined distance threshold value can be arranged according to demand.Such as: 10 pixels.
Step S5: in the case where judging that first distance is greater than or equal to pre-determined distance threshold value, in current display page
Show preset pattern, that is, only slide in current display page in device screen in touch signals according to predetermined direction
In the case that distance is greater than or equal to pre-determined distance threshold value, preset pattern can be just shown in current display page.
For above-mentioned optional embodiment, it should be noted that first distance refers to by current in touch apparatus screen
When showing the page, the initial position for generating touch signals continues to slide according to predetermined direction to the touch signals, until stopping sliding
The distance between the position being located at when dynamic.
Further it should be noted that, above-mentioned touch signals may include following situation during sliding:
Situation one: touch signals do not have after persistently sliding into a certain position according to predetermined direction from the initial position that it is generated
It is released, but temporal persistence in above-mentioned a certain position, then first distance is temporarily the initial position that the touch signals generate
Extremely the distance between above-mentioned a certain position, then, if touch signals continue to slide according to predetermined direction from above-mentioned a certain position,
And stop sliding when sliding into the second position, at this point, first distance then becomes the initial position by the touch signals and should
When touch signals stop sliding, the distance between the second position at place.
Situation two: touch signals do not have after persistently sliding into a certain position according to predetermined direction from the initial position that it is generated
It is released, but temporal persistence in above-mentioned a certain position, then first distance is temporarily the initial position that the touch signals generate
Extremely the distance between above-mentioned a certain position, but then, which is the opposite direction sliding according to predetermined direction, and
Stop sliding when sliding into the third place, at this point, first distance then becomes the initial position by generation touch signals to the touch screen
When signal stops sliding, the distance between the third place at place.
As an alternative embodiment, in embodiments of the present invention, persistently slided according to predetermined direction in touch signals
In the case of, the preset pattern shown in current display page is filled and includes the following steps, namely S7 to step S9:
Step S7: the height of preset pattern is obtained, second distance is obtained.
In embodiments of the present invention, the height of preset pattern refers to the height that the preset pattern extends along axis of ordinates direction
Degree.Likewise, the unit of the second distance is also pixel.
Step S9: the filling extent to preset pattern is determined according to first distance and second distance.
It is further alternative, it can be according to formulaIt determines to the filling extent of preset pattern, wherein C is
First distance, TIfFor pre-determined distance threshold value, T is second distance, and F is filling extent ratio, is referred to as fill factor.
Assuming that: C is 70 pixels, TIfFor 10 pixels, T is 100 pixels, thenWhen first distance is
When 70 pixel, 60% preset pattern is filled.
As an alternative embodiment, before receiving touch signals, needs to establish one and filled out for realizing preset pattern
The control of effect is filled, page furbishing method provided by the embodiment of the present invention include thes steps that following S11 to step S13:
Step S11: the first picture and second picture are obtained, wherein the first picture is the preset pattern that storage is not filled
Picture, second picture is the picture of preset pattern that storage has all been filled.
Step S13: establishing target widget, and using the first picture and second picture as parameter assignment in target widget,
Wherein, target widget is for filling preset pattern.
It is already provided in the target widget of above-mentioned steps S13 when touch signals continue to slide according to predetermined direction,
To the filling direction of preset pattern, i.e. target direction.Specifically, above-mentioned when touch signals continue to slide according to predetermined direction
Direction (direction i.e. from the bottom to top) by bottom to the top of preset pattern can be to the filling direction of preset pattern, it can also
To be the direction (direction i.e. from top to bottom) by top to the bottom of preset pattern.
At this point, in the case where touch signals continue to slide according to predetermined direction, it is pre- to what is shown in current display page
If it includes: to determine in the case where touch signals continue to slide according to predetermined direction according to by target widget that figure, which is filled,
Target direction the preset pattern shown in current display page is filled, that is, according to the target side in target control
It is filled to the preset pattern in current display page.It is assumed that target direction is bottom to the top by preset pattern
Direction, then after determining to the filling extent of preset pattern, according to the direction of the bottom by preset pattern to top to default figure
Shape is filled.
In embodiments of the present invention, it by establishing the control that there is preset pattern to fill function, realizes in lasting reception
When to touch signals according to predetermined direction, the effect that preset pattern can be filled according to target direction.
It should be noted that if touch signals are not released, and then hold after continuing to slide according to predetermined direction
The continuous opposite direction according to predetermined direction slides, then being at this time according to above-mentioned target direction to the loading of preset pattern (degree)
Opposite direction reduce, also, the specifically filling extent of preset pattern depend on touch signals at this time continue according to predetermined party
To the size of the distance of sliding.
Preferably, pre- to what is shown in current display page in the case where touch signals continue to slide to predetermined direction
After if figure is filled, page furbishing method provided by the embodiment of the present invention further include: in preset pattern not by whole
In the case where filling, the second default text is shown in current display page, wherein the second default text is for prompting touch screen to believe
Number still continue to slide according to predetermined direction, that is, the second text is for prompting user equipment holder to still need to continue according to predetermined
It is slided in current display page in direction.
Optionally, the second default text can be arranged according to demand, such as: drop-down refreshes.
The embodiment of the present invention it is, in the case where preset pattern is not completely filled, there is also prompt user after
The continuous text according to predetermined direction sliding touch signals, so that preset pattern is completely filled, and shows the first default text,
To complete the refresh operation to the current display page in device screen, to obtain newest content.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, additionally provide it is a kind of for implementing the page furbishing device of above-mentioned page furbishing method,
The page furbishing device is mainly used for executing page furbishing method provided by above content of the embodiment of the present invention, below to this hair
Page furbishing device provided by bright embodiment does specific introduction:
In embodiments of the present invention, equipment is with touching screen, and any type that can install application program are whole
End, such as mobile phone, tablet computer etc..
Fig. 2 is the schematic diagram of page furbishing device according to an embodiment of the present invention, as shown in Fig. 2, the device mainly includes:
Receiving unit 10, fills unit 20, the first display unit 30, the first judging unit 40 and refresh unit 50, in which:
Receiving unit 10 is for receiving touch signals, wherein touch signals are the current display page in contact arrangement screen
The signal generated when face.
Fills unit 20 is used in the case where touch signals continue to slide according to predetermined direction, in current display page
The preset pattern of display is filled.
First display unit 30 is used in the case where preset pattern is completely filled, and the is shown in current display page
One default text, wherein the first default text is for prompting touch signals stopping to slide according to predetermined direction.
In the case that first judging unit 40 is used to show the first default text in current display page, judge that touch screen is believed
Number whether it is released.
Refresh unit 50 is for the current display in the case where judging that touch signals are released, in refreshing a device screen
The page.
The touch screen generated when in embodiments of the present invention, by receiving the current display page in user's touch apparatus screen
Signal, and the preset pattern occurred in current display page is filled out according to the touch signals for continuing to slide to predetermined direction
It fills, realizes in a manner of showing filling graph amount the drop-down journey for prompting user to the current display page in device screen
Degree, is completely filled in preset pattern, and after slide of user's release in current display page, can be completed to working as
The refreshing of the preceding display page.It being compared in the prior art, user needs to first pass through the Menu key for clicking current display page, from
In find refreshing key, then click the refreshing key, the mode of operation of page furbishing can be completed, the embodiment of the present invention is mentioned
In the page furbishing mode of confession, user need to only touch the current display page in screen, and slide according to predetermined direction, to default
Release when filling graph finishes, to complete refresh operation, the operating process of such page furbishing is relatively simple, solves existing
The mode refreshed in technology to current display page is more complicated, leads to the problem of user's operation inconvenience, and then reach
Simplify the effect that user refreshes current display page operation.
It should be noted that page furbishing device provided by the above embodiment of the present invention can be applied to any be mounted on
In application program in terminal device.
Optionally, current display page is when front opening is mounted on the page that any application program in equipment obtains.
Optionally, as long as after touch signals sliding, what can be played carries out the preset pattern shown in current display page
The effect of filling, the glide direction of the touch signals are exactly the predetermined direction in the above embodiment of the present invention.For example, predetermined direction
Can be any one straight line or the radian etc. in from top to bottom, from the bottom to top, from left to right and from right to left, specifically on
Stating which kind of situation can be arranged according to demand.
Optionally, the content of the first default text can be arranged according to demand, such as: release refreshes.When the first default text
When word is that release refreshes, in the case where preset pattern has been completely filled, display " release refreshes " in current display page.
Optionally, the concrete shape of preset pattern and size can be arranged according to demand.The shape of preset pattern can be with
Be it is regular, be also possible to irregular.Such as: the logo of some application program or some company, square, rectangle
Deng.
Further alternative, in embodiments of the present invention, display position and display mode to the first default text are not
It limits.For example, the display position of the first default text includes but is not limited to any position in the surrounding of preset pattern, show
The mode of showing can be by left-to-right display, be also possible to show from top to bottom, can specifically be determined according to user demand.
As an alternative embodiment, in the case where the first default text is shown in current display page, touch screen is judged
Whether signal is released can be with are as follows: in the case where showing the first default text in current display page, judges touch signals
Whether still exist.
As an alternative embodiment, in the case where judging that touch signals are released, working as in refreshing a device screen
The preceding display page can be with are as follows: in the presence of judging touch signals not still, refreshes in such a way that drop-down refreshes
Shown current display page in device screen.
As an alternative embodiment, page furbishing device provided by the embodiment of the present invention further includes that third judgement is single
Member, third judging unit are used for after judging that touch signals are released, and whether judgement receives again within a preset time
Touch signals, wherein in the case where judging not receive touch signals again within a preset time, in refreshing a device screen
Current display page.Preset time can be arranged according to demand, such as: 2S.
As an alternative embodiment, page furbishing device provided by the embodiment of the present invention further includes that the 4th judgement is single
Member, the 4th judging unit are used for before judging whether touch signals are released, and show that first is default in current display page
After text, judge whether touch signals slide according to pre-programmed curve, wherein judging that touch signals are sliding according to pre-programmed curve
In the case where dynamic, then judge whether touch signals are released.Pre-programmed curve can be any one with cambered curve, example
Such as, round, ellipse etc..
As an alternative embodiment, page furbishing device provided by the embodiment of the present invention further include: first obtain it is single
Member, second judgment unit and the second display unit, in which:
First acquisition unit is used to obtain touch signals in the case where touch signals continue to slide according to predetermined direction and hold
The continuous distance slided according to predetermined direction, obtained above-mentioned distance is first distance.The unit of the first distance is pixel.
Second judgment unit is for judging whether first distance is greater than or equal to pre-determined distance threshold value.
In embodiments of the present invention, pre-determined distance threshold value can be arranged according to demand.Such as: 10 pixels.
Second display unit is used in the case where judging that first distance is greater than or equal to pre-determined distance threshold value, current aobvious
Show and show preset pattern in the page, that is, the current display page only in touch signals according to predetermined direction in device screen
In the case that the distance of upper sliding is greater than or equal to pre-determined distance threshold value, preset pattern can be just shown in current display page.
For above-mentioned optional embodiment, it should be noted that the first distance in first acquisition unit refers to by touching
When current display page in device screen, initial position to the touch signals for generating touch signals continue according to predetermined direction
Sliding, until stopping the distance between the position being located at when sliding.
Further it should be noted that, above-mentioned touch signals may include following situation during sliding:
Situation one: touch signals do not have after persistently sliding into a certain position according to predetermined direction from the initial position that it is generated
It is released, but temporal persistence in above-mentioned a certain position, then first distance is temporarily the initial position that the touch signals generate
Extremely the distance between above-mentioned a certain position, then, if touch signals continue to slide according to predetermined direction from above-mentioned a certain position,
And stop sliding when sliding into the second position, at this point, first distance then becomes the initial position by the touch signals and should
When touch signals stop sliding, the distance between the second position at place.
Situation two: touch signals do not have after persistently sliding into a certain position according to predetermined direction from the initial position that it is generated
It is released, but temporal persistence in above-mentioned a certain position, then first distance is temporarily the initial position that the touch signals generate
Extremely the distance between above-mentioned a certain position, but then, which is the opposite direction sliding according to predetermined direction, and
Stop sliding when sliding into the third place, at this point, first distance then becomes the initial position by generation touch signals to the touch screen
When signal stops sliding, the distance between the third place at place.
As an alternative embodiment, in embodiments of the present invention, fills unit 20 includes obtaining module and determining module,
Wherein:
The height that module is used to obtain preset pattern is obtained, second distance is obtained.In embodiments of the present invention, preset pattern
Height refer to the height that the preset pattern extends along axis of ordinates direction.Likewise, the unit of the second distance is also pixel.
Determining module is used to determine the filling extent to preset pattern according to first distance and second distance.
Further alternative, determining module includes determining submodule, determines submodule for according to formulaReally
The fixed filling extent to preset pattern, wherein C is first distance, TIfFor pre-determined distance threshold value, T is second distance, and F is filling
Degree ratio, is referred to as fill factor.
Assuming that: C is 70 pixels, TIfFor 10 pixels, T is 100 pixels, thenWhen first distance is
When 70 pixel, 60% preset pattern is filled.
As an alternative embodiment, before receiving touch signals, needs to establish one and filled out for realizing preset pattern
The control of effect is filled, page furbishing device provided by the embodiment of the present invention further includes second acquisition unit and establishes unit,
In:
Second acquisition unit is used for before receiving touch signals, obtains the first picture and second picture, wherein the first figure
Piece is the picture for the preset pattern that storage is not filled, and second picture is the picture for the preset pattern that storage has all been filled.
Unit is established for establishing target widget, and using the first picture and second picture as parameter assignment in target widget
In, wherein target widget is for filling preset pattern.
It is already provided in above-mentioned establish in the target widget of unit when touch signals continue to slide according to predetermined direction,
To the filling direction of preset pattern, i.e. target direction.Specifically, above-mentioned when touch signals continue to slide according to predetermined direction
Direction (direction i.e. from the bottom to top) by bottom to the top of preset pattern can be to the filling direction of preset pattern, it can also
To be the direction (direction i.e. from top to bottom) by top to the bottom of preset pattern.
At this point, fills unit 20 includes filling module, filling module is used to continue in touch signals sliding according to predetermined direction
In the case where dynamic, the preset pattern shown in current display page is filled out according to the target direction determined by target widget
It fills, that is, being filled according to the target direction in target control to the preset pattern in current display page.It is assumed that target
Direction is by the direction on bottom to the top of preset pattern, then after determining to the filling extent of preset pattern, according to by presetting
The direction on the bottom of figure to top is filled preset pattern.
In embodiments of the present invention, it by establishing the control that there is preset pattern to fill function, realizes in lasting reception
When to touch signals according to predetermined direction, the effect that preset pattern can be filled according to target direction.
It should be noted that if touch signals are not released, and then hold after continuing to slide according to predetermined direction
The continuous opposite direction according to predetermined direction slides, then being at this time according to above-mentioned target direction to the loading of preset pattern (degree)
Opposite direction reduce, also, the specifically filling extent of preset pattern depend on touch signals at this time continue according to predetermined party
To the size of the distance of sliding.
Preferably, page furbishing device provided by the embodiment of the present invention further includes the second display unit.Wherein, second is aobvious
Show that unit is used in the case where touch signals continue to slide to predetermined direction, to the preset pattern shown in current display page
After being filled, in the case where preset pattern is not completely filled, the second default text is shown in current display page,
Wherein, the second default text is for prompting touch signals still to continue to slide according to predetermined direction, that is, the second text is for prompting
User equipment holder still needs to continue to slide in current display page according to predetermined direction.
Optionally, the second default text can be arranged according to demand, such as: drop-down refreshes.
The embodiment of the present invention it is, in the case where preset pattern is not completely filled, there is also prompt user after
The continuous text according to predetermined direction sliding touch signals, so that preset pattern is completely filled, and shows the first default text,
To complete the refresh operation to the current display page in device screen, to obtain newest content.
Current display page is refreshed in the prior art it can be seen from the above description that the present invention solves
Mode it is more complicated, lead to the problem of user's operation inconvenience, and then reached simplified user and refreshed current display page operation
Effect.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (8)
1. a kind of page furbishing method characterized by comprising
Receive touch signals, wherein the signal that the touch signals generate when being the current display page in contact arrangement screen;
It is default to what is shown in the current display page in the case where the touch signals continue to slide according to predetermined direction
Figure is filled;
In the case where the preset pattern is completely filled, the first default text is shown in the current display page;Its
In, the first default text is for prompting the touch signals to stop sliding according to the predetermined direction;
In the case where showing the first default text in the current display page, judge whether the touch signals are released;
And
In the case where judging that the touch signals are released, refresh the current display page in the device screen;
Wherein, in the case where the touch signals continue to slide according to predetermined direction, to being shown in the current display page
Preset pattern to be filled include: the height for obtaining the preset pattern, obtain second distance;And according to first distance and
The second distance determines the filling extent to the preset pattern;
Include: to the filling extent of the preset pattern according to the first distance and second distance determination
According to formulaDetermine the filling extent to the preset pattern, wherein C is the first distance, TIfIt is pre-
If distance threshold, T is the second distance, and F is filling extent ratio;
Wherein, when the first distance is referred to by current display page in touch apparatus screen, the starting of touch signals is generated
Position continues to slide according to predetermined direction to the touch signals, until stopping the distance between the position being located at when sliding.
2. page furbishing method according to claim 1, which is characterized in that continue in the touch signals according to predetermined party
In the case where sliding, the page furbishing method further include:
It obtains the touch signals and continues the distance slided according to the predetermined direction, obtain first distance;
Judge whether the first distance is greater than or equal to pre-determined distance threshold value;
In the case where judging that the first distance is greater than or equal to pre-determined distance threshold value, shown in the current display page
The preset pattern.
3. page furbishing method according to claim 1, which is characterized in that before receiving touch signals, the page
Method for refreshing further include:
Obtain the first picture and second picture, wherein first picture is the figure for the preset pattern that storage is not filled
Piece, the second picture are the picture for the preset pattern that storage has all been filled;
Target widget is established, and using first picture and the second picture as parameter assignment in target widget, wherein
The target widget is used to fill the preset pattern,
Wherein, in the case where the touch signals continue to slide according to predetermined direction, to being shown in the current display page
Preset pattern be filled include: the touch signals continue slided according to predetermined direction in the case where, according to by described
The target direction that target widget determines is filled the preset pattern shown in the current display page.
4. page furbishing method according to claim 1, which is characterized in that continue in the touch signals to described predetermined
In the case that direction is slided, after being filled to the preset pattern shown in the current display page, the page furbishing
Method further include:
In the case where the preset pattern is not completely filled, the second default text is shown in the current display page,
Wherein, the described second default text is for prompting the touch signals still to continue to slide according to the predetermined direction.
5. a kind of page furbishing device characterized by comprising
Receiving unit, for receiving touch signals, wherein the touch signals are the current display page in contact arrangement screen
When the signal that generates;
Fills unit, for the touch signals continue slided according to predetermined direction in the case where, to the current display page
The preset pattern shown in face is filled;
First display unit, for being shown in the current display page in the case where the preset pattern is completely filled
Show the first default text;Wherein, the described first default text is for prompting the touch signals to stop according to the predetermined direction
Sliding;
First judging unit judges the touching in the case where for showing the first default text in the current display page
Whether screen signal is released;And
Refresh unit, it is described in the device screen for refreshing in the case where judging that the touch signals are released
Current display page;
Wherein, the fills unit includes: that acquisition module for obtaining the height of the preset pattern obtains second distance;With
And determining module, for determining the filling extent to the preset pattern according to first distance and the second distance;
The determining module includes:
Submodule is determined, for according to formulaDetermine the filling extent to the preset pattern, wherein C is described
First distance, TIfFor pre-determined distance threshold value, T is the second distance, and F is filling extent ratio;
Wherein, when the first distance is referred to by current display page in touch apparatus screen, the starting of touch signals is generated
Position continues to slide according to predetermined direction to the touch signals, until stopping the distance between the position being located at when sliding.
6. page furbishing device according to claim 5, which is characterized in that the page furbishing device further include:
First acquisition unit, for obtaining the touch screen in the case where the touch signals continue to slide according to predetermined direction
Signal continues the distance slided according to the predetermined direction, obtains first distance;
Second judgment unit, for judging whether the first distance is greater than or equal to pre-determined distance threshold value;
Second display unit, for judge the first distance be greater than or equal to pre-determined distance threshold value in the case where, it is described
The preset pattern is shown in current display page.
7. page furbishing device according to claim 5, which is characterized in that the page furbishing device further include:
Second acquisition unit, for obtaining the first picture and second picture, wherein described first before receiving touch signals
Picture is the picture of the preset pattern that storage is not filled, the second picture be store all be filled it is described pre-
If the picture of figure;
Unit is established, for establishing target widget, and using first picture and the second picture as parameter assignment in mesh
It marks in control, wherein the target widget is used to fill the preset pattern,
Wherein, the fills unit includes: filling module, the feelings for continuing to slide according to predetermined direction in the touch signals
Under condition, the preset pattern shown in the current display page is filled out according to the target direction determined by the target widget
It fills.
8. page furbishing device according to claim 5, which is characterized in that the page furbishing device further include:
Second display unit is used in the case where the touch signals continue to slide to the predetermined direction, to described current
After the preset pattern shown in the display page is filled, in the case where the preset pattern is not completely filled, in institute
State the second default text of display in current display page, wherein the second default text is for prompting the touch signals still
Continue to slide according to the predetermined direction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510293762.XA CN104834474B (en) | 2015-06-01 | 2015-06-01 | Page furbishing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510293762.XA CN104834474B (en) | 2015-06-01 | 2015-06-01 | Page furbishing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104834474A CN104834474A (en) | 2015-08-12 |
CN104834474B true CN104834474B (en) | 2019-05-31 |
Family
ID=53812391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510293762.XA Expired - Fee Related CN104834474B (en) | 2015-06-01 | 2015-06-01 | Page furbishing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104834474B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112925458B (en) * | 2015-12-10 | 2022-09-30 | 腾讯科技(深圳)有限公司 | Information processing method, device, equipment and computer readable storage medium |
CN106681602B (en) * | 2016-11-25 | 2019-06-21 | 努比亚技术有限公司 | A kind of terminal display control unit and method |
CN106598610B (en) * | 2016-12-19 | 2020-06-02 | 北京小米移动软件有限公司 | Refreshing implementation method and device based on webpage application |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101853130A (en) * | 2010-05-17 | 2010-10-06 | 中兴通讯股份有限公司 | Unlocking method and device of touch screen and terminal equipment |
CN103425416A (en) * | 2012-05-20 | 2013-12-04 | 北京千橡网景科技发展有限公司 | Display control method and device used for portable device |
CN103513856A (en) * | 2012-06-28 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Method and device for refreshing page |
CN104133869A (en) * | 2014-07-21 | 2014-11-05 | 深圳市金立通信设备有限公司 | Webpage page refreshing method |
CN104252354A (en) * | 2013-06-29 | 2014-12-31 | 北京新媒传信科技有限公司 | Method and device for refreshing data list of intelligent terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8448084B2 (en) * | 2010-04-08 | 2013-05-21 | Twitter, Inc. | User interface mechanics |
-
2015
- 2015-06-01 CN CN201510293762.XA patent/CN104834474B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101853130A (en) * | 2010-05-17 | 2010-10-06 | 中兴通讯股份有限公司 | Unlocking method and device of touch screen and terminal equipment |
CN103425416A (en) * | 2012-05-20 | 2013-12-04 | 北京千橡网景科技发展有限公司 | Display control method and device used for portable device |
CN103513856A (en) * | 2012-06-28 | 2014-01-15 | 腾讯科技(深圳)有限公司 | Method and device for refreshing page |
CN104252354A (en) * | 2013-06-29 | 2014-12-31 | 北京新媒传信科技有限公司 | Method and device for refreshing data list of intelligent terminal |
CN104133869A (en) * | 2014-07-21 | 2014-11-05 | 深圳市金立通信设备有限公司 | Webpage page refreshing method |
Also Published As
Publication number | Publication date |
---|---|
CN104834474A (en) | 2015-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11412292B2 (en) | Video processing method, video processing device, and storage medium | |
CN105117190B (en) | LED display screen configuration method | |
CN105487760B (en) | Method and device for displaying message and electronic equipment | |
CN104834474B (en) | Page furbishing method and device | |
CN108566312A (en) | Off-line checking method, device and computer readable storage medium | |
CN104714454B (en) | A kind of method and system of multiplexing chip pins | |
CN103853481B (en) | Method and system for simulating touch screen mobile terminal key | |
CN104991696B (en) | A kind of information processing method and electronic equipment | |
CN103809853B (en) | A kind of information processing method and electronic equipment | |
CN104516763B (en) | A kind of startup method and device of application program | |
CN106201232A (en) | A kind of interactive approach based on webpage barrage and device | |
CN105867727A (en) | Display method and device of multiple application interfaces | |
CN105611316B (en) | A kind of method, apparatus and system adjusting frame per second | |
CN109147194A (en) | Charging accounting method | |
CN108600399A (en) | Information-pushing method and Related product | |
CN104484038A (en) | Method and device for controlling intelligent equipment | |
CN106354376B (en) | Information processing method and client | |
CN104320162B (en) | Method for synchronizing contact persons, intelligent mobile terminal and mobile terminal | |
CN109636875B (en) | Graph drawing method, device and storage medium | |
CN104166559B (en) | Delete the method and device of default desktop | |
US20170180671A1 (en) | Method for displaying operation trajectory , an electronic device and a non-transitory computer-readable storage medium | |
CN106161725B (en) | A kind of information processing method and electronic equipment | |
CN104317453B (en) | touch screen writing method and system | |
CN105446597A (en) | Presentation method and present apparatus for function description information of application, and terminal | |
CN106201549A (en) | Control method and device for information in application program and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Page refreshing method and device Effective date of registration: 20200525 Granted publication date: 20190531 Pledgee: Pudong Development Silicon Valley Bank Co., Ltd. Beijing branch Pledgor: ZOUBIAN SHIJIE (BEIJING) INFORMATION TECHNOLOGY Co.,Ltd. Registration number: Y2020110000005 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190531 Termination date: 20210601 |
|
CF01 | Termination of patent right due to non-payment of annual fee |