CN104199643A - Progress bar loading control method and device and electronic equipment - Google Patents

Progress bar loading control method and device and electronic equipment Download PDF

Info

Publication number
CN104199643A
CN104199643A CN201410390556.6A CN201410390556A CN104199643A CN 104199643 A CN104199643 A CN 104199643A CN 201410390556 A CN201410390556 A CN 201410390556A CN 104199643 A CN104199643 A CN 104199643A
Authority
CN
China
Prior art keywords
loading
progress bar
cut
point
loaded
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.)
Granted
Application number
CN201410390556.6A
Other languages
Chinese (zh)
Other versions
CN104199643B (en
Inventor
张宁奕
余雄风
苏夏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Conew Network Technology Beijing Co Ltd
Original Assignee
Conew Network Technology Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Conew Network Technology Beijing Co Ltd filed Critical Conew Network Technology Beijing Co Ltd
Priority to CN201410390556.6A priority Critical patent/CN104199643B/en
Publication of CN104199643A publication Critical patent/CN104199643A/en
Application granted granted Critical
Publication of CN104199643B publication Critical patent/CN104199643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a progress bar loading control method and device and electronic equipment. The method comprises the steps of controlling a progress bar to load from the initial progress bar loading position to a first break point at uniform speed in a first period of time; controlling the progress bar to load from the first break point to a second break point in a deceleration mode in a second period of time, wherein the first break point and the second break point are arranged between the initial progress bar loading position and the progress bar loading ending position, and the first period of time is shorter than the second period of time; if the loading completing information of a task corresponding to the progress bar is monitored after the progress bar is loaded to the second break point, controlling the progress bar to load from the second break point to the loading completing position. According to the progress bar loading control method, the progress bar loading smoothness is improved, meanwhile, the rapid loading experience can be provided for a user, the loading completing information can be accurately provided for the user, and user experience is improved.

Description

Control method, device and electronic equipment that progress bar loads
Technical field
The present invention relates to field of computer technology, relate in particular to control method, device and electronic equipment that a kind of progress bar loads.
Background technology
In order to make user can understand the processing progress of file or data, as processing speed, performance, surplus etc., can pass through progress display, as the forms such as progress bar are shown the processing progress of file or data visually for user.At present, progress bar has been applied to various scenes, for example, can show with progress bar process, file scanning process, document transmission process of browser Web page loading etc.But, in the process loading at progress bar, the executing state according to task mostly, as web data heap(ed) capacity, file scanning number etc. is controlled the loading progress of progress bar, and these states are very unstable, sometimes fast and sometimes slow, for example, when data or file hour, will load very smooth, when data or file are when larger, the response time needing will be longer, the loading progress of progress bar just shows as for a long time and does not change, or even stagnation, thereby causes user can take for tasks carrying failure or deadlock.
At present, although exist some by the loading velocity of progress bar is controlled to make the loading of progress bar more smooth and easy, level and smooth.But, these Technology Needs depend on the deadline of the corresponding task of progress bar, first obtain the deadline of task, thereby control the speed of progress bar according to the deadline of task, in fact, when the deadline of task is subject to equipment performance, network factors and executes the task, the impact of the many factors such as equipment operating environment, is difficult to Obtaining Accurate, therefore, still need a control method that stable, smooth progress bar loading procedure can be provided for user.
Summary of the invention
The present invention is intended to solve at least to a certain extent one of technical matters in correlation technique.For this reason, the object of first aspect present invention is to propose the control method that a kind of progress bar loads, and has improved the smoothness sense that progress bar loads, and can bring the very fast loading of user simultaneously and experience, and has promoted user's experience.
The object of a second aspect of the present invention is to propose the control device that a kind of progress bar loads.
The object of a third aspect of the present invention is to propose a kind of electronic equipment.
For reaching above-mentioned purpose, according to first aspect present invention embodiment, the control method that a kind of progress bar loads is proposed, comprising: control progress bar and be at the uniform velocity loaded on the first cut-point through the very first time from the loading reference position of described progress bar; Controlling described progress bar slowed down and is loaded on the second cut-point from described the first cut-point through the second time; Wherein, described the first separation and the second cut-point are arranged on the loading reference position of described progress bar and load between end position, and the described very first time is less than described the second time; Complete information if listen to the loading of the task that described progress bar is corresponding after described progress bar is loaded on described the second cut-point, control described progress bar and be loaded on described loading end position from described the second cut-point.
The control method that the progress bar of the embodiment of the present invention loads, by in advance in the loading reference position of progress bar and load and cut-point is set between end position divides between to progress bar loading zone, and setting is loaded into the time of each cut-point, thereby control progress bar and loaded in the short period of time a longer interval, thereby can give the experience of user with rapid loading, and load the execution of wait task by the deceleration of long period in an ensuing shorter interval, and the situation that there will not be card to pause.Thus, the method of the embodiment of the present invention, with respect to current method, improve the smoothness sense that progress bar loads, avoid user to take for the situation that progress bar loads failure or stops, can bring the very fast loading of user simultaneously and experience, and can accurately loading be completed to information and offer user, promote user's experience.
The control device that the embodiment of a second aspect of the present invention provides a kind of progress bar to load, comprising: the first control module, is at the uniform velocity loaded on first cut-point through the very first time from the loading reference position of described progress bar for controlling progress bar; The second control module, slows down and is loaded on the second cut-point from described the first cut-point through the second time for controlling described progress bar; Wherein, described the first separation and the second cut-point are arranged on the loading reference position of described progress bar and load between end position, and the described very first time is less than described the second time; The 3rd control module, when the loading that listens to the task that described progress bar is corresponding after described the second cut-point completes information, controls described progress bar and is loaded on described loading end position from described the second cut-point for being loaded at described progress bar.
The control device that the progress bar of the embodiment of the present invention loads, by in advance in the loading reference position of progress bar and load and cut-point is set between end position divides between to progress bar loading zone, and setting is loaded into the time of each cut-point, thereby control progress bar and loaded in the short period of time a longer interval, thereby can give the experience of user with rapid loading, and load the execution of wait task by the deceleration of long period in an ensuing shorter interval, and the situation that there will not be card to pause.Thus, the scheme of the embodiment of the present invention, with respect to current scheme, improve the smoothness sense that progress bar loads, avoid user to take for the situation that progress bar loads failure or stops, can bring the very fast loading of user simultaneously and experience, and can accurately loading be completed to information and offer user, promote user's experience.
The embodiment of a third aspect of the present invention provides a kind of electronic equipment, comprise: shell, display, circuit board and processor, wherein, described circuit board is placed in the interior volume that described shell surrounds, described display is in described housing exterior, and is connected with described circuit board, and described processor is arranged on described circuit board; Described processor is for the treatment of data, and specifically for: control progress bar and be at the uniform velocity loaded on the first cut-point through the very first time from the loading reference position of described progress bar; Controlling described progress bar slowed down and is loaded on the second cut-point from described the first cut-point through the second time; Wherein, described the first separation and the second cut-point are arranged on the loading reference position of described progress bar and load between end position, and the described very first time is less than described the second time; Complete information if listen to the loading of the task that described progress bar is corresponding after described progress bar is loaded on described the second cut-point, control described progress bar and be loaded on described loading end position from described the second cut-point.
The electronic equipment of the embodiment of the present invention, by in advance in the loading reference position of progress bar and load and cut-point is set between end position divides between to progress bar loading zone, and setting is loaded into the time of each cut-point, thereby control progress bar and loaded in the short period of time a longer interval, thereby can give the experience of user with rapid loading, and load the execution of wait task by the deceleration of long period in an ensuing shorter interval, and the situation that there will not be card to pause.Thus, improve the smoothness sense that progress bar loads, avoided user to take for the situation that progress bar loads failure or stops, can having brought the very fast loading of user simultaneously and experience, and can accurately loading have been completed to information and offer user, promoted user's experience.
Brief description of the drawings
Above-mentioned and/or additional aspect of the present invention and advantage accompanying drawing below combination is understood becoming the description of embodiment obviously and easily, wherein:
Fig. 1 is the process flow diagram of the control method that progress bar loads according to an embodiment of the invention;
Fig. 2 a is the speed control schematic diagram that loads progress bar according to the page in the browser of one embodiment of the invention;
Fig. 2 b changes schematic diagram according to the loading velocity of progress bar in loading procedure of one embodiment of the invention;
Fig. 3 is the structural representation of the control device that progress bar loads according to an embodiment of the invention;
Fig. 4 is the structural representation of the control device of the progress bar loading of a specific embodiment according to the present invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar assembly or has the assembly of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, be intended to for explaining the present invention, and can not be interpreted as limitation of the present invention.
The control method, device and the electronic equipment that load according to the progress bar of the embodiment of the present invention are described below with reference to accompanying drawing.
Fig. 1 is the process flow diagram of the control method that progress bar loads according to an embodiment of the invention.
As shown in Figure 1, the control method that this progress bar loads, comprising:
S101, controls progress bar and is at the uniform velocity loaded on the first cut-point through the very first time from the loading reference position of progress bar.
S102, controls progress bar and slows down and be loaded on the second cut-point from the first cut-point through the second time.Wherein, the first separation and the second cut-point are arranged on the loading reference position of progress bar and load between end position, and the very first time was less than for the second time.
It should be noted that, in the embodiment of the present invention, progress bar is corresponding with task, that is to say, progress bar is implementation progress for show from task to user.Taking browser as example, in the time of browser Web page loading, the progress that progress bar loads for displaying web page, the corresponding webpage of progress bar loads this task.
In one embodiment of the invention, the loading reference position of progress bar and end position can be definite according to the loading interface that loads progress bar, and wherein, loading interface can be that file scan progress interface, webpage load interface etc.In loading interface, progress bar has corresponding loading reference position and initial position, taking browser as example, in the time of browser load page, can be as shown in Figure 2 a, progress bar be to be loaded on right edge from the limit, left side of browser, thus, can determine the loading reference position of progress bar and load end position is respectively A point and B point, and can the progress bar in browser be divided into first stage, subordinate phase and phase III three phases altogether by the first cut-point and the second cut-point are set.
In a preferred embodiment of the invention, the first cut-point is greater than and loads reference position and load 1/2 of distance between end position to loading the distance (length of first stage) of reference position, for example, can be to start the position at whole progress bar 70% from A; The second cut-point is less than and loads reference position and load 1/10 of distance between end position to loading the distance (phase III) of end position, for example, can be whole progress bar 95% position from left to right.
In addition, after the first cut-point and the second cut-point setting complete, progress bar is set respectively and is loaded on the very first time of the first cut-point and is loaded on the second time of the second cut-point from the first cut-point from loading reference position.Particularly, the very first time can be set to shorter a period of time, as 1 second, thereby can give the very fast sensation of user task execution speed in the first stage, while having loaded the first stage due to progress bar, the progress of tasks carrying may not complete so many, so for wait task implementation progress, the second time can be set to long period of time, as 10 seconds, thereby can carry out with the speed slightly slower compared with the first stage in subordinate phase, and can not give user's sensation that card pauses suddenly.
Particularly, in S101, first, obtain the first cut-point to the distance that loads reference position, and arrive and load the distance of reference position and the first loading velocity of very first time calculating progress bar according to the first cut-point, calculate the first loading velocity by following formula:
V1=a,
Wherein, a=S1/t1, V1 is the first loading velocity, and S1 is the distance of the first cut-point to loading reference position, and t1 is the very first time,
Then control progress bar and be at the uniform velocity loaded on the first cut-point with the first loading velocity from loading reference position.
Wherein, because S1 and T1 preset, therefore, V1 is a fixed constant.
In an embodiment of the present invention, for S102, can within the second time, be loaded on the second cut-point from the first cut-point by different deceleration strategies control progress bars, as the second loading velocity of controlling progress bar along with the load time reduce gradually or along with loading position with load initial position distance increase and reduce gradually etc., the present invention does not limit the concrete mode that reduces.
In a specific embodiment of the present invention, can be according to the loading position of progress bar, slow down and be loaded on the second loading velocity of the second cut-point from the first cut-point by following formula control progress bar, so that progress bar slows down and is loaded on the second cut-point from the first cut-point through the second time according to the second loading velocity:
V 2 = a ( - 2 π arctan ( bx + c ) ) + d ,
Wherein, V2 is the second loading velocity, and a is the first loading velocity, and the loading position that x is progress bar is to the distance that loads reference position, and b, c and d are default constant.
In an embodiment of the present invention, in S102, the second loading velocity that can control progress bar reduces to 0 in the time being loaded on the second cut-point.Particularly, V2=0 can make progress bar be loaded on the second cut-point by the value of adjustment b, c and d time.
For instance, work as b=8, c=-64, when d=1, in whole loading procedure, the variation of the loading velocity of progress bar can be as shown in Figure 2 b.Wherein, the loading position that transverse axis is progress bar is to the distance that loads reference position, the loading velocity that the longitudinal axis is progress bar.
Should be appreciated that also the loading position that can embody the second acceleration and progress bar by other is to the distance that loads reference position, or with the taper off function of relation of load time, the second loading velocity is controlled, do not enumerate at this.
S103, completes information if listen to the loading of the task that progress bar is corresponding after progress bar is loaded on the second cut-point, controls progress bar and is loaded on loading end position from the second cut-point.
In an embodiment of the present invention, loading progress msg that can the corresponding tasks carrying of real-time listening taskbar in the process loading at progress bar, in the time that task completes, can receive the loading that the task of being used to indicate completes and complete information.For example, for browser Web page loading, in the time that webpage has loaded, server can return to the information of loading.
If in the time that progress bar is loaded on the second cut-point, the loading velocity of having controlled progress bar is 0, after being loaded on the second cut-point, listen to while having loaded information, can directly control the complete phase III of progress bar rapid loading, rapid loading is to loading end position.
Certainly, if progress bar from load reference position be loaded on the first cut-point before or the loading that listens to the task that progress bar is corresponding before the second cut-point complete information, loading position rapid loading can control progress bar and loaded information from listening to time is to loading end position, and no longer loads according to speed control progress bar corresponding to this stage.Thereby when can ensureing the smooth rapid loading of progress bar, can accurately control progress bar according to task completion status and load.
As shown in Figure 2 a, taking browser as example, in the loading procedure of whole progress bar, the loading velocity variation tendency of progress bar is: first at the uniform velocity load in the first stage, this phases-time is shorter, but it is longer to load distance; Slow down and load in subordinate phase, this phases-time is longer, but it is shorter to load distance; The speed of phase III is for being close to 0 or be 0, and the distance in this stage is the shortest, thereby can control progress bar while having loaded information and be directly loaded on loading end position receiving, and gives user with smooth experience.
Therefore, the control method that the progress bar of the embodiment of the present invention loads, by in advance in the loading reference position of progress bar and load and cut-point is set between end position divides between to progress bar loading zone, and setting is loaded into the time of each cut-point, thereby control progress bar and loaded in the short period of time a longer interval, thereby can give the experience of user with rapid loading, and load the execution of wait task by the deceleration of long period in an ensuing shorter interval, and the situation that there will not be card to pause.Thus, the method of the embodiment of the present invention, with respect to current method, improve the smoothness sense that progress bar loads, avoid user to take for the situation that progress bar loads failure or stops, can bring the very fast loading of user simultaneously and experience, and can accurately loading be completed to information and offer user, promote user's experience.
In order to realize above-described embodiment, the present invention also proposes the control device that a kind of progress bar loads.
Fig. 3 is the structural representation of the control device that progress bar loads according to an embodiment of the invention.
As shown in Figure 3, the control device that this progress bar loads, comprising: the first control module 10, the second control module 20 and the 3rd control module 30.
The first control module 10 is at the uniform velocity loaded on first cut-point through the very first time from the loading reference position of progress bar for controlling progress bar.
The second control module 20 is slowed down and is loaded on the second cut-point from the first cut-point through the second time for controlling progress bar.
Wherein, the first separation and the second cut-point are arranged on the loading reference position of progress bar and load between end position, and the very first time was less than for the second time.
It should be noted that, in the embodiment of the present invention, progress bar is corresponding with task, that is to say, progress bar is implementation progress for show from task to user.Taking browser as example, in the time of browser Web page loading, the progress that progress bar loads for displaying web page, the corresponding webpage of progress bar loads this task.
In one embodiment of the invention, the loading reference position of progress bar and end position can be definite according to the loading interface that loads progress bar, and wherein, loading interface can be that file scan progress interface, webpage load interface etc.In loading interface, progress bar has corresponding loading reference position and initial position, taking browser as example, in the time of browser load page, can be as shown in Figure 2 a, progress bar be to be loaded on right edge from the limit, left side of browser, thus, the control device that the embodiment of the present invention provides can be determined the loading reference position of progress bar and load end position is respectively A point and B point, and can the progress bar in browser be divided into the first to the 3rd three phases by the first cut-point and the second cut-point are set.
In a preferred embodiment of the invention, the first cut-point is greater than and loads reference position and load 1/2 of distance between end position to loading the distance (length of first stage) of reference position, for example, can be to start the position at whole progress bar 70% from A, the second cut-point is less than and loads reference position and load 1/10 of distance between end position to loading the distance (phase III) of end position, for example, can be from left to right 95% position of whole progress bar.
In addition, after the first cut-point and the second cut-point setting complete, the control device that the embodiment of the present invention provides also can arrange respectively progress bar and be loaded on the very first time of the first cut-point and be loaded on the second time of the second cut-point from the first cut-point from loading reference position.Particularly, the very first time can be set to shorter a period of time, as 1 second, thereby can give the very fast sensation of user task execution speed in the first stage, while having loaded the first stage due to progress bar, the progress of tasks carrying may not complete so many, so for wait task implementation progress, the second time can be set to long period of time, as 10 seconds, thereby can carry out with the speed slightly slower compared with the first stage in subordinate phase, and can not give user's sensation that card pauses suddenly.
More specifically, as shown in Figure 4, the first control module 10 specifically comprises: acquiring unit 11, computing unit 12 and control module 13.
Wherein, acquiring unit 11 is for obtaining the first cut-point to the distance that loads reference position.
Computing unit 12 loads the distance of reference position and the first loading velocity of very first time calculating progress bar for arriving according to the first cut-point, calculates the first loading velocity by following formula:
V1=a,
Wherein, a=S1/t1, V1 is the first loading velocity, and S1 is the distance of the first cut-point to loading reference position, and t1 is the very first time,
Control module 13 is at the uniform velocity loaded on first cut-point with the first loading velocity from loading reference position for controlling progress bar.
Wherein, because S1 and T1 preset, therefore, V1 is a fixed constant.
In an embodiment of the present invention, the second control module 20 can be loaded on the second cut-point from the first cut-point by different deceleration strategies control progress bars within the second time, as the second loading velocity of controlling progress bar along with the load time reduce gradually or along with loading position with load initial position distance increase and reduce gradually etc., the present invention does not limit the concrete mode that reduces.
In a specific embodiment of the present invention, the second control module 20 can be according to the loading position of progress bar, slow down and be loaded on the second loading velocity of the second cut-point from the first cut-point by following formula control progress bar, so that progress bar slows down and is loaded on the second cut-point from the first cut-point through the second time according to the second loading velocity:
V 2 = a ( - 2 π arctan ( bx + c ) ) + d ,
Wherein, V2 is the second loading velocity, and a is the first loading velocity, and the loading position that x is progress bar is to the distance that loads reference position, and b, c and d are default constant.
In an embodiment of the present invention, the second loading velocity that the second control module 20 can be controlled progress bar reduces to 0 in the time being loaded on the second cut-point.Particularly, V2=0 when the second control module 20 can make progress bar be loaded on the second cut-point by the value of adjustment b, c and d.
Be to be understood that, the loading position that the second control module 20 also can embody the second acceleration and progress bar by other is to the distance that loads reference position, or with the taper off function of relation of load time, the second loading velocity is controlled, do not enumerated at this.
When the 3rd control module 30 listens to the task that progress bar is corresponding after the second cut-point loading for being loaded at progress bar completes information, control progress bar and be loaded on loading end position from the second cut-point.In an embodiment of the present invention, can real-time listening taskbar in the process that the 3rd control module 30 loads at progress bar the loading progress msg of tasks carrying of representative, in the time that task completes, can receive the loading of indicating progress bar is completed to information.For example, for browser Web page loading, in the time that webpage has loaded, server can return to the information of loading.
The 3rd control module 30 also, for being loaded at progress bar when listening to loading that progress bar is corresponding after the second cut-point and completing information, is controlled progress bar and is loaded on loading end position from the second cut-point.If in the time that progress bar is loaded on the second cut-point, the loading velocity of having controlled progress bar is 0, control module 10 listens to while having loaded information after being also used in and being loaded on the second cut-point, directly controls the complete phase III of progress bar rapid loading, and rapid loading is to loading end position.
Certainly, if the 3rd control module 30 progress bar from load reference position be loaded on the first cut-point before or when listening to loading that progress bar is corresponding before the second cut-point and completing information, loading position rapid loading can control progress bar and loaded information from listening to time is to loading end position, and no longer loads according to speed control progress bar corresponding to this stage.Thereby when can ensureing the smooth rapid loading of progress bar, can accurately control progress bar according to task completion status and load.
As shown in Figure 2 a, taking browser as example, in the loading procedure of whole progress bar, the loading velocity variation tendency of progress bar is: first at the uniform velocity load in the first stage, this phases-time is shorter, but it is longer to load distance; Slow down and load in subordinate phase, this phases-time is longer, but it is shorter to load distance; The speed of phase III is 0, and the distance in this stage is the shortest, thereby can control progress bar while having loaded information and be directly loaded on loading end position receiving, and gives user with smooth experience.
The control device that the progress bar of the embodiment of the present invention loads, by in advance in the loading reference position of progress bar and load and cut-point is set between end position divides between to progress bar loading zone, and setting is loaded into the time of each cut-point, thereby control progress bar and loaded in the short period of time a longer interval, thereby can give the experience of user with rapid loading, and load the execution of wait task by the deceleration of long period in an ensuing shorter interval, and the situation that there will not be card to pause.Thus, the scheme of the embodiment of the present invention, with respect to current scheme, improve the smoothness sense that progress bar loads, avoid user to take for the situation that progress bar loads failure or stops, can bring the very fast loading of user simultaneously and experience, and can accurately loading be completed to information and offer user, promote user's experience.
In order to realize above-described embodiment, the present invention also proposes a kind of electronic equipment.
The electronic equipment of the embodiment of the present invention, comprising: shell, and display, circuit board and processor, wherein, circuit board is placed in the interior volume that shell surrounds, and display is in housing exterior, and is connected with circuit board, and processor is arranged on circuit board; Processor is for the treatment of data, and specifically for:
S101 ', controls progress bar and is at the uniform velocity loaded on the first cut-point through the very first time from the loading reference position of progress bar.
S102 ', controls progress bar and slows down and be loaded on the second cut-point from the first cut-point through the second time.
Wherein, the first separation and the second cut-point are arranged on the loading reference position of progress bar and load between end position, and the very first time was less than for the second time.
It should be noted that, in the embodiment of the present invention, progress bar is corresponding with task, that is to say, progress bar is implementation progress for show from task to user.Taking browser as example, in the time of browser Web page loading, the progress that progress bar loads for displaying web page, the corresponding webpage of progress bar loads this task.
In one embodiment of the invention, the loading reference position of progress bar and end position can be definite according to the loading interface that loads progress bar, and wherein, loading interface can be that file scan progress interface, webpage load interface etc.In loading interface, progress bar has corresponding loading reference position and initial position, taking browser as example, in the time of browser load page, can be as shown in Figure 2 a, progress bar be to be loaded on right edge from the limit, left side of browser, thus, can determine the loading reference position of progress bar and load end position is respectively A point and B point, and can obtain by the first cut-point being set and the progress bar in browser is divided into three phases by the second cut-point.
In a preferred embodiment of the invention, the first cut-point is greater than and loads reference position and load 1/2 of distance between end position to loading the distance (length of first stage) of reference position, for example, can be to start the position at whole progress bar 70% from A, the second cut-point is less than and loads reference position and load 1/10 of distance between end position to loading the distance (phase III) of end position, for example, can be whole progress bar 95% position from left to right.
In addition, after the first cut-point and the second cut-point setting complete, progress bar is set respectively and is loaded on the very first time of the first cut-point and is loaded on the second time of the second cut-point from the first cut-point from loading reference position.Particularly, the very first time can be set to shorter a period of time, as 1 second, thereby can give the very fast sensation of user task execution speed in the first stage, while having loaded the first stage due to progress bar, the progress of tasks carrying may not complete so many, so for wait task implementation progress, the second time can be set to long period of time, as 10 seconds, thereby can carry out with the speed slightly slower compared with the first stage in subordinate phase, and can not give user's sensation that card pauses suddenly.
Particularly, in S101, first, obtain the first cut-point to the distance that loads reference position, and arrive and load the distance of reference position and the first loading velocity of very first time calculating progress bar according to the first cut-point, calculate the first loading velocity by following formula:
V1=a,
Wherein, a=S1/t1, V1 is the first loading velocity, and S1 is the distance of the first cut-point to loading reference position, and t1 is the very first time,
Then control progress bar and be at the uniform velocity loaded on the first cut-point with the first loading velocity from loading reference position.
Wherein, because S1 and T1 preset, therefore, V1 is a fixed constant.
In an embodiment of the present invention, for S102, can within the second time, be loaded on the second cut-point from the first cut-point by different deceleration strategies control progress bars, as the second loading velocity of controlling progress bar along with the load time reduce gradually or along with loading position with load initial position distance increase and reduce gradually etc., the present invention does not limit the concrete mode that reduces.
In a specific embodiment of the present invention, can be according to the loading position of progress bar, slow down and be loaded on the second loading velocity of the second cut-point from the first cut-point by following formula control progress bar, so that progress bar slows down and is loaded on the second cut-point from the first cut-point through the second time according to the second loading velocity:
V 2 = a ( - 2 π arctan ( bx + c ) ) + d ,
Wherein, V2 is the second loading velocity, and a is the first loading velocity, and the loading position that x is progress bar is to the distance that loads reference position, and b, c and d are default constant.
In an embodiment of the present invention, in S102, the second loading velocity that can control progress bar reduces to 0 in the time being loaded on the second cut-point.Particularly, V2=0 can make progress bar be loaded on the second cut-point by the value of adjustment b, c and d time.
For instance, work as b=8, c=-64, when d=1, in whole loading procedure, the variation of the loading velocity of progress bar can be as shown in Figure 2 b.Wherein, the loading position that transverse axis is progress bar is to the distance that loads reference position, the loading velocity that the longitudinal axis is progress bar.
Should be appreciated that also the loading position that can embody the second acceleration and progress bar by other is to the distance that loads reference position, or with the taper off function of relation of load time, the second loading velocity is controlled, do not enumerate at this.
S103 ', completes information if listen to the loading of the task that progress bar is corresponding after progress bar is loaded on the second cut-point, controls progress bar and is loaded on loading end position from the second cut-point.
In an embodiment of the present invention, can real-time listening taskbar in the process loading at progress bar the loading progress msg of tasks carrying of representative, in the time that task completes, can receive the loading of indicating progress bar is completed to information.For example, for browser Web page loading, in the time that webpage has loaded, server can return to the information of loading.
If in the time that progress bar is loaded on the second cut-point, the loading velocity of having controlled progress bar is 0, after being loaded on the second cut-point, listen to while having loaded information, can directly control the complete phase III of progress bar rapid loading, rapid loading is to loading end position.
Certainly, if progress bar from load reference position be loaded on the first cut-point before or before the second cut-point, listen to the loading that progress bar is corresponding and complete information, loading position rapid loading can control progress bar and loaded information from listening to time is to loading end position, and no longer loads according to speed control progress bar corresponding to this stage.Thereby when can ensureing the smooth rapid loading of progress bar, can accurately control progress bar according to task completion status and load.
As shown in Figure 2 a, taking browser as example, in the loading procedure of whole progress bar, the loading velocity variation tendency of progress bar is: first at the uniform velocity load in the first stage, this phases-time is shorter, but it is longer to load distance; Slow down and load in subordinate phase, this phases-time is longer, but it is shorter to load distance; The speed of phase III is 0, and the distance in this stage is the shortest, thereby can control progress bar while having loaded information and be directly loaded on loading end position receiving, and gives user with smooth experience.
Therefore, the electronic equipment of the embodiment of the present invention, by in advance in the loading reference position of progress bar and load and cut-point is set between end position divides between to progress bar loading zone, and setting is loaded into the time of each cut-point, thereby control progress bar and loaded in the short period of time a longer interval, thereby can give the experience of user with rapid loading, and load the execution of wait task by the deceleration of long period in an ensuing shorter interval, and the situation that there will not be card to pause.Thus, improve the smoothness sense that progress bar loads, avoided user to take for the situation that progress bar loads failure or stops, can having brought the very fast loading of user simultaneously and experience, and can accurately loading have been completed to information and offer user, promoted user's experience.
In description of the invention, it will be appreciated that, term " " center ", " longitudinally ", " laterally ", " length ", " width ", " thickness ", " on ", D score, " front ", " afterwards ", " left side ", " right side ", " vertically ", " level ", " top ", " end " " interior ", " outward ", " clockwise ", " counterclockwise ", " axially ", " radially ", orientation or the position relationship of instructions such as " circumferentially " are based on orientation shown in the drawings or position relationship, only the present invention for convenience of description and simplified characterization, instead of device or the assembly of instruction or hint indication must have specific orientation, with specific orientation structure and operation, therefore can not be interpreted as limitation of the present invention.
In addition, term " first ", " second " be only for describing object, and can not be interpreted as instruction or hint relative importance or the implicit quantity that indicates indicated technical characterictic.Thus, at least one this feature can be expressed or impliedly be comprised to the feature that is limited with " first ", " second ".In description of the invention, the implication of " multiple " is two or more, for example two, and three etc., unless otherwise expressly limited specifically.
In the present invention, unless otherwise clearly defined and limited, the terms such as term " installation ", " being connected ", " connection ", " fixing " should be interpreted broadly, and for example, can be to be fixedly connected with, and can be also to removably connect, or integral; Can be mechanical connection, can be also electrical connection; Can be to be directly connected, also can indirectly be connected by intermediary, can be the connection of two component internal or the interaction relationship of two assemblies, unless separately there is clear and definite restriction.For the ordinary skill in the art, can understand as the case may be above-mentioned term concrete meaning in the present invention.
In the present invention, unless otherwise clearly defined and limited, First Characteristic Second Characteristic " on " or D score can be that the first and second features directly contact, or the first and second features are by intermediary indirect contact.And, First Characteristic Second Characteristic " on ", " top " and " above " but First Characteristic directly over Second Characteristic or oblique upper, or only represent that First Characteristic level height is higher than Second Characteristic.First Characteristic Second Characteristic " under ", " below " and " below " can be First Characteristic under Second Characteristic or tiltedly, or only represent that First Characteristic level height is less than Second Characteristic.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, to the schematic statement of above-mentioned term not must for be identical embodiment or example.And, specific features, structure, material or the feature of description can one or more embodiment in office or example in suitable mode combination.In addition,, not conflicting in the situation that, those skilled in the art can carry out combination and combination by the feature of the different embodiment that describe in this instructions or example and different embodiment or example.
Although illustrated and described embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, amendment, replacement and modification.

Claims (18)

1. the control method that progress bar loads, is characterized in that, comprising:
Control progress bar and be at the uniform velocity loaded on the first cut-point through the very first time from the loading reference position of described progress bar;
Controlling described progress bar slowed down and is loaded on the second cut-point from described the first cut-point through the second time; Wherein, described the first separation and the second cut-point are arranged on the loading reference position of described progress bar and load between end position, and the described very first time is less than described the second time;
Complete information if listen to the loading of the task that described progress bar is corresponding after described progress bar is loaded on described the second cut-point, control described progress bar and be loaded on described loading end position from described the second cut-point.
2. the control method that progress bar as claimed in claim 1 loads, is characterized in that, also comprises:
Complete information if listened to the loading of the task that described progress bar is corresponding before described progress bar is loaded on described the first cut-point or described the second cut-point from described loading reference position, control described progress bar and be loaded on described loading end position from described loading position when listening to described loading and completing information.
3. the control method that progress bar as claimed in claim 1 or 2 loads, is characterized in that,
Described the first cut-point is greater than described loading reference position and loads 1/2 of distance between end position to the distance of described loading reference position;
Described the second cut-point is less than described loading reference position and loads 1/10 of distance between end position to the distance of described loading end position.
4. the control method that the progress bar as described in claims 1 to 3 any one loads, is characterized in that, described control progress bar is at the uniform velocity loaded on described the first cut-point through the very first time from the loading reference position of described progress bar, comprising:
Obtain the distance of described the first cut-point to described loading reference position;
Calculate the first loading velocity of described progress bar to the distance of described loading reference position and the described very first time according to described the first cut-point;
Control described progress bar and be at the uniform velocity loaded on described the first cut-point with described the first loading velocity from described loading reference position.
5. the control method that the progress bar as described in claim 1-4 any one loads, is characterized in that, the described progress bar of described control slowed down and is loaded on the second cut-point from described the first cut-point through the second time, comprising:
According to the loading position of described progress bar, slow down and be loaded on the second loading velocity of the second cut-point from described the first cut-point by progress bar described in following formula control, so that described progress bar slows down and is loaded on the second cut-point from described the first cut-point through described the second time according to described the second loading velocity:
Wherein, V2 is described the second loading velocity, and a is described the first loading velocity, and the loading position that x is described progress bar is to the distance of described loading reference position, and b, c and d are default constant.
6. the control method that the progress bar as described in right 5 loads, is characterized in that, the described progress bar of described control slowed down and is loaded on the second cut-point from described the first cut-point through the second time, comprising:
The loading velocity of controlling described progress bar reduces to 0 in the time being loaded on described the second cut-point.
7. the control device that progress bar loads, is characterized in that, comprising:
The first control module, is at the uniform velocity loaded on first cut-point through the very first time from the loading reference position of described progress bar for controlling progress bar;
The second control module, slows down and is loaded on the second cut-point from described the first cut-point through the second time for controlling described progress bar; Wherein, described the first separation and the second cut-point are arranged on the loading reference position of described progress bar and load between end position, and the described very first time is less than described the second time;
The 3rd control module, when the loading that listens to the task that described progress bar is corresponding after described the second cut-point completes information, controls described progress bar and is loaded on described loading end position from described the second cut-point for being loaded at described progress bar.
8. the control device that progress bar as claimed in claim 7 loads, is characterized in that,
Described the 3rd control module also when listening to the loading of the task that described progress bar is corresponding complete information before described progress bar is loaded on described the first cut-point or described the second cut-point from described loading reference position, is controlled described progress bar and is loaded on described loading end position from described loading position when listening to described loading and completing information.
9. the control device that progress bar loads as claimed in claim 7 or 8, is characterized in that,
Described the first cut-point is greater than described loading reference position and loads 1/2 of distance between end position to the distance of described loading reference position;
Described the second cut-point is less than described loading reference position and loads 1/10 of distance between end position to the distance of described loading end position.
10. the control device that the progress bar as described in claim 7-9 any one loads, is characterized in that, described the first control module comprises:
Acquiring unit, for obtaining the distance of described the first cut-point to described loading reference position;
Computing unit, for calculating the first loading velocity of described progress bar to the distance of described loading reference position and the described very first time according to described the first cut-point;
Control module, is at the uniform velocity loaded on described first cut-point with described the first loading velocity from described loading reference position for controlling described progress bar.
The control device that 11. progress bars as described in claim 7-10 any one load, is characterized in that,
Described the second control module is used for according to the loading position of described progress bar, slow down and be loaded on the second loading velocity of the second cut-point from described the first cut-point by progress bar described in following formula control, so that described progress bar slows down and is loaded on the second cut-point from described the first cut-point through described the second time according to described the second loading velocity:
Wherein, V2 is described the second loading velocity, and a is described the first loading velocity, and the loading position that x is described progress bar is to the distance of described loading reference position, and b, c and d are default constant.
The control device that 12. progress bars as described in right 11 load, is characterized in that, described the second control module specifically for:
The second loading velocity of controlling described progress bar reduces to 0 in the time being loaded on described the second cut-point.
13. 1 kinds of electronic equipments, it is characterized in that, comprise: shell, display, circuit board and processor, wherein, described circuit board is placed in the interior volume that described shell surrounds, and described display is in described housing exterior, and be connected with described circuit board, described processor is arranged on described circuit board; Described processor is for the treatment of data, and specifically for:
Control progress bar and be at the uniform velocity loaded on the first cut-point through the very first time from the loading reference position of described progress bar;
Controlling described progress bar slowed down and is loaded on the second cut-point from described the first cut-point through the second time; Wherein, described the first separation and the second cut-point are arranged on the loading reference position of described progress bar and load between end position, and the described very first time is less than described the second time;
Complete information if listen to the loading of the task that described progress bar is corresponding after described progress bar is loaded on described the second cut-point, control described progress bar and be loaded on described loading end position from described the second cut-point.
14. electronic equipments as claimed in claim 13, is characterized in that, described processor also for:
Complete information if listened to the loading of the task that described progress bar is corresponding before described progress bar is loaded on described the first cut-point or described the second cut-point from described loading reference position, control described progress bar and be loaded on described loading end position from described loading position when listening to described loading and completing information.
15. electronic equipments as described in claim 13 or 14, is characterized in that,
Described the first cut-point is greater than described loading reference position and loads 1/2 of distance between end position to the distance of described loading reference position;
Described the second cut-point is less than described loading reference position and loads 1/10 of distance between end position to the distance of described loading end position.
16. electronic equipments as described in claim 13-15 any one, is characterized in that, described processor specifically for:
Obtain the distance of described the first cut-point to described loading reference position;
Calculate the first loading velocity of described progress bar to the distance of described loading reference position and the described very first time according to described the first cut-point;
Control described progress bar and be at the uniform velocity loaded on described the first cut-point with described the first loading velocity from described loading reference position.
17. electronic equipments as described in claim 13-16 any one, is characterized in that, described processor specifically for:
According to the loading position of described progress bar, slow down and be loaded on the second loading velocity of the second cut-point from described the first cut-point by progress bar described in following formula control, so that described progress bar slows down and is loaded on the second cut-point from described the first cut-point through described the second time according to described the second loading velocity:
Wherein, V2 is described the second loading velocity, and a is described the first loading velocity, and the loading position that x is described progress bar is to the distance of described loading reference position, and b, c and d are default constant.
18. electronic equipments as described in right 17, is characterized in that, described processor specifically for:
The loading velocity of controlling described progress bar reduces to 0 in the time being loaded on described the second cut-point.
CN201410390556.6A 2014-08-08 2014-08-08 Control method, device and the electronic equipment of progress bar loading Active CN104199643B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410390556.6A CN104199643B (en) 2014-08-08 2014-08-08 Control method, device and the electronic equipment of progress bar loading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410390556.6A CN104199643B (en) 2014-08-08 2014-08-08 Control method, device and the electronic equipment of progress bar loading

Publications (2)

Publication Number Publication Date
CN104199643A true CN104199643A (en) 2014-12-10
CN104199643B CN104199643B (en) 2017-12-29

Family

ID=52084940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410390556.6A Active CN104199643B (en) 2014-08-08 2014-08-08 Control method, device and the electronic equipment of progress bar loading

Country Status (1)

Country Link
CN (1) CN104199643B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893074A (en) * 2015-12-14 2016-08-24 乐视移动智能信息技术(北京)有限公司 Progress bar optimization method and device
CN105988913A (en) * 2015-02-27 2016-10-05 阿里巴巴集团控股有限公司 Progress indication method and device
CN107239386A (en) * 2017-06-06 2017-10-10 网易(杭州)网络有限公司 A kind of progress display methods and device
CN109074303A (en) * 2017-06-27 2018-12-21 华为技术有限公司 A kind of Caton detection method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530145B (en) * 2011-04-01 2017-05-10 北京奇虎科技有限公司 progress bar setting method and device
CN103488555B (en) * 2011-04-01 2016-09-28 北京奇虎科技有限公司 Progress bar implementation method and device
CN102141953B (en) * 2011-04-01 2013-10-16 奇智软件(北京)有限公司 Method and device for showing progress bar
CN103136089B (en) * 2011-11-25 2016-08-17 腾讯科技(深圳)有限公司 A kind of progress bar display packing and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988913A (en) * 2015-02-27 2016-10-05 阿里巴巴集团控股有限公司 Progress indication method and device
CN105893074A (en) * 2015-12-14 2016-08-24 乐视移动智能信息技术(北京)有限公司 Progress bar optimization method and device
CN107239386A (en) * 2017-06-06 2017-10-10 网易(杭州)网络有限公司 A kind of progress display methods and device
CN107239386B (en) * 2017-06-06 2022-03-29 网易(杭州)网络有限公司 Progress display method and device
CN109074303A (en) * 2017-06-27 2018-12-21 华为技术有限公司 A kind of Caton detection method and device
CN109074303B (en) * 2017-06-27 2021-08-20 华为技术有限公司 Stuck detection method and device

Also Published As

Publication number Publication date
CN104199643B (en) 2017-12-29

Similar Documents

Publication Publication Date Title
CN104199643A (en) Progress bar loading control method and device and electronic equipment
CN109274309B (en) Motor control method, motor control device, electronic device and storage medium
CN104375862A (en) Progress bar showing method and device
EP3451093B1 (en) Work assistance device, work assistance method, and work assistance program
CN103699473A (en) Indicating method and device for task progress
DE102014114711B4 (en) Information processing method and first electronic device
CN102110015B (en) Method and device for determining task progress and task processing time
CN104239196A (en) Method and device for detecting abnormal operation of application program and mobile terminal
EP3407323A1 (en) Driving evaluation device, driving evaluation method, reference data provision method, reference data provision device, and reference data provision program
EP2000268A2 (en) Robot control apparatus
CN104571850A (en) Icon display method and terminal thereof
KR102007211B1 (en) Operational processing methods, electronic devices and computer storage media
CN104239503A (en) Display control method and device for loading progress, browser and electronic equipment
EP3799332B1 (en) Method for measuring sensing range of vehicle, apparatus and medium
KR20150123722A (en) Information processing terminal and control method
CN108687417A (en) Control device, wire electric discharge machine, program editing device and control method
EP4290321A1 (en) Virtual simulation methods and apparatuses for conveying mechanism, electronic device, plc and medium
CN105339854A (en) Programmable controller
US20200025659A1 (en) Fracture determination device, fracture determination program, and method thereof
DE102017117105B4 (en) ENCODER CAPABLE OF ERASING MEMORY INFORMATION AND ENGINE SYSTEM INCLUDING THEM
CN103809635B (en) Voltage identification code reference voltage generating circuit and starting voltage generating method thereof
CN104199600A (en) Handling method for multiple label pages in browser and browser
CN108280113B (en) Service Worker control method and device and electronic terminal
CN110990674A (en) Method and system for predicting reading amount of article
CN115139360B (en) Control method and device of printer cutter, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant