CN105608161A - Loading progress display method and terminal - Google Patents

Loading progress display method and terminal Download PDF

Info

Publication number
CN105608161A
CN105608161A CN201510960191.0A CN201510960191A CN105608161A CN 105608161 A CN105608161 A CN 105608161A CN 201510960191 A CN201510960191 A CN 201510960191A CN 105608161 A CN105608161 A CN 105608161A
Authority
CN
China
Prior art keywords
loaded
information
preview image
transparency
mask layer
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
CN201510960191.0A
Other languages
Chinese (zh)
Other versions
CN105608161B (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510960191.0A priority Critical patent/CN105608161B/en
Priority to PCT/CN2016/082216 priority patent/WO2017101250A1/en
Publication of CN105608161A publication Critical patent/CN105608161A/en
Application granted granted Critical
Publication of CN105608161B publication Critical patent/CN105608161B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • 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/323Visualisation of programs or trace data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method for displaying loading progress, which comprises the following steps: when a terminal starts to load information to be loaded, acquiring a preview image of the information to be loaded; displaying the preview image on an area displaying the information to be loaded, and covering a preset mask layer on the preview image; and calculating the loading progress of loading the information to be loaded, and adjusting the transparency of the mask layer according to the loading progress. The embodiment of the invention also discloses a terminal. By adopting the method and the device, the terminal can display the loading progress through the change of the transparency of the display of the preview image of the information to be loaded.

Description

Loading progress display method and terminal
Technical Field
The invention relates to the technical field of electronics, in particular to a loading progress display method and a terminal.
Background
Generally, when a user browses web files such as web pages, pictures and videos, a terminal needs to load the contents of the web pages, pictures or videos to the local, and the user can see information. In the process of loading the network content to the local by the terminal, in order to make the user feel the current loading process, the terminal generally feeds back information to the user: indicating that the terminal is currently loading the network file content, rather than being unresponsive.
Currently, as shown in fig. 1, a terminal usually displays a loading icon to indicate a state that the terminal is currently loading network file content. If the loading icon rotates, it indicates that the terminal is loading. However, the method of rotating the loading icon only can display the status information of whether the network is loading, but cannot accurately display the current loading progress of the network file, which causes the terminal to waste user time in the process of loading the file, and brings inconvenience to the user.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a method and a terminal for displaying a loading progress. The terminal can display the loading progress of the terminal through the transparency change of the display of the preview image of the information to be loaded.
In order to solve the above technical problem, an embodiment of the present invention provides a method for displaying a loading progress, including:
when a terminal starts to load information to be loaded, acquiring a preview image of the information to be loaded;
displaying the preview image on an area displaying the information to be loaded, and covering a preset mask layer on the preview image;
and calculating the loading progress of loading the information to be loaded, and adjusting the transparency of the mask layer according to the loading progress so as to adjust the transparency of the preview image display to display the loading progress.
The information to be loaded comprises a webpage, a video and a picture;
the acquiring the preview image of the information to be loaded comprises:
when the information to be loaded comprises the video, acquiring a specified frame image of the video, and taking the specified frame image as a preview image of the video; or,
when the information to be loaded comprises the picture, obtaining a picture thumbnail of the picture, and taking the picture thumbnail as a preview image of the picture;
and when the information to be loaded comprises the webpage, acquiring a webpage thumbnail of the webpage, and taking the webpage thumbnail as a preview image of the webpage.
Wherein the overlaying a preset mask layer on the preview image comprises:
creating the mask layer, wherein the mask layer is non-transparent.
Wherein the adjusting the transparency of the mask layer according to the loading progress comprises:
acquiring the transparency corresponding to the loading progress according to the corresponding relation between the preset loading progress and the transparency;
and taking the transparency as the transparency of the mask layer.
Wherein the adjusting the transparency of the mask layer according to the loading progress comprises:
and reducing the transparency of the mask layer by taking a preset value as a unit according to the preset increment of the loading progress.
Wherein, the calculating the loading progress of loading the information to be loaded and the adjusting the transparency of the mask layer according to the loading progress further comprises:
when the information to be loaded comprises the pictures, gradually displaying the pictures on the preview images according to the loading progress;
and when the information to be loaded comprises the webpage, gradually displaying the webpage on the preview image according to the loading progress.
The present invention also provides a terminal, including:
the terminal comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a preview image of information to be loaded when the terminal starts to load the information to be loaded;
the processing unit is used for displaying the preview image on the area displaying the information to be loaded and covering a preset mask layer on the preview image;
and the adjusting unit is used for calculating the loading progress of loading the information to be loaded, and adjusting the transparency of the mask layer according to the loading progress so as to adjust the transparency of the preview image display to display the loading progress.
The information to be loaded comprises a webpage, a video and a picture;
the acquisition unit includes:
the first obtaining subunit is configured to, when the information to be loaded includes the video, obtain a specified frame image of the video, and use the specified frame image as a preview image of the video;
the second obtaining subunit is configured to, when the information to be loaded includes the picture, obtain a picture thumbnail of the picture, and use the picture thumbnail as a preview image of the picture;
and the third acquiring subunit is configured to acquire a webpage thumbnail of the webpage when the information to be loaded includes the webpage, and use the webpage thumbnail as a preview image of the webpage.
Wherein, the terminal further includes:
a creating unit for creating the mask layer, wherein the mask layer is non-transparent.
Wherein the adjusting unit includes:
the fourth obtaining subunit is configured to obtain, according to a preset correspondence between the loading progress and the transparency, the transparency corresponding to the loading progress;
a setting unit for setting the transparency as the transparency of the mask layer.
Wherein the adjusting unit is specifically configured to:
and reducing the transparency of the mask layer by taking a preset value as a unit according to the preset increment of the loading progress.
Wherein, the terminal further includes:
the first display unit is used for gradually displaying the pictures on the preview image according to the loading progress when the information to be loaded comprises the pictures;
and the second display unit is used for gradually displaying the webpage on the preview image according to the loading progress when the information to be loaded comprises the webpage.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, when the terminal starts to load the information to be loaded, the preview image of the information to be loaded is acquired, the preview image is displayed on the area for displaying the information to be loaded, the preset mask layer is covered on the preview image, the loading progress for loading the information to be loaded is calculated, and the transparency of the mask layer is adjusted according to the loading progress, so that the terminal can display the loading progress through the change of the displayed transparency of the preview image of the information to be loaded, a user can know the loading progress according to the change of the displayed transparency of the preview image, the user operation time is saved, the user can know the content of the information to be loaded according to the preview image, and the user experience degree is effectively improved.
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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic view of a loading icon according to the background art of the present invention;
fig. 2 is a flowchart illustrating a method for displaying a loading progress according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for displaying a loading progress according to a second embodiment of the present invention;
fig. 4 is a block diagram of a first embodiment of a terminal of the present invention;
fig. 5 is a block diagram of a second embodiment of a terminal of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
For convenience of description, a terminal is taken as a control terminal of an execution subject in the embodiment of the present invention, and the described terminal may include: a mobile phone, a tablet computer, a palm computer, or a Mobile Internet Device (MID), etc., which are examples and not exhaustive, and include but are not limited to the above terminals.
Fig. 1 is a flowchart illustrating a method for displaying a loading progress according to a first embodiment of the present invention. As shown in fig. 1, the method for displaying a loading progress according to this embodiment includes the steps of:
s100, when the terminal starts to load the information to be loaded, acquiring a preview image of the information to be loaded.
In the embodiment of the invention, the information to be loaded can comprise files such as network videos, web pages, network pictures and the like which need to be loaded and displayed from a network. When the terminal needs to load the information to be loaded, the terminal can acquire a preview image of the information to be loaded. Optionally, when the information to be loaded is a video, the obtaining, by the terminal, a preview image of the information to be loaded may be: when the terminal judges the designated frame image loaded to the video, the terminal can acquire the designated frame image and use the designated frame image as a preview image of the video, wherein the designated frame image can be a first frame image, a second frame image or an image of other frames of the video. Optionally, when the information to be loaded is a picture, the obtaining, by the terminal, a preview image of the information to be loaded may be: the method comprises the steps of obtaining a picture thumbnail of a picture, and taking the picture thumbnail as a preview image of the picture, wherein the picture thumbnail of the picture is a picture with low definition loaded from the picture by a terminal, the picture with low definition can be a picture thumbnail with low resolution, the resolution of the picture thumbnail is far smaller than that of the original picture, or the picture with low definition can be a picture thumbnail with few pixels, and the picture thumbnail is far smaller than that of the original picture. Optionally, when the information to be loaded is a webpage, the obtaining, by the terminal, a preview image of the information to be loaded may be: the method comprises the steps of obtaining a webpage thumbnail of a webpage, and taking the webpage thumbnail as a preview image of the webpage, wherein the webpage thumbnail is main document information loaded from the webpage by a terminal, and the main document information can be character information of the webpage.
S101, displaying the preview image on the area displaying the information to be loaded, and covering a preset mask layer on the preview image.
In the embodiment of the invention, when the information to be loaded is a video, the area for displaying the information to be loaded can be an area for playing the video; when the information to be loaded is a webpage, the area for displaying the information to be loaded can be an area for displaying the webpage; when the information to be loaded is a picture, the region where the information to be loaded is displayed may be a region where the picture is displayed. In the embodiment of the invention, the terminal can display the preview image on the area for displaying the information to be loaded, for example, the terminal displays a webpage thumbnail on a browser, or the terminal displays the first frame image of a video on a video player, and the like, so that a user can acquire the basic information of the information to be loaded through the preview image when the information to be loaded is not completely loaded on the terminal, and the anxiety of the user is reduced.
In the embodiment of the present invention, the preset mask layer is a non-transparent mask layer, the mask layer may be white, blue, yellow, or the like, and the user may set the color of the mask layer by himself, which is not limited herein. Further, the terminal may obtain a mask layer and cover the mask layer on the preview image, wherein the mask layer covers right above the preview image, and the mask layer may be in accordance with the display size of the preview image, so that the preview image is covered by the mask layer, and the image displayed on the region other than the display region of the preview image is also prevented from being affected when the transparency of the mask layer is adjusted. If the terminal covers the mask layer on the preview image for display, the preview image is blurred and unclear when the user views the preview image through the mask layer without adjusting the transparency. Further, when the transparency of the mask layer is adjusted, the transparency of the preview image display may also be changed according to the transparency of the mask layer.
S102, calculating the loading progress of loading the information to be loaded, and adjusting the transparency of the mask layer according to the loading progress.
In the embodiment of the present invention, the loading progress may be a ratio of a data amount of the currently loaded information to be loaded by the terminal to a data amount of the whole information to be loaded. Therefore, the terminal can obtain the data volume of the currently loaded information to be loaded and the data volume of the whole information to be loaded to calculate, and obtain the loading progress.
In the embodiment of the invention, the terminal can preset the corresponding relation between the loading progress and the transparency, wherein the loading progress and the transparency are in inverse proportion, and the smaller the transparency is, the more transparent the mask layer is. When the loading schedule is full loading, the transparency is 0, that is, when the transparency of the mask layer is 0, the mask layer is completely transparent. Therefore, when the terminal acquires the loading progress, the terminal can acquire the transparency corresponding to the loading progress according to the preset corresponding relation between the loading progress and the transparency, and adjust the transparency corresponding to the acquired loading progress as the transparency of the mask layer. Since the loading progress is larger and larger, the corresponding transparency is smaller and smaller, and thus it can be known that as the data size of the loaded information to be loaded is larger and larger, the mask layer is also more and more transparent.
Optionally, in the embodiment of the present invention, the terminal may further decrease the transparency of the mask layer in units of a preset value according to the increment of the loading progress. For example, every 0.1 increase in loading progress decreases the transparency of the masking layer by 10%. Thereby adjusting the transparency of the mask layer. Since the unit increment of the loading progress is more and more, the transparency of the mask layer is reduced more and more, and thus it can be known that the mask layer is more and more transparent as the data amount of the loaded information to be loaded is larger and larger.
In the embodiment of the present invention, as described above, as the data size of the loaded information to be loaded becomes larger, the mask layer becomes more transparent. Therefore, the preview image covered under the mask layer is clearer and clearer, the preview image is displayed gradually, and when the preview image is completely displayed, the information to be loaded is downloaded, so that the terminal can display the loading progress through the change of the transparency displayed by the preview image. The user can also know the loading progress of the information to be loaded according to the change of the transparency displayed by the preview image, so that the user can comprehensively utilize the waiting time, and the waiting time of the user can be effectively saved.
In the embodiment of the invention, when the terminal has loaded the information to be loaded, the terminal can remove the mask layer, so that the preview image can be clearly displayed.
According to the embodiment of the invention, when the terminal starts to load the information to be loaded, the preview image of the information to be loaded is acquired, the preview image is displayed on the area for displaying the information to be loaded, the preset mask layer is covered on the preview image, the loading progress for loading the information to be loaded is calculated, and the transparency of the mask layer is adjusted according to the loading progress, so that the terminal can display the loading progress through the change of the displayed transparency of the preview image of the information to be loaded, a user can know the loading progress according to the change of the displayed transparency of the preview image, the user operation time is saved, the user can know the content of the information to be loaded according to the preview image, and the user experience degree is effectively improved.
Fig. 2 is a flowchart illustrating a method for displaying a loading progress according to a first embodiment of the present invention. As shown in fig. 2, the method for displaying a loading progress according to this embodiment includes the steps of:
s200, when the terminal starts to load the information to be loaded, acquiring a preview image of the information to be loaded.
S201, displaying the preview image on the area displaying the information to be loaded, and covering a preset mask layer on the preview image.
S202, calculating the loading progress of loading the information to be loaded, and adjusting the transparency of the mask layer according to the loading progress.
S203, when the information to be loaded comprises the pictures, gradually displaying the pictures on the preview image according to the loading progress.
In the embodiment of the invention, when the information to be loaded is a picture, the terminal gradually fills the picture thumbnail according to the loaded information to be loaded so as to enable the picture thumbnail displayed by the terminal to be clearer, and when the terminal finishes loading the picture, the picture thumbnail currently displayed by the terminal can be the picture original image. Therefore, the user can more intuitively acquire the display definition change of the picture, and the loading progress can be more accurately acquired.
S304, when the information to be loaded comprises the webpage, gradually displaying the webpage on the preview image according to the loading progress.
In the embodiment of the invention, when the information to be loaded is the webpage, the terminal gradually fills the webpage thumbnail according to the loaded information to be loaded, for example, the downloaded webpage contents such as pictures, videos and the like are gradually supplemented in the initially displayed webpage thumbnail so as to enable the webpage thumbnail displayed by the terminal to be clearer and more complete, and when the terminal finishes loading the webpage, the webpage thumbnail currently displayed by the terminal can be the original webpage image. Therefore, the user can more intuitively acquire the display definition change of the webpage, and the loading progress can be more accurately acquired.
In the embodiment of the present invention, specific implementation contents of step S200, step S201, and step S202 may refer to specific implementation manners of step S100, step S101, and step S102 in the foregoing embodiment, which are not described herein again.
According to the embodiment of the invention, when the terminal starts to load the information to be loaded, the preview image of the information to be loaded is acquired, the preview image is displayed on the area for displaying the information to be loaded, the preset mask layer is covered on the preview image, the loading progress for loading the information to be loaded is calculated, and the transparency of the mask layer is adjusted according to the loading progress, so that the terminal can display the loading progress through the change of the displayed transparency of the preview image of the information to be loaded, a user can know the loading progress according to the change of the displayed transparency of the preview image, the user operation time is saved, the user can know the content of the information to be loaded according to the preview image, and the user experience degree is effectively improved.
Fig. 3 is a flowchart illustrating a terminal according to a first embodiment of the present invention. As shown in fig. 3, a terminal according to this embodiment includes:
the acquiring unit 100 is configured to acquire a preview image of the information to be loaded when the terminal starts to load the information to be loaded.
And the processing unit 200 is configured to display the preview image on an area where the information to be loaded is displayed, and cover a preset mask layer on the preview image.
An adjusting unit 300, configured to calculate a loading progress of loading the information to be loaded, and adjust the transparency of the mask layer according to the loading progress.
In the embodiment of the invention, the information to be loaded can comprise files such as network videos, web pages, network pictures and the like which need to be loaded and displayed from a network. When the terminal needs to load the information to be loaded, the obtaining unit 100 may obtain a preview image of the information to be loaded. Optionally, when the information to be loaded is a video, the acquiring unit 100 may acquire a preview image of the information to be loaded, where: when the terminal determines a designated frame image loaded to the video, the acquiring unit 100 may acquire the designated frame image, which may be a first frame image, or a second frame image, or an image of another frame of the video, and may take the designated frame image as a preview image of the video. Optionally, when the information to be loaded is a picture, the acquiring unit 100 may acquire a preview image of the information to be loaded: the method comprises the steps of obtaining a picture thumbnail of a picture, and taking the picture thumbnail as a preview image of the picture, wherein the picture thumbnail of the picture is a picture with low definition loaded from the picture by a terminal, the picture with low definition can be a picture thumbnail with low resolution, the resolution of the picture thumbnail is far smaller than that of the original picture, or the picture with low definition can be a picture thumbnail with few pixels, and the picture thumbnail is far smaller than that of the original picture. Optionally, when the information to be loaded is a web page, the acquiring unit 100 may acquire a preview image of the information to be loaded, where: the method comprises the steps of obtaining a webpage thumbnail of a webpage, and taking the webpage thumbnail as a preview image of the webpage, wherein the webpage thumbnail is main document information loaded from the webpage by a terminal, and the main document information can be character information of the webpage.
In the embodiment of the invention, when the information to be loaded is a video, the area for displaying the information to be loaded can be an area for playing the video; when the information to be loaded is a webpage, the area for displaying the information to be loaded can be an area for displaying the webpage; when the information to be loaded is a picture, the region where the information to be loaded is displayed may be a region where the picture is displayed. In the embodiment of the present invention, the processing unit 200 may display the preview image on the area displaying the information to be loaded, for example, the processing unit 200 displays a webpage thumbnail on a browser, or the processing unit 200 displays a first frame image of a video on a video player, which may enable a user to obtain basic information of the information to be loaded through the preview image displayed by the processing unit 200 when the information to be loaded is not yet completely loaded on the terminal, thereby reducing anxiety of the user.
In the embodiment of the present invention, the preset mask layer is a non-transparent mask layer, the mask layer may be white, blue, yellow, or the like, and the user may set the color of the mask layer by himself, which is not limited herein. Further, the processing unit 200 may obtain a mask layer and cover the mask layer on the preview image, wherein the mask layer covers right above the preview image, and the display size of the mask layer may be the same as that of the preview image, so that the preview image is covered by the mask layer, and the image displayed on the region other than the display region of the preview image is also prevented from being affected when the transparency of the mask layer is adjusted. If the terminal covers the mask layer on the preview image for display, the preview image is blurred and unclear when the user views the preview image through the mask layer without adjusting the transparency. Further, when the transparency of the mask layer is adjusted, the transparency of the preview image display may also be changed according to the transparency of the mask layer.
In the embodiment of the present invention, the loading progress may be a ratio of a data amount of the currently loaded information to be loaded by the terminal to a data amount of the whole information to be loaded. Therefore, the adjusting unit 300 may obtain the data amount of the currently loaded information to be loaded and the data amount of the entire information to be loaded, and perform calculation to obtain the loading progress.
In the embodiment of the invention, the terminal can preset the corresponding relation between the loading progress and the transparency, wherein the loading progress and the transparency are in inverse proportion, and the smaller the transparency is, the more transparent the mask layer is. When the loading schedule is full loading, the transparency is 0, that is, when the transparency of the mask layer is 0, the mask layer is completely transparent. Therefore, when the adjustment unit 300 obtains the loading progress, the adjustment unit 300 may obtain the transparency corresponding to the loading progress according to the preset corresponding relationship between the loading progress and the transparency, and adjust the transparency corresponding to the obtained loading progress as the transparency of the mask layer. Since the loading progress is larger and larger, the corresponding transparency is smaller and smaller, and thus it can be known that as the data size of the loaded information to be loaded is larger and larger, the mask layer is also more and more transparent.
Optionally, in an embodiment of the invention, the adjusting unit 300 may further decrease the transparency of the mask layer by a predetermined value according to the increment of the loading progress. For example, every 0.1 increase in loading progress decreases the transparency of the masking layer by 10%. Thereby adjusting the transparency of the mask layer. Since the unit increment of the loading progress is more and more, the transparency of the mask layer is reduced more and more, and thus it can be known that the mask layer is more and more transparent as the data amount of the loaded information to be loaded is larger and larger.
In the embodiment of the present invention, as described above, as the data size of the loaded information to be loaded becomes larger, the mask layer becomes more transparent. Therefore, the preview image covered under the mask layer is clearer and clearer, the preview image is displayed gradually, and when the preview image is completely displayed, the information to be loaded is downloaded, so that the terminal can display the loading progress through the change of the transparency displayed by the preview image. The user can also know the loading progress of the information to be loaded according to the change of the transparency displayed by the preview image, so that the user can comprehensively utilize the waiting time, and the waiting time of the user can be effectively saved.
In the embodiment of the invention, when the terminal has loaded the information to be loaded, the terminal can remove the mask layer, so that the preview image can be clearly displayed.
The information to be loaded comprises a webpage, a video and a picture;
the acquisition unit 100 includes:
the first obtaining subunit is configured to, when the information to be loaded includes the video, obtain a specified frame image of the video, and use the specified frame image as a preview image of the video;
the second obtaining subunit is configured to, when the information to be loaded includes the picture, obtain a picture thumbnail of the picture, and use the picture thumbnail as a preview image of the picture;
and the third acquiring subunit is configured to acquire a webpage thumbnail of the webpage when the information to be loaded includes the webpage, and use the webpage thumbnail as a preview image of the webpage.
Wherein, the terminal further includes:
a creating unit for creating the mask layer, wherein the mask layer is non-transparent.
Wherein the adjusting unit 300 includes:
the fourth obtaining subunit is configured to obtain, according to a preset correspondence between the loading progress and the transparency, the transparency corresponding to the loading progress;
a setting unit for setting the transparency as the transparency of the mask layer.
Wherein the adjusting unit 100 is specifically configured to:
and reducing the transparency of the mask layer by taking a preset value as a unit according to the preset increment of the loading progress.
It can be understood that the functions of the functional modules of the apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
According to the embodiment of the invention, when the terminal starts to load the information to be loaded, the preview image of the information to be loaded is acquired, the preview image is displayed on the area for displaying the information to be loaded, the preset mask layer is covered on the preview image, the loading progress for loading the information to be loaded is calculated, and the transparency of the mask layer is adjusted according to the loading progress, so that the terminal can display the loading progress through the change of the displayed transparency of the preview image of the information to be loaded, a user can know the loading progress according to the change of the displayed transparency of the preview image, the user operation time is saved, the user can know the content of the information to be loaded according to the preview image, and the user experience degree is effectively improved.
Fig. 4 is a flowchart illustrating a second embodiment of a terminal according to the present invention. As shown in fig. 4, a terminal according to this embodiment includes:
an acquisition unit 100, a processing unit 200 and an adjustment unit 300.
Wherein, above-mentioned terminal station still includes:
a first display unit 400, configured to gradually display the picture on the preview image according to the loading progress when the information to be loaded includes the picture.
A second display unit 500, configured to gradually display the webpage on the preview image according to the loading progress when the information to be loaded includes the webpage.
In the embodiment of the present invention, when the information to be loaded is a picture, the first display unit 400 gradually fills a picture thumbnail according to the loaded information to be loaded, so that the picture thumbnail displayed by the terminal becomes clearer and clearer, and when the first display unit 400 finishes loading the picture, the picture thumbnail currently displayed by the first display unit 400 may be an original picture. Therefore, the user can more intuitively acquire the display definition change of the picture, and the loading progress can be more accurately acquired.
In the embodiment of the present invention, when the information to be loaded is a web page, the second display unit 500 gradually fills a web page thumbnail according to the loaded information to be loaded, for example, gradually supplements downloaded web page contents such as pictures and videos in the initially displayed web page thumbnail so as to make the web page thumbnail displayed by the terminal more and more clear and complete, and when the terminal finishes loading the web page, the web page thumbnail currently displayed by the second display unit 500 may be the original image of the web page. Therefore, the user can more intuitively acquire the display definition change of the webpage, and the loading progress can be more accurately acquired.
It can be understood that the functions of the functional modules of the apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
According to the embodiment of the invention, when the terminal starts to load the information to be loaded, the preview image of the information to be loaded is acquired, the preview image is displayed on the area for displaying the information to be loaded, the preset mask layer is covered on the preview image, the loading progress for loading the information to be loaded is calculated, and the transparency of the mask layer is adjusted according to the loading progress, so that the terminal can display the loading progress through the change of the displayed transparency of the preview image of the information to be loaded, a user can know the loading progress according to the change of the displayed transparency of the preview image, the user operation time is saved, the user can know the content of the information to be loaded according to the preview image, and the user experience degree is effectively improved.
To illustrate the present invention more clearly, the present invention provides a storage medium for storing an application program, where the application program is configured to execute an operation method of a lock screen interface according to an embodiment of the present invention when the application program is executed.
It is to be understood that a storage medium of this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the description related to the foregoing method embodiment, which is not described herein again.
In order to more clearly illustrate the present invention, the present invention discloses an application program, wherein the application program is used for executing the operation method of the screen locking interface according to the embodiment of the present invention during running
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A method for displaying loading progress is characterized by comprising the following steps:
when a terminal starts to load information to be loaded, acquiring a preview image of the information to be loaded;
displaying the preview image on an area displaying the information to be loaded, and covering a preset mask layer on the preview image;
and calculating the loading progress of loading the information to be loaded, and adjusting the transparency of the mask layer according to the loading progress so as to adjust the transparency of the preview image display to display the loading progress.
2. The method of claim 1, wherein the information to be loaded includes web pages, videos, and pictures;
the acquiring the preview image of the information to be loaded comprises:
when the information to be loaded comprises the video, acquiring a specified frame image of the video, and taking the specified frame image as a preview image of the video; or,
when the information to be loaded comprises the picture, obtaining a picture thumbnail of the picture, and taking the picture thumbnail as a preview image of the picture;
and when the information to be loaded comprises the webpage, acquiring a webpage thumbnail of the webpage, and taking the webpage thumbnail as a preview image of the webpage.
3. The method of claim 1, wherein said overlaying a preset mask layer over said preview image comprises:
creating the mask layer, wherein the mask layer is non-transparent.
4. The method of claim 1, wherein the adjusting the transparency of the mask layer according to the loading schedule comprises:
acquiring the transparency corresponding to the loading progress according to the corresponding relation between the preset loading progress and the transparency;
and taking the transparency as the transparency of the mask layer.
5. The method of claim 1, wherein the adjusting the transparency of the mask layer according to the loading schedule comprises:
and reducing the transparency of the mask layer by taking a preset value as a unit according to the preset increment of the loading progress.
6. The method of claim 1, wherein calculating a loading schedule for loading the information to be loaded, and after adjusting the transparency of the mask layer according to the loading schedule, further comprises:
when the information to be loaded comprises the pictures, gradually displaying the pictures on the preview images according to the loading progress;
and when the information to be loaded comprises the webpage, gradually displaying the webpage on the preview image according to the loading progress.
7. A terminal, characterized in that the terminal comprises:
the terminal comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a preview image of information to be loaded when the terminal starts to load the information to be loaded;
the processing unit is used for displaying the preview image on the area displaying the information to be loaded and covering a preset mask layer on the preview image;
and the adjusting unit is used for calculating the loading progress of loading the information to be loaded, and adjusting the transparency of the mask layer according to the loading progress so as to adjust the transparency of the preview image display to display the loading progress.
8. The terminal of claim 7, wherein the information to be loaded includes web pages, videos, and pictures;
the acquisition unit includes:
the first obtaining subunit is configured to, when the information to be loaded includes the video, obtain a specified frame image of the video, and use the specified frame image as a preview image of the video;
the second obtaining subunit is configured to, when the information to be loaded includes the picture, obtain a picture thumbnail of the picture, and use the picture thumbnail as a preview image of the picture;
and the third acquiring subunit is configured to acquire a webpage thumbnail of the webpage when the information to be loaded includes the webpage, and use the webpage thumbnail as a preview image of the webpage.
9. The terminal of claim 7, wherein the terminal further comprises:
a creating unit for creating the mask layer, wherein the mask layer is non-transparent.
10. The terminal of claim 7, wherein the adjusting unit comprises:
the fourth obtaining subunit is configured to obtain, according to a preset correspondence between the loading progress and the transparency, the transparency corresponding to the loading progress;
a setting unit for setting the transparency as the transparency of the mask layer.
CN201510960191.0A 2015-12-18 2015-12-18 Loading progress display method and terminal Expired - Fee Related CN105608161B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510960191.0A CN105608161B (en) 2015-12-18 2015-12-18 Loading progress display method and terminal
PCT/CN2016/082216 WO2017101250A1 (en) 2015-12-18 2016-05-16 Method for displaying loading progress and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510960191.0A CN105608161B (en) 2015-12-18 2015-12-18 Loading progress display method and terminal

Publications (2)

Publication Number Publication Date
CN105608161A true CN105608161A (en) 2016-05-25
CN105608161B CN105608161B (en) 2019-09-06

Family

ID=55988101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510960191.0A Expired - Fee Related CN105608161B (en) 2015-12-18 2015-12-18 Loading progress display method and terminal

Country Status (2)

Country Link
CN (1) CN105608161B (en)
WO (1) WO2017101250A1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155748A (en) * 2016-07-21 2016-11-23 北京奇虎科技有限公司 Thematic map target method for building up, device in portable mobile termianl and downloading process
CN106201838A (en) * 2016-07-22 2016-12-07 传线网络科技(上海)有限公司 Video download progress display packing and device
CN108037860A (en) * 2017-11-22 2018-05-15 北京川上科技有限公司 A kind of methods of exhibiting and device of video upload/download progress
CN108268232A (en) * 2018-02-09 2018-07-10 腾讯数码(天津)有限公司 A kind of image display method, device, system and storage medium
CN108595235A (en) * 2018-03-20 2018-09-28 车音智能科技有限公司 A kind of picture loading method and device
CN109154931A (en) * 2016-07-28 2019-01-04 三星电子株式会社 Show the method for content and the electronic equipment suitable for this method
CN109618216A (en) * 2018-12-25 2019-04-12 北京微播视界科技有限公司 Show method, apparatus, equipment and the storage medium of video stress state mark
CN111324404A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Information acquisition progress display method and device, electronic equipment and readable medium
CN111770385A (en) * 2020-07-23 2020-10-13 北京字节跳动网络技术有限公司 Card display method and device, electronic equipment and medium
CN112051995A (en) * 2020-10-09 2020-12-08 腾讯科技(深圳)有限公司 Image rendering method, related device, equipment and storage medium
CN112783594A (en) * 2021-02-01 2021-05-11 维沃移动通信有限公司 Message display method and device and electronic equipment
CN113867857A (en) * 2021-09-06 2021-12-31 贵阳语玩科技有限公司 Progress bar display method, device and equipment based on Android system
CN113918069A (en) * 2021-10-08 2022-01-11 深圳市科曼医疗设备有限公司 Information interaction method and device, electronic equipment and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933758A (en) * 2017-12-18 2019-06-25 北京奇虎科技有限公司 Methods of exhibiting, device, electronic equipment and the computer readable storage medium of chart
CN109886861B (en) * 2019-01-08 2023-04-11 北京城市网邻信息技术有限公司 High-efficiency image file format HEIF image loading method and device
CN110852936B (en) * 2019-10-15 2023-03-31 稿定(厦门)科技有限公司 Method and device for mixing pictures
CN113157152B (en) * 2020-01-23 2024-04-26 阿里巴巴集团控股有限公司 Data processing method, device, playing terminal and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253942A (en) * 2010-05-21 2011-11-23 腾讯数码(天津)有限公司 Image display method and equipment
US20140372945A1 (en) * 2013-06-17 2014-12-18 Beijing Kingsoft Internet Security Software Co., Ltd Method for outputting images, apparatus and mobile terminal therefor
CN104777971A (en) * 2014-01-13 2015-07-15 联想(北京)有限公司 Information processing method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8495516B2 (en) * 2009-06-19 2013-07-23 Shenzhen Tcl New Technology Co., Ltd. Method of displaying downloading progress of file
KR20140081322A (en) * 2012-12-21 2014-07-01 삼성전자주식회사 Device and method for controlling screen according to data loading in terminal
CN104050422B (en) * 2014-06-10 2018-01-05 腾讯科技(深圳)有限公司 Show the method and device of the information content

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253942A (en) * 2010-05-21 2011-11-23 腾讯数码(天津)有限公司 Image display method and equipment
US20140372945A1 (en) * 2013-06-17 2014-12-18 Beijing Kingsoft Internet Security Software Co., Ltd Method for outputting images, apparatus and mobile terminal therefor
CN104777971A (en) * 2014-01-13 2015-07-15 联想(北京)有限公司 Information processing method and electronic equipment

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155748A (en) * 2016-07-21 2016-11-23 北京奇虎科技有限公司 Thematic map target method for building up, device in portable mobile termianl and downloading process
CN106201838A (en) * 2016-07-22 2016-12-07 传线网络科技(上海)有限公司 Video download progress display packing and device
CN109154931A (en) * 2016-07-28 2019-01-04 三星电子株式会社 Show the method for content and the electronic equipment suitable for this method
CN108037860A (en) * 2017-11-22 2018-05-15 北京川上科技有限公司 A kind of methods of exhibiting and device of video upload/download progress
CN108268232A (en) * 2018-02-09 2018-07-10 腾讯数码(天津)有限公司 A kind of image display method, device, system and storage medium
CN108268232B (en) * 2018-02-09 2024-04-09 腾讯数码(天津)有限公司 Picture display method, device, system and storage medium
CN108595235A (en) * 2018-03-20 2018-09-28 车音智能科技有限公司 A kind of picture loading method and device
CN109618216A (en) * 2018-12-25 2019-04-12 北京微播视界科技有限公司 Show method, apparatus, equipment and the storage medium of video stress state mark
CN111324404B (en) * 2020-01-20 2023-11-24 北京有竹居网络技术有限公司 Information acquisition progress display method and device, electronic equipment and readable medium
CN111324404A (en) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 Information acquisition progress display method and device, electronic equipment and readable medium
CN111770385A (en) * 2020-07-23 2020-10-13 北京字节跳动网络技术有限公司 Card display method and device, electronic equipment and medium
CN112051995B (en) * 2020-10-09 2022-01-28 腾讯科技(深圳)有限公司 Image rendering method, related device, equipment and storage medium
CN112051995A (en) * 2020-10-09 2020-12-08 腾讯科技(深圳)有限公司 Image rendering method, related device, equipment and storage medium
CN112783594A (en) * 2021-02-01 2021-05-11 维沃移动通信有限公司 Message display method and device and electronic equipment
CN113867857A (en) * 2021-09-06 2021-12-31 贵阳语玩科技有限公司 Progress bar display method, device and equipment based on Android system
CN113867857B (en) * 2021-09-06 2024-07-23 贵阳语玩科技有限公司 Progress bar display method, device and equipment based on Android system
CN113918069A (en) * 2021-10-08 2022-01-11 深圳市科曼医疗设备有限公司 Information interaction method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105608161B (en) 2019-09-06
WO2017101250A1 (en) 2017-06-22

Similar Documents

Publication Publication Date Title
CN105608161B (en) Loading progress display method and terminal
CN110377264B (en) Layer synthesis method, device, electronic equipment and storage medium
CN107797739B (en) Mobile terminal, display control method and device thereof, and computer-readable storage medium
CN109643241B (en) Display processing method, device, storage medium and electronic terminal
CN107945098B (en) Image processing method, image processing device, computer equipment and storage medium
CN107818008B (en) Page loading method and device
CN109885314B (en) Automatic layout method and device for small programs
CN111127543B (en) Image processing method, device, electronic equipment and storage medium
WO2017202170A1 (en) Method and device for video compression and electronic device
CN110618803A (en) Image display method and device
CN113691737B (en) Video shooting method and device and storage medium
CN112055244B (en) Image acquisition method and device, server and electronic equipment
CN104580891A (en) Method for terminal to take images
US9875521B2 (en) Image output apparatus, image output method, and program
CN108495041B (en) Image processing and displaying method and device for electronic terminal
CN110647378A (en) Dynamic image loading method and device and electronic equipment
CN113439286A (en) Processing image data in a composite image
CN104808959A (en) Information processing method and electronic device
CN111444909B (en) Image data acquisition method, terminal equipment and medium
US9460544B2 (en) Device, method and computer program for generating a synthesized image from input images representing differing views
CN104580890A (en) Terminal
CN111290822A (en) Desktop wallpaper display method and device and computer-readable storage medium
EP3125191A1 (en) Image processing device
CN111221444A (en) Split screen special effect processing method and device, electronic equipment and storage medium
CN111164569B (en) Filter switching method and filter switching system based on intelligent terminal

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190906

CF01 Termination of patent right due to non-payment of annual fee