CN107809474B - Method and device for prompting download state and terminal equipment - Google Patents

Method and device for prompting download state and terminal equipment Download PDF

Info

Publication number
CN107809474B
CN107809474B CN201710976232.4A CN201710976232A CN107809474B CN 107809474 B CN107809474 B CN 107809474B CN 201710976232 A CN201710976232 A CN 201710976232A CN 107809474 B CN107809474 B CN 107809474B
Authority
CN
China
Prior art keywords
point
radius
file
downloading
generating
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.)
Active
Application number
CN201710976232.4A
Other languages
Chinese (zh)
Other versions
CN107809474A (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.)
Fujian Cnfol Information Technology Co Ltd
Original Assignee
Fujian Cnfol Information Technology 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 Fujian Cnfol Information Technology Co Ltd filed Critical Fujian Cnfol Information Technology Co Ltd
Priority to CN201710976232.4A priority Critical patent/CN107809474B/en
Publication of CN107809474A publication Critical patent/CN107809474A/en
Application granted granted Critical
Publication of CN107809474B publication Critical patent/CN107809474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for prompting a download state and terminal equipment; the method comprises the following steps: when a file downloading signal is received, generating an aggregation point and an aggregation point; in the downloading process of the file, gradually increasing the radius of the aggregation point according to the downloading progress of the file; continuously generating a convergent point at a generating position according to the downloading speed of the file, moving the convergent point according to a set path, and deleting the convergent point when the circle center of the convergent point reaches the edge of the convergent point; and when the file downloading is finished, stopping increasing the radius of the aggregation point, stopping generating and moving the aggregation point, and generating prompt information of finishing the downloading. The method and the device display the downloading state of the file by simulating the effect that the water drops are converged towards the center continuously, enrich the prompting mode of the downloading state, have good visual effect, can effectively attract users, and enable the users to have more patience on waiting for the downloaded file, thereby improving the user experience.

Description

Method and device for prompting download state and terminal equipment
Technical Field
The invention relates to the technical field of download display, in particular to a method and a device for prompting a download state and terminal equipment.
Background
In the process of downloading files by terminal equipment such as a computer, a mobile phone, a tablet computer and the like, downloading is usually carried out in an application background, and a downloading process is displayed on an equipment screen in a progress bar mode; in different terminal devices and different downloading applications, the display mode and effect of the downloading process are single, and the attraction to the user is low.
Aiming at the problem that the existing download state prompting mode is single, an effective solution is not provided.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus and a terminal device for prompting a download state, so as to enrich a download state prompting manner and improve user experience.
In a first aspect, an embodiment of the present invention provides a method for prompting a download status, where the method includes: when a file downloading signal is received, generating an aggregation point and an aggregation point; the distance between the generation position of the convergent point and the circle center of the convergent point is set; in the downloading process of the file, gradually increasing the radius of the aggregation point according to the downloading progress of the file; continuously generating a convergent point at a generating position according to the downloading speed of the file, moving the convergent point according to a set path, and deleting the convergent point when the circle center of the convergent point reaches the edge of the convergent point; and when the file downloading is finished, stopping increasing the radius of the aggregation point, stopping generating and moving the aggregation point, and generating prompt information of finishing the downloading.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the set path is obtained by: acquiring the center of a gathering point and the midpoint of the generating position of the gathering point; determining a curvature control point of the path in the vertical direction of the circle center of the gathering point and the generating position connecting line; wherein, the connecting line of the curvature control point and the midpoint is vertical to the connecting line of the circle center of the gathering point and the generation position of the gathering point; and generating a Bezier curve connected with the circle center of the gathering point and the generation position of the gathering point, and determining the Bezier curve as a set path.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the method further includes: when the circle center of the gathering point reaches the edge of the gathering point, the radius of the gathering point is gradually reduced according to a set reduction value; wherein the reduction value is set according to the radius before the reduction of the aggregation point; when the radius of the gathering point is reduced to a reduced value, the radius of the gathering point is gradually increased according to a set increased value; wherein the increase value is set according to the radius before the reduction of the gathering point; when the radius of the focal point increases to an increased value, a multi-turn moire pattern is generated at the edge of the focal point.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, wherein the step of generating a multi-turn ripple pattern at an edge of an aggregation point includes: generating a multi-turn ripple pattern at the edge of the gathering point according to a set time interval; wherein the center of the ripple pattern coincides with the center of the focus point; gradually enlarging the radius of the ripple pattern according to the set diffusion value; and setting the transparency of the ripple pattern according to the radius of the ripple pattern, and displaying the ripple pattern according to the transparency.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the step of generating a prompt message indicating that downloading is completed includes: displaying the downloading process of the file on the aggregation point; the downloading process comprises the percentage of file downloading quantity to the total file quantity; when the file download is complete, the aggregate point changes color to prompt the user that the download is complete.
In a second aspect, an embodiment of the present invention provides a device for prompting a download status, where the device includes: the aggregation point and convergence point generation module is used for generating an aggregation point and a convergence point when a file download signal is received; the distance between the generation position of the convergent point and the circle center of the convergent point is set; the first radius increasing module is used for gradually increasing the radius of the gathering point according to the downloading progress of the file in the downloading process of the file; the convergent point moving module is used for continuously generating convergent points at the generating positions according to the downloading speed of the files, moving the convergent points according to a set path, and deleting the convergent points when the circle centers of the convergent points reach the edges of the convergent points; and the information generation module is used for stopping increasing the radius of the aggregation point, stopping generating and moving the aggregation point and generating prompt information of the completion of downloading when the file is downloaded.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the apparatus further includes: the radius reducing module is used for gradually reducing the radius of the gathering point according to a set reducing value when the circle center of the gathering point reaches the edge of the gathering point; wherein the reduction value is set according to the radius before the reduction of the aggregation point; the second radius increasing module is used for gradually increasing the radius of the gathering point according to a set increasing value when the radius of the gathering point is reduced to a reducing value; wherein the increase value is set according to the radius before the reduction of the gathering point; and the ripple pattern generation module is used for generating a multi-turn ripple pattern at the edge of the gathering point when the radius of the gathering point is increased to an increased value.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the ripple pattern generation module is further configured to: generating a multi-turn ripple pattern at the edge of the gathering point according to a set time interval; wherein the center of the ripple pattern coincides with the center of the focus point; gradually enlarging the radius of the ripple pattern according to the set diffusion value; and setting the transparency of the ripple pattern according to the radius of the ripple pattern, and displaying the ripple pattern according to the transparency.
With reference to the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, where the information generating module is further configured to: displaying the downloading process of the file on the aggregation point; the downloading process comprises the percentage of file downloading quantity to the total file quantity; when the file download is complete, the aggregate point changes color to prompt the user that the download is complete.
In a third aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes a memory and a processor, the memory is used to store a program that supports the processor to execute the prompt method for the download status, and the processor is configured to execute the program stored in the memory.
The embodiment of the invention has the following beneficial effects:
according to the prompt method, device and terminal equipment for the download state provided by the embodiment of the invention, in the download process of the file, the radius of the aggregation point is gradually increased according to the download progress and download speed of the file, the aggregation point is continuously generated at the generation position, the aggregation point is moved according to the set path, and when the circle center of the aggregation point reaches the edge of the aggregation point, the aggregation point is deleted until the file download is completed. The method shows the downloading state of the file by simulating the effect that the water drops are continuously gathered to the center, enriches the prompting mode of the downloading state, has better visual effect, can effectively attract users, and enables the users to have more patience on waiting for the downloaded file, thereby improving the user experience.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention as set forth above.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for prompting a download status according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for prompting a download status according to an embodiment of the present invention;
fig. 3 is a schematic diagram of generating a rendezvous point path according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a download status prompting apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In view of the problem that the existing download state prompting mode is single, the embodiment of the invention provides a method and a device for prompting a download state and terminal equipment; the technology can be applied to the process of downloading files by terminal equipment such as a computer, a mobile phone, a tablet personal computer and the like, and particularly can be applied to an IOS (input/output system); the techniques may be implemented in associated software or hardware, as described by way of example below.
Referring to fig. 1, a flowchart of a method for prompting a download status is shown; the method comprises the following steps:
step S102, when a file downloading signal is received, an aggregation point and an aggregation point are generated; the distance between the generation position of the convergent point and the circle center of the convergent point is set;
step S104, in the downloading process of the file, the radius of the aggregation point is gradually increased according to the downloading progress of the file;
in actual implementation, the total amount of the files can be extracted from the file downloading signals; and calculating to obtain the radiuses of the aggregation points corresponding to different downloading progresses according to the initial radius of the aggregation points and the maximum radius to which the aggregation points can be increased.
Step S106, continuously generating an aggregation point at the generating position according to the downloading speed of the file, moving the aggregation point according to a set path, and deleting the aggregation point when the circle center of the aggregation point reaches the edge of the aggregation point;
for example, when the download speed is high, the speed and the number of generating the aggregation points at the generation position are both high, and the speed of moving to the aggregation points is also high; when the downloading speed is slow, the speed and the number of the generated position generating convergence points are small, and the speed of moving to the convergence points is slow.
And step S108, when the file downloading is finished, stopping increasing the radius of the gathering point, stopping generating and moving the gathering point, and generating prompt information of finishing the downloading.
The generating position of the convergent point can be a circle which takes the circle center of the convergent point as the circle center, and the convergent point can be generated at any position on the circle; in the file downloading process, the generating position of the convergent point continuously generates the convergent point, and when the convergent point moves to the edge of the convergent point, the convergent point is deleted; meanwhile, the radius of the gathering point is continuously increased along with the downloading progress of the file; through the cooperation of the gathering point and the gathering point, the effect that water drops gather towards the center continuously can be simulated.
In the method for prompting a download state provided in the embodiment of the present invention, in the downloading process of a file, according to the download progress and the download speed of the file, the radius of an aggregation point is gradually increased, an aggregation point is continuously generated at a generation position, the aggregation point is moved according to a set path, and when the center of a circle of the aggregation point reaches the edge of the aggregation point, the aggregation point is deleted until the file download is completed. The method shows the downloading state of the file by simulating the effect that water drops are continuously gathered to the center, has better visual effect, can effectively attract users, enables the users to have more patience on waiting for downloading the file, enriches the prompting mode of the downloading state, and improves the user experience.
Referring to fig. 2, a flow chart of another method for prompting a download status is shown; the method is realized on the basis of the prompt method of the download state shown in figure 1; the method comprises the following steps:
step S202, when a file downloading signal is received, an aggregation point and an aggregation point are generated; the distance between the generation position of the convergent point and the circle center of the convergent point is set;
step S204, in the downloading process of the file, the radius of the aggregation point is gradually increased according to the downloading progress of the file;
step S206, continuously generating an aggregation point at the generating position according to the downloading speed of the file, moving the aggregation point according to a set path, and deleting the aggregation point when the center of the aggregation point reaches the edge of the aggregation point;
specifically, the above-described set path may be obtained by:
(1) acquiring the center of a gathering point and the midpoint of the generating position of the gathering point;
(2) determining a curvature control point of the path in the vertical direction of the circle center of the gathering point and the generating position connecting line; wherein, the connecting line of the curvature control point and the midpoint is vertical to the connecting line of the circle center of the gathering point and the generation position of the gathering point;
(3) and generating a Bezier curve connected with the circle center of the gathering point and the generation position of the gathering point, and determining the Bezier curve as a set path.
Referring to fig. 3, a schematic diagram of rendezvous point path generation is shown; in fig. 3, a blank position within a dotted circle p is a generation position of a convergent point; u is the edge of the focal point; q is the maximum radius position of the increased aggregation point; when the convergent point is generated, the center of the convergent point is positioned on the circle of the dotted line; the center point of the center C of the convergent point and the center point O of the center O of the convergent point is A; the connecting line of the curvature control point B and the middle point A is vertical to the connecting line of the circle center O of the gathering point and the generation position C of the gathering point. Wherein the distance between the curvature control point B and the midpoint A is h; the value of h, namely the distance between the point B and the point A, can be preset or generated randomly; and after the h value is determined, determining the bending track w of the Bezier curve between the O point and the C point.
When the code is compiled, the center O (x1, y1) of the convergence point, the center C (x2, y2) of the convergence point, and the distance OC (radius k) (where k is defined as a coefficient of multiple of the main radius and is used to describe the relationship between the peripheral radius and the radius of the inner circle) are known. And (3) setting the coordinates of the points to be solved as B (x, y), solving the problems by establishing a Cartesian coordinate system, and further solving the distance between the ACs. Then, a series of methods are used to make layer styles for the water drops, design animations and provide access to trigger the animations in the viewing layer.
The set path can be realized by the following codes:
Figure BDA0001438159710000071
Figure BDA0001438159710000081
Figure BDA0001438159710000091
in the above manner, the bezier curve is used to draw the moving path of the convergent point, so that the convergent point can move along the curve, and the visual effect of the downloading manner is enhanced.
Step S208, when the center of the convergence point reaches the edge of the convergence point, the radius of the convergence point is gradually reduced according to a set reduction value; wherein the reduction value is set according to the radius before the reduction of the aggregation point;
step S210, when the radius of the gathering point is reduced to a reduced value, the radius of the gathering point is gradually increased according to a set increased value; wherein the increase value is set according to the radius before the reduction of the gathering point;
in step S212, when the radius of the focus is increased to an increased value, a multi-turn moire pattern is generated at the edge of the focus.
Through the above steps S208 to S212, the effect of causing the focus to vibrate and diffuse the ripples to the periphery when the focus converges into the focus can be simulated, and the visual effect of the downloading mode is enhanced.
In the step S212, the step of generating the multi-turn ripple pattern at the edge of the gathering point may be implemented as follows:
(1) generating a multi-turn ripple pattern at the edge of the gathering point according to a set time interval; wherein the center of the ripple pattern coincides with the center of the focus point;
(2) gradually enlarging the radius of the ripple pattern according to the set diffusion value;
(3) and setting the transparency of the ripple pattern according to the radius of the ripple pattern, and displaying the ripple pattern according to the transparency.
In the above steps S208 to S212, the vibration effect of the focus is simulated, i.e. the entire view of the focus is first shrunk; then the size is increased instantly and then the size is decreased with the spring effect; at the same time, copying the view of the aggregation point, gradually enlarging the copied view, and modifying the transparency of the graph by modifying the alpha value of the copied view; after the execution of the above effects is completed, a suggestive status graphic is generated.
Specifically, when the moire pattern is initially generated, the transparency is the lowest, which may be 0%; the transparency of the corrugated pattern is higher and higher in the expanding process, and when the radius is larger than a set value, the transparency is set to be 100%; by the method, the process of the ripple from strong to weak can be simulated, and the visual effect of the downloading method is further enhanced.
The vibration effect of the focus point can be realized by the following codes:
Figure BDA0001438159710000101
Figure BDA0001438159710000111
step S214, when the file downloading is finished, stopping increasing the radius of the gathering point, and stopping generating and moving the gathering point;
the step of generating the prompt message of completing the downloading specifically includes:
step S216, displaying the downloading process of the file on the aggregation point; the downloading process comprises the percentage of file downloading quantity to the total file quantity;
in step S218, when the file download is completed, the aggregation point changes color to prompt the user that the download is completed. For example, the aggregation point is initially blue, and when the file download is completed, the aggregation point may change to red, and at the same time, a blinking effect may be added to prompt the user that the download is completed.
The method for prompting the download state provided by the embodiment of the invention has the following animation disassembly effects: (1) the radius of the gathering point for showing the downloading process is gradually increased; the convergent point flies into the convergent point in a radian, and the flying-in track is random; the generating position of the gathering point and the annular radius of the maximum contour line of the gathering point form a self-defined multiple relation; (2) the whole gathering point is slightly reduced to prepare for sudden increase and jitter; the gathering point is enlarged and has a spring effect, and finally returns to the original size; when the focus shakes to the maximum, the ripple effect is dispersed to the periphery. The method ensures that the showing form of the file downloading process is visual and has ornamental value.
Corresponding to the above method embodiment, refer to a schematic structural diagram of a download status prompting device shown in fig. 4; the device comprises the following parts:
an aggregation point and convergence point generation module 40, configured to generate an aggregation point and a convergence point when receiving a file download signal; the distance between the generation position of the convergent point and the circle center of the convergent point is set;
a first radius increasing module 41, configured to gradually increase the radius of the aggregation point according to a downloading progress of the file in a downloading process of the file;
the convergent point moving module 42 is configured to continuously generate a convergent point at the generation position according to the download speed of the file, move the convergent point according to a set path, and delete the convergent point when the center of the convergent point reaches the edge of the convergent point;
and the information generating module 43 is configured to stop increasing the radius of the aggregation point, stop generating and moving the aggregation point, and generate prompt information indicating that downloading is completed when the file downloading is completed.
Further, the above apparatus further comprises:
the radius reducing module is used for gradually reducing the radius of the gathering point according to a set reducing value when the circle center of the gathering point reaches the edge of the gathering point; wherein the reduction value is set according to the radius before the reduction of the aggregation point;
the second radius increasing module is used for gradually increasing the radius of the gathering point according to a set increasing value when the radius of the gathering point is reduced to a reducing value; wherein the increase value is set according to the radius before the reduction of the gathering point;
and the ripple pattern generation module is used for generating a multi-turn ripple pattern at the edge of the gathering point when the radius of the gathering point is increased to an increased value.
Further, the moire pattern generation module is further configured to:
generating a multi-turn ripple pattern at the edge of the gathering point according to a set time interval; wherein the center of the ripple pattern coincides with the center of the focus point;
gradually enlarging the radius of the ripple pattern according to the set diffusion value;
and setting the transparency of the ripple pattern according to the radius of the ripple pattern, and displaying the ripple pattern according to the transparency.
Further, the information generating module is further configured to:
displaying the downloading process of the file on the aggregation point; the downloading process comprises the percentage of file downloading quantity to the total file quantity;
when the file download is complete, the aggregate point changes color to prompt the user that the download is complete.
According to the prompt device for the download state provided by the embodiment of the invention, in the download process of the file, the radius of the aggregation point is gradually increased according to the download progress and the download speed of the file, meanwhile, the aggregation point is continuously generated at the generation position, the aggregation point is moved according to the set path, and when the circle center of the aggregation point reaches the edge of the aggregation point, the aggregation point is deleted until the file download is completed. The method shows the downloading state of the file by simulating the effect that the water drops are continuously gathered to the center, enriches the prompting mode of the downloading state, has better visual effect, can effectively attract users, and enables the users to have more patience on waiting for the downloaded file, thereby improving the user experience.
Fig. 5 shows only a portion related to the embodiment of the present invention for convenience of description, and please refer to the method portion in the embodiment of the present invention for details that are not disclosed. The device can be any terminal device including a terminal device, a tablet computer, a Point of sale (POS), a vehicle-mounted computer, an intelligent wearable device and the like.
Fig. 5 shows a block diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 5, the terminal device 100 includes: a Radio Frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, and a power supply 190. Those skilled in the art will appreciate that the terminal device 100 configuration shown in fig. 5 does not constitute a limitation of the terminal device 100 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following specifically describes each constituent element of the terminal device 100 with reference to fig. 5:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 180; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for prompting a download status in the embodiment of the present invention, and the processor 180 executes various functional applications and data processing of the terminal device 100, such as the method for prompting a download status provided in the embodiment of the present invention, by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device 100, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device 100. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations of a user on or near the touch panel 131 (e.g., operations of the user on or near the touch panel 131 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 131 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch panel 131 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by the user or information provided to the user and various menus of the terminal device 100. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 131 can cover the display panel 141, and when the touch panel 131 detects a touch operation on or near the touch panel 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 performs processing according to the type of the touch event. Although in fig. 5, the touch panel 131 and the display panel 141 are two separate components to implement the input and output functions of the terminal device 100, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the terminal device 100.
The terminal device 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the terminal device 100, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device 100, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal device 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then transmits the audio data to, for example, another terminal device 100 via the RF circuit 110, or outputs the audio data to the memory 120 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and the terminal device 100 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal device 100, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal device 100, connects various parts of the entire terminal device 100 by various interfaces and lines, and performs various functions of the terminal device 100 and processes data by running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the terminal device 100. Alternatively, processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal device 100 further includes a power supply 190 (e.g., a battery) for supplying power to the various components, and preferably, the power supply may be logically connected to the processor 180 via a power management system, so as to manage charging, discharging, and power consumption via the power management system.
It will be appreciated that the configuration shown in fig. 5 is merely illustrative and that terminal device 100 may include more or fewer components than shown in fig. 5 or may have a different configuration than shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
The method, the apparatus, and the computer program product for prompting a download status provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. A method for prompting a download state is characterized by comprising the following steps:
when a file downloading signal is received, generating an aggregation point and an aggregation point; the distance between the generation position of the convergent point and the circle center of the convergent point is a set length;
in the downloading process of the file, gradually increasing the radius of the gathering point according to the downloading progress of the file;
continuously generating the convergent point at the generating position according to the downloading speed of the file, moving the convergent point according to a set path, and deleting the convergent point when the circle center of the convergent point reaches the edge of the convergent point;
when the file is downloaded, stopping increasing the radius of the gathering point, stopping generating and moving the gathering point, and generating prompt information of downloading completion;
the set path is obtained by:
acquiring the center of the gathering point and the midpoint of the generating position of the gathering point;
determining a curvature control point of the path in the vertical direction of the circle center of the gathering point and the connecting line of the generation position; wherein, a connecting line of the curvature control point and the midpoint is vertical to a connecting line of the circle center of the gathering point and the generation position of the gathering point;
generating a Bezier curve connected with the circle center of the gathering point and the generation position of the gathering point, and determining the Bezier curve as the set path;
the step of generating the prompt message of finishing the downloading comprises the following steps:
displaying a downloading progress of the file on the aggregation point; wherein the downloading process comprises the percentage of the file downloading amount to the total file amount;
when the file download is completed, the aggregation point changes color to prompt the user that the download is completed.
2. The method of claim 1, further comprising:
when the circle center of the convergent point reaches the edge of the convergent point, gradually reducing the radius of the convergent point according to a set reduction value; wherein the reduction value is set according to a radius before the reduction of the focus point;
when the radius of the gathering point is reduced to the reduced value, the radius of the gathering point is gradually increased according to a set increased value; wherein the increase value is set according to the radius of the focus point before reduction;
generating a multi-turn moire pattern at an edge of the focus when the radius of the focus increases to the increased value.
3. The method of claim 2, wherein the step of generating a multi-turn moire pattern at the edges of the focus points comprises:
generating a multi-turn ripple pattern at the edge of the gathering point according to a set time interval; wherein the center of the ripple pattern coincides with the center of the focus point;
gradually enlarging the radius of the ripple pattern according to a set diffusion value;
and setting the transparency of the ripple pattern according to the radius of the ripple pattern, and displaying the ripple pattern according to the transparency.
4. An apparatus for prompting a download status, the apparatus comprising:
the aggregation point and convergence point generation module is used for generating an aggregation point and a convergence point when a file download signal is received; the distance between the generation position of the convergent point and the circle center of the convergent point is a set length;
the first radius increasing module is used for gradually increasing the radius of the gathering point according to the downloading progress of the file in the downloading process of the file;
a gathering point moving module, configured to continuously generate the gathering point at the generation position according to the download speed of the file, move the gathering point according to a set path, and delete the gathering point when the center of the gathering point reaches the edge of the gathering point;
the information generation module is used for stopping increasing the radius of the gathering point, stopping generating and moving the gathering point and generating prompt information of downloading completion when the file is downloaded;
the set path is obtained by:
acquiring the center of the gathering point and the midpoint of the generating position of the gathering point;
determining a curvature control point of the path in the vertical direction of the circle center of the gathering point and the connecting line of the generation position; wherein, a connecting line of the curvature control point and the midpoint is vertical to a connecting line of the circle center of the gathering point and the generation position of the gathering point;
generating a Bezier curve connected with the circle center of the gathering point and the generation position of the gathering point, and determining the Bezier curve as the set path;
the information generation module is further configured to:
displaying a downloading progress of the file on the aggregation point; wherein the downloading process comprises the percentage of the file downloading amount to the total file amount;
when the file download is completed, the aggregation point changes color to prompt the user that the download is completed.
5. The apparatus of claim 4, further comprising:
the radius reducing module is used for gradually reducing the radius of the gathering point according to a set reducing value when the circle center of the gathering point reaches the edge of the gathering point; wherein the reduction value is set according to a radius before the reduction of the focus point;
the second radius increasing module is used for gradually increasing the radius of the gathering point according to a set increasing value when the radius of the gathering point is reduced to the reduced value; wherein the increase value is set according to the radius of the focus point before reduction;
a moire pattern generation module for generating a multi-turn moire pattern at an edge of the focus when the radius of the focus increases to the increased value.
6. The apparatus of claim 5, wherein the ripple pattern generation module is further configured to:
generating a multi-turn ripple pattern at the edge of the gathering point according to a set time interval; wherein the center of the ripple pattern coincides with the center of the focus point;
gradually enlarging the radius of the ripple pattern according to a set diffusion value;
and setting the transparency of the ripple pattern according to the radius of the ripple pattern, and displaying the ripple pattern according to the transparency.
7. A terminal device, characterized in that the terminal device comprises a memory for storing a program enabling a processor to perform the method of any of claims 1 to 3 and a processor configured to execute the program stored in the memory.
CN201710976232.4A 2017-10-19 2017-10-19 Method and device for prompting download state and terminal equipment Active CN107809474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710976232.4A CN107809474B (en) 2017-10-19 2017-10-19 Method and device for prompting download state and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710976232.4A CN107809474B (en) 2017-10-19 2017-10-19 Method and device for prompting download state and terminal equipment

Publications (2)

Publication Number Publication Date
CN107809474A CN107809474A (en) 2018-03-16
CN107809474B true CN107809474B (en) 2020-09-08

Family

ID=61592813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710976232.4A Active CN107809474B (en) 2017-10-19 2017-10-19 Method and device for prompting download state and terminal equipment

Country Status (1)

Country Link
CN (1) CN107809474B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108549512B (en) * 2018-03-30 2021-03-16 武汉斗鱼网络科技有限公司 Display method and device and computer equipment
CN110007990A (en) * 2019-01-26 2019-07-12 深圳达普信科技有限公司 Information displaying method, device, computer equipment and product

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6906718B1 (en) * 1997-04-25 2005-06-14 Microsoft Corporation Method and system for efficiently evaluating and drawing NURBS surfaces for 3D graphics
KR101367547B1 (en) * 2007-04-16 2014-02-27 엘지전자 주식회사 Method of displaying a dynamic cursor in a mobile communication terminal, and the mobile communication terminal thereof
CN101854421A (en) * 2010-05-27 2010-10-06 深圳市五巨科技有限公司 Mobile terminal and multimedia content downloading method thereof
CN103136089B (en) * 2011-11-25 2016-08-17 腾讯科技(深圳)有限公司 A kind of progress bar display packing and device
CN105989085B (en) * 2015-02-11 2021-01-12 腾讯科技(深圳)有限公司 Method and device for accessing application program page
CN106681706B (en) * 2016-08-09 2020-08-11 腾讯科技(深圳)有限公司 Application progress processing method and terminal

Also Published As

Publication number Publication date
CN107809474A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
CN107741809B (en) Interaction method, terminal, server and system between virtual images
CN109388297B (en) Expression display method and device, computer readable storage medium and terminal
US20160232707A1 (en) Image processing method and apparatus, and computer device
CN104383681B (en) Method for controlling game program, device and mobile terminal
US10845981B2 (en) Operation control method, device and storage medium
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN106780684B (en) Animation effect realization method and device
CN107292235B (en) fingerprint acquisition method and related product
CN110673770B (en) Message display method and terminal equipment
CN109885373B (en) Rendering method and device of user interface
CN105208458A (en) Virtual frame display method and device
CN107317918B (en) Parameter setting method and related product
CN109067981A (en) Split screen application switching method, device, storage medium and electronic equipment
CN105447124A (en) Virtual article sharing method and device
CN107562303B (en) Method and device for controlling element motion in display interface
CN107797723B (en) Display style switching method and terminal
CN107809474B (en) Method and device for prompting download state and terminal equipment
CN106020945B (en) Shortcut item adding method and device
US20160119695A1 (en) Method, apparatus, and system for sending and playing multimedia information
CN108564539B (en) Method and device for displaying image
CN106844057B (en) Data processing method and device and mobile terminal
CN110908757B (en) Method and related device for displaying media content
CN109104640B (en) Virtual gift presenting method and device and storage equipment
CN111617472A (en) Method and related device for managing model in virtual scene
CN110277097A (en) Data processing method and relevant device

Legal Events

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