CN105653320B - Display method and device for loading icons - Google Patents

Display method and device for loading icons Download PDF

Info

Publication number
CN105653320B
CN105653320B CN201510998407.2A CN201510998407A CN105653320B CN 105653320 B CN105653320 B CN 105653320B CN 201510998407 A CN201510998407 A CN 201510998407A CN 105653320 B CN105653320 B CN 105653320B
Authority
CN
China
Prior art keywords
color
loading
event
network traffic
loading icon
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
CN201510998407.2A
Other languages
Chinese (zh)
Other versions
CN105653320A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510998407.2A priority Critical patent/CN105653320B/en
Publication of CN105653320A publication Critical patent/CN105653320A/en
Application granted granted Critical
Publication of CN105653320B publication Critical patent/CN105653320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a display method and a device of a loading icon, wherein the method comprises the following steps: monitoring whether a loading icon display event is triggered; when the loading icon display event is triggered, displaying a preset loading icon according to a preset color parameter, wherein the color parameter is used for representing network traffic information generated by a target event triggering the loading icon display event, and different color parameters distinguish different network traffic information. In the embodiment of the disclosure, the user can determine the network traffic generated by the target event through the color of the loading icon, so that the loading icon is displayed more intelligently.

Description

Display method and device for loading icons
Technical Field
the present application relates to the field of communications technologies, and in particular, to a method and an apparatus for displaying a load icon.
Background
With the rapid development of mobile communication technology, the functions of the terminal become more and more abundant. In daily use of the terminal, a loading icon is often required to be displayed, and the loading icon is usually an icon such as a progress bar. For example, the progress of downloading the file is shown by displaying the loading icon when the file is downloaded, the progress of opening the application is shown by displaying the loading icon when the application is opened, and the like.
Disclosure of Invention
to overcome the problems in the related art, the present disclosure provides a method and apparatus for displaying a load icon.
according to a first aspect of the embodiments of the present disclosure, there is provided a method for displaying a load icon, the method including:
Monitoring whether a loading icon display event is triggered;
When the loading icon display event is triggered, displaying a preset loading icon according to a preset color parameter, wherein the color parameter is used for representing network traffic information generated by a target event triggering the loading icon display event, and different color parameters distinguish different network traffic information.
Optionally, the network traffic information includes a network traffic value, the preset color parameter includes a first color parameter and a second color parameter, the first color parameter indicates that the network traffic value generated by the target event is greater than zero, and the second color parameter indicates that the network traffic value generated by the target event is equal to zero.
Optionally, the displaying the loading icon according to a preset color parameter includes:
Calling a preset loading icon plug-in to display the loading icon, wherein a color attribute is pre-configured in the loading icon plug-in, and an attribute value of the color attribute is the color parameter.
Optionally, the color attribute includes a layout background attribute.
Optionally, before the displaying the loading icon according to the preset color parameter, the method further includes:
And reading the generated network flow value of the target event recorded in a prestored system network flow monitoring file to obtain the network flow information.
According to a second aspect of the embodiments of the present disclosure, there is provided a display apparatus for loading an icon, the apparatus including:
A monitoring module configured to monitor whether a load icon display event is triggered;
the display module is configured to display a preset loading icon according to a preset color parameter when the loading icon display event is triggered, wherein the color parameter is used for representing network traffic information generated by a target event triggering the loading icon display event, and different color parameters distinguish different network traffic information.
Optionally, the network traffic information includes a network traffic value, the preset color parameter includes a first color parameter and a second color parameter, the first color parameter indicates that the network traffic value generated by the target event is greater than zero, and the second color parameter indicates that the network traffic value generated by the target event is equal to zero.
Optionally, the display module includes:
And the calling sub-module is configured to call a preset loading icon plug-in to display the loading icon, wherein a color attribute is configured in the loading icon plug-in advance, and an attribute value of the color attribute is the color parameter.
Optionally, the color attribute includes a layout background attribute.
Optionally, the apparatus further comprises:
And the reading module is configured to read the generated network flow value of the target event recorded in a prestored system network flow monitoring file to obtain the network flow information.
According to a third aspect of the embodiments of the present disclosure, there is provided a display device of a load icon, including:
A processor;
A memory for storing processor-executable instructions;
Wherein the processor is configured to:
Monitoring whether a loading icon display event is triggered;
when the loading icon display event is triggered, displaying a preset loading icon according to a preset color parameter, wherein the color parameter is used for representing network traffic information generated by a target event triggering the loading icon display event, and different color parameters distinguish different network traffic information.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the present disclosure, a preset loading icon may be displayed according to a preset color parameter, the color parameter may be used to represent network traffic information generated by a target event that triggers the loading icon display event, and different color parameters may distinguish different network traffic information, so that a user may determine the network traffic information generated by the target event through the color of the loading icon, so that the loading icon is displayed more intelligently.
In this disclosure, the preset color parameters include two different color parameters, which respectively correspond to the target events of the two networking states. Because whether the target event needs to be networked to generate network traffic is distinguished only by two color parameters, the method is easy to implement and more convenient for a user to identify.
In the disclosure, the display of the loading icon can be realized by calling the loading icon plug-in, and the method is easy to realize.
According to the method and the device, the color of the loading icon is set by using the native layout background attribute in the loading icon plug-in, so that the difficulty in setting the color of the loading icon can be reduced, and the display efficiency of the loading icon is improved.
In the method and the device, the network flow value generated by the target event can be detected in real time by reading the prestored system network flow monitoring file, so that the corresponding color parameter can be accurately determined.
it is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
fig. 1A is a flowchart illustrating a method of displaying a load icon according to an exemplary embodiment of the present disclosure.
FIG. 1B is a schematic diagram of a load icon shown in the present disclosure according to an exemplary embodiment.
Fig. 1C is a schematic diagram illustrating a display of a load icon in a browser application according to an example embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating another method of displaying a load icon according to an example embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating another method of displaying a load icon according to an example embodiment of the present disclosure.
Fig. 4 is a block diagram illustrating a display device loading an icon according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating another display device loading icons according to an example embodiment of the present disclosure.
fig. 6 is a block diagram illustrating another display device loading icons according to an example embodiment of the present disclosure.
Fig. 7 is a schematic structural diagram illustrating a device for loading an icon display according to an exemplary embodiment of the present disclosure.
Detailed Description
reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
as shown in fig. 1A, fig. 1A is a flowchart illustrating a display method of a load icon according to an exemplary embodiment of the present disclosure, which is applicable to a terminal, and includes the following steps 101 to 102:
In step 101, it is monitored whether a load icon display event is triggered.
In step 102, when the loading icon display event is triggered, displaying a preset loading icon according to a preset color parameter.
the color parameter is used for representing network traffic information generated by a target event triggering the loading icon display event, and different color parameters distinguish different network traffic information.
According to the embodiment provided by the disclosure, the terminal can comprise intelligent terminals such as a smart phone, a tablet device and an electronic book reader. In daily use, the terminal often needs to display a loading icon, for example, the loading icon is displayed to show the progress of downloading a file when the file is downloaded, the loading icon is displayed to show the progress of opening an application program when the application program is opened, the loading icon is displayed to show the refresh progress of a page when the page is refreshed, the loading icon is displayed to show the installation progress when the application program or a plug-in is installed, and the like.
When the application program runs, an event for controlling the loading icon to be displayed is called a loading icon display event, and when the loading icon display event is triggered, the loading icon can be displayed. And the event triggering the loading icon display event is called a target event. In practical applications, the target event may be various, for example, taking a browser application as an example, the target event may include a file download event, an application program opening event, a page refreshing event, an application program installation event, a plug-in installation event, and the like. When the target event is carried out, the loading icon display event can be triggered, and the loading process or progress of the loading icon can be displayed through the display of the loading icon. In the target events, part of the target events need to be networked, and network traffic can be generated, such as file downloading events or page refreshing events; and some target events do not need to be networked, and network traffic cannot be generated, such as application installation events or plug-in installation events.
The loading icon can be an icon such as a progress bar, and the progress bar can comprise a bar-shaped progress bar, a circular progress bar or a rectangular progress bar. As shown in fig. 1B, is a schematic diagram of a load icon shown in the present disclosure according to an exemplary embodiment.
In the related art, in the same application program, the loading icons are generally in a uniform style, that is, in the same shape or color matching, and a user can look up the loading icons in a user interface of the terminal, but cannot judge whether a corresponding target event needs to be networked or not and whether network traffic is generated or not.
In the embodiment of the present disclosure, a preset loading icon may be displayed according to a preset color parameter, where the color parameter is used to represent network traffic information generated by a target event that triggers the loading icon display event, and different color parameters distinguish different network traffic information; therefore, by loading the color of the icon, the user can know the network traffic information generated by the target event.
The network flow information may adopt a network flow value, or may adopt an identifier indicating whether to perform networking. The color parameter may include a plurality of color values, such as red, blue, or green, etc. For example, if the target event needs to be networked, it can be represented in red; if the target event does not need to be networked, a blue or green representation may be employed. Alternatively, the corresponding color parameter may be configured according to the magnitude of the network traffic value, for example, the color corresponding to different grays, the color corresponding to different brightnesses, the color corresponding to different color systems, or the like according to the magnitude of the network traffic value. In practical application, the color parameters of the loading icon can be flexibly configured according to needs.
as shown in fig. 1C, which is a schematic diagram of a browser displaying a loading icon according to an exemplary embodiment of the present disclosure, in fig. 1C, a terminal is described by taking a smart phone as an example, a browser application is installed in the smart phone, a file downloading event in the browser application is ongoing, and the file downloading event is specifically downloading a one-meter chat APP file. The download file event triggers a load icon display event, the load icon displayed by the load icon display event is a rounded rectangle progress bar to show the download progress of the chat APP file, because the download file event needs to be networked to generate network traffic, in the embodiment of the disclosure, the color parameter adopts red, and a red load icon is shown in fig. 1C to indicate that the download file event needs to be networked to generate network traffic.
As can be seen from the above embodiments, the preset loading icon can be displayed according to the preset color parameter, the color parameter can be used to represent the network traffic information generated by the target event that triggers the loading icon display event, and different color parameters can distinguish different network traffic information, so that a user can determine the network traffic information generated by the target event through the color of the loading icon, and the loading icon is displayed more intelligently.
in an optional implementation manner, the network traffic information includes a network traffic value, the preset color parameter includes a first color parameter and a second color parameter, the first color parameter indicates that the network traffic value generated by the target event is greater than zero, and the second color parameter indicates that the network traffic value generated by the target event is equal to zero.
in the embodiment provided by the disclosure, the network flow information is represented by a network flow value, the network flow value generated by the target event is greater than zero, and the target event is represented by the network flow generated by networking; the network traffic value generated by the target event is equal to zero, indicating that the target event does not require networking and does not generate network traffic.
The preset color parameters comprise two different color parameters which respectively correspond to the target events of the two networking states. Because whether the target event needs to be networked to generate network traffic is distinguished only by two color parameters, the method is easy to implement and more convenient for a user to identify. In addition, through long-term use, habitual cognitive training can be performed on the user, and the user can clearly judge whether the loading generates network traffic or not only by the color of the loading icon. Therefore, when a terminal operating system or an application program is developed, developers can use uniform color parameters to represent the networking state loaded each time, so that a uniform loading icon display style is formed, and the user identification is easier.
As shown in fig. 2, which is a flowchart illustrating another method for displaying a load icon according to an exemplary embodiment, applied to a terminal, includes the following steps 201 to 202:
In step 201, it is monitored whether a load icon display event is triggered.
in step 202, when the load icon display event is triggered, a preset load icon plug-in is called to display the load icon.
the method comprises the steps that a color attribute is pre-configured in a loading icon plug-in, the attribute value of the color attribute is a preset color parameter, the color parameter is used for representing network traffic information generated by a target event triggering a loading icon display event, and different color parameters distinguish different network traffic information.
According to the embodiment of the disclosure, the icon loading plug-in can be preset, and the icon loading plug-in can set the specific display shape, display size, display position or display animation form of the loading icon. Since there may be multiple situations involved in an application that require the load icon to be displayed, each load icon plug-in may be called by one or more target events. The loading icon plug-in unit can be configured with a color attribute in advance, and the attribute value of the color attribute is a preset color parameter, so that the loading icon displays a preset color. In the embodiment of the present disclosure, when the application program is compiled, the network traffic information generated by the target event may be predetermined, and the called load icon plug-in may be determined according to the network traffic information.
for example, in a browser application, two loading icon plug-ins configured with different color parameters may be preset, wherein one plug-in is used for displaying a loading icon indicating that networking is required, and the other plug-in is used for displaying a loading icon indicating that networking is not required. In the browser application, when target events such as interface installation, interface opening, page refreshing or file downloading are carried out, loading of icon display events can be triggered. Because target events such as opening an interface, refreshing a page or downloading a file need to be networked, the target events needing to be networked can call the loading icon plug-in capable of representing the requirement of networking when the target events needing to be networked are carried out. And when a target event which does not need to be networked, such as an installation interface, is carried out, another preset loading icon plug-in capable of representing that the target event does not need to be networked can be called.
In practical applications, the loading icon plug-in may be set according to the syntax of the operating system of the terminal. In this embodiment, an Android operating system is taken as an example for explanation, and a progress bar plug-in is shown below:
<ProgressBar
android ═ id @ + id/progress Bar 01'// name denoting the plug-in
Layout _ width ═ wrap _ content'// width of plug-in
android: layout _ height [ "wrap _ content"// denotes the high of the plug-in
android back ═ @ xml/progress >
background refers to the color attribute, and in the embodiment of the present disclosure, the attribute value of the attribute is an xml file named progress, and a required color parameter can be written in the progress. Xml, for example, the following can be written in progress.
Type ═ sweep: "false"// denotes gradient rendering
startColor "#447a29"// color value for rendering
anddroid endColor "#447a29"// color value for rendering
android, angle ═ 0'/>// denotes the rendered color gradient angle
As can be seen from the above embodiments, the display of the load icon can be realized by calling the load icon plug-in, which is easy to implement.
Wherein, in an alternative implementation, the color attribute includes a layout background attribute. The layout background attribute is a basic attribute in the loading icon plug-in, generally a background attribute, and the native layout background attribute in the loading icon plug-in is used for setting the color of the loading icon, so that the difficulty of setting the color of the loading icon can be reduced, and the display efficiency of the loading icon is improved.
As shown in fig. 3, which is a flowchart illustrating another method for displaying a load icon according to an exemplary embodiment, the method can be applied to a terminal, and includes the following steps 301 to 303:
In step 301, it is monitored whether a load icon display event is triggered.
In step 302, when the loading icon display event is triggered, a network traffic value generated by a target event recorded in a pre-stored system network traffic monitoring file is read to obtain network traffic information.
and the target event is a target event for triggering the loading icon display event.
In step 303, a preset loading icon is displayed according to a preset color parameter.
the color parameter is used for representing the network traffic information generated by the target event, and different color parameters distinguish different network traffic information.
According to the embodiment provided by the disclosure, the network traffic value generated by the target event can be detected in real time when the loading icon is displayed, and the detected network traffic value is used as the network traffic information to determine the color parameter. The system network flow monitoring file is a file which is specially used for monitoring network flow in an operating system of the terminal.
For example, taking an Android operating system as an example, in the Android operating system, the network traffic usage of each application is stored in a directory structure "/proc/uid _ stat/% d", where% d denotes an identifier of the application, and two files, named tcp _ rcv and tcp _ snd, are recorded under the directory structure. And reading the contents of the two files to obtain the corresponding network flow value. Where tcp _ rcv represents the number of bytes received and tcp _ snd represents the number of bytes sent. By the method, the network flow values generated by each application program at different time and different target time can be obtained.
It can be seen from the above embodiments that the network flow value generated by the target event can be detected in real time by reading the pre-stored system network flow monitoring file, so that the corresponding color parameter can be accurately determined.
Corresponding to the embodiment of the method, the disclosure also provides an embodiment of a display device for loading the icon and a terminal applied by the display device.
As shown in fig. 4, fig. 4 is a block diagram of a display apparatus for loading icons, shown in accordance with an exemplary embodiment of the present disclosure, the apparatus including: a monitoring module 41 and a display module 42.
a monitoring module 41 configured to monitor whether a load icon display event is triggered.
A display module 42 configured to display a preset loading icon according to a preset color parameter when the loading icon display event is triggered, where the color parameter is used to represent network traffic information generated by a target event triggering the loading icon display event, and different color parameters distinguish different network traffic information.
As can be seen from the above embodiments, the preset loading icon can be displayed according to the preset color parameter, the color parameter can be used to represent network traffic information generated by a target event that triggers the loading icon display event, and different color parameters can distinguish different network traffic information, so that a user can determine the network traffic generated by the target event through the color of the loading icon, and the loading icon is displayed more intelligently.
In one embodiment, the network traffic information includes a network traffic value, the preset color parameter includes a first color parameter and a second color parameter, the first color parameter indicates that the network traffic value generated by the target event is greater than zero, and the second color parameter indicates that the network traffic value generated by the target event is equal to zero.
As can be seen from the above embodiments, the preset color parameters may include two different color parameters, which respectively correspond to the target events of the two networking states. Because whether the target event needs to be networked to generate network traffic is distinguished only by two color parameters, the method is easy to implement and more convenient for a user to identify.
As shown in fig. 5, fig. 5 is a block diagram of another display device for loading icons according to an exemplary embodiment of the present disclosure, which is based on the foregoing embodiment shown in fig. 4, and the display module 42 includes: submodule 421 is invoked.
The invoking submodule 421 is configured to invoke a preset loading icon plug-in to display the loading icon, where a color attribute is pre-configured in the loading icon plug-in, and an attribute value of the color attribute is the color parameter.
as can be seen from the above embodiments, the display of the load icon can be realized by calling the load icon plug-in, which is easy to implement.
In one embodiment, the color attributes include a layout background attribute.
According to the embodiment, the color of the loading icon is set by using the native layout background attribute in the loading icon plug-in, so that the difficulty of setting the color of the loading icon can be reduced, and the display efficiency of the loading icon is improved.
as shown in fig. 6, fig. 6 is a block diagram of another display device for loading icons according to an exemplary embodiment of the present disclosure, which is based on the foregoing embodiment shown in fig. 4, and the device further includes:
A reading module 43, configured to read the generated network traffic value of the target event recorded in a pre-stored system network traffic monitoring file, so as to obtain the network traffic information.
It can be seen from the above embodiments that the network flow value generated by the target event can be detected in real time by reading the pre-stored system network flow monitoring file, so that the corresponding color parameter can be accurately determined.
Correspondingly, the disclosure also provides a display device for loading the icons, which comprises a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
monitoring whether a load icon display event is triggered.
When the loading icon display event is triggered, displaying a preset loading icon according to a preset color parameter, wherein the color parameter is used for representing network traffic information generated by a target event triggering the loading icon display event, and different color parameters distinguish different network traffic information.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
As shown in fig. 7, fig. 7 is a schematic structural diagram illustrating a device 700 for loading an icon according to an exemplary embodiment of the present disclosure. For example, the apparatus 700 may be a mobile phone with routing capability, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
the memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
the sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of device 700, sensor assembly 714 may also detect a change in position of device 700 or a component of device 700, the presence or absence of user contact with device 700, orientation or acceleration/deceleration of device 700, and a change in temperature of device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a microwave sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
wherein the instructions in the storage medium, when executed by the processor 720, enable the apparatus 700 to perform a method of displaying a load icon, the method comprising:
Monitoring whether a load icon display event is triggered.
When the loading icon display event is triggered, displaying a preset loading icon according to a preset color parameter, wherein the color parameter is used for representing network traffic information generated by a target event triggering the loading icon display event, and different color parameters distinguish different network traffic information.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A display method of a loading icon, characterized in that the method comprises:
Monitoring whether a loading icon display event is triggered;
When the loading icon display event is triggered, judging whether a target event of the loading icon display event needs to be networked to generate flow, and displaying a preset loading icon according to two preset different color parameters, wherein the color parameters are used for representing network flow information generated by the target event triggering the loading icon display event, and different color parameters are used for distinguishing different network flow information; the network traffic information comprises a network traffic value, the preset color parameter comprises a first color parameter and a second color parameter which are different, the first color parameter represents that the network traffic value generated by the target event is greater than zero, and the second color parameter represents that the network traffic value generated by the target event is equal to zero.
2. the method of claim 1, wherein the displaying the load icon according to a preset color parameter comprises:
calling a preset loading icon plug-in to display the loading icon, wherein a color attribute is pre-configured in the loading icon plug-in, and an attribute value of the color attribute is the color parameter.
3. The method of claim 2, wherein the color attribute comprises a layout background attribute.
4. The method according to claim 1, wherein before the displaying the loading icon according to the preset color parameter, further comprising:
And reading the generated network flow value of the target event recorded in a prestored system network flow monitoring file to obtain the network flow information.
5. A display device for loading icons, the device comprising:
A monitoring module configured to monitor whether a load icon display event is triggered;
The display module is configured to judge whether a target event of the loading icon display event needs to be networked to generate traffic or not when the loading icon display event is triggered, and display a preset loading icon according to two preset different color parameters, wherein the color parameters are used for representing network traffic information generated by the target event triggering the loading icon display event, and different color parameters are used for distinguishing different network traffic information; the network traffic information comprises a network traffic value, the preset color parameter comprises a first color parameter and a second color parameter which are different, the first color parameter represents that the network traffic value generated by the target event is greater than zero, and the second color parameter represents that the network traffic value generated by the target event is equal to zero.
6. The apparatus of claim 5, wherein the display module comprises:
And the calling sub-module is configured to call a preset loading icon plug-in to display the loading icon, wherein a color attribute is configured in the loading icon plug-in advance, and an attribute value of the color attribute is the color parameter.
7. The apparatus of claim 6, wherein the color attribute comprises a layout background attribute.
8. The apparatus of claim 5, further comprising:
And the reading module is configured to read the generated network flow value of the target event recorded in a prestored system network flow monitoring file to obtain the network flow information.
9. A display device for loading an icon, comprising:
a processor;
A memory for storing processor-executable instructions;
Wherein the processor is configured to:
monitoring whether a loading icon display event is triggered;
When the loading icon display event is triggered, judging whether a target event of the loading icon display event needs to be networked to generate flow, and displaying a preset loading icon according to two preset different color parameters, wherein the color parameters are used for representing network flow information generated by the target event triggering the loading icon display event, and different color parameters are used for distinguishing different network flow information; the network traffic information comprises a network traffic value, the preset color parameter comprises a first color parameter and a second color parameter which are different, the first color parameter represents that the network traffic value generated by the target event is greater than zero, and the second color parameter represents that the network traffic value generated by the target event is equal to zero.
10. A storage medium on which a computer program is stored, characterized in that the program is executed by a processor for performing the operations of the method according to any one of claims 1 to 4.
CN201510998407.2A 2015-12-25 2015-12-25 Display method and device for loading icons Active CN105653320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510998407.2A CN105653320B (en) 2015-12-25 2015-12-25 Display method and device for loading icons

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510998407.2A CN105653320B (en) 2015-12-25 2015-12-25 Display method and device for loading icons

Publications (2)

Publication Number Publication Date
CN105653320A CN105653320A (en) 2016-06-08
CN105653320B true CN105653320B (en) 2019-12-06

Family

ID=56477881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510998407.2A Active CN105653320B (en) 2015-12-25 2015-12-25 Display method and device for loading icons

Country Status (1)

Country Link
CN (1) CN105653320B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231067A (en) * 2016-07-13 2016-12-14 浪潮电子信息产业股份有限公司 Method for rapidly testing Android App starting flow
CN107015800A (en) * 2017-03-14 2017-08-04 宇龙计算机通信科技(深圳)有限公司 Display methods, device and equipment
CN108595235B (en) * 2018-03-20 2021-10-19 车音智能科技有限公司 Picture loading method and device
CN112800376B (en) * 2021-04-15 2021-07-13 成都万创科技股份有限公司 Implementation method and device based on Http cyclic request

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279265A (en) * 2013-05-07 2013-09-04 富泰华工业(深圳)有限公司 Terminal and system for displaying network information interface and interface generating method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207863A (en) * 2011-04-01 2011-10-05 奇智软件(北京)有限公司 Method and device for controlling progress bar to advance
CN103136089B (en) * 2011-11-25 2016-08-17 腾讯科技(深圳)有限公司 A kind of progress bar display packing and device
US8738665B2 (en) * 2012-04-02 2014-05-27 Apple Inc. Smart progress indicator
CN103176700A (en) * 2013-03-22 2013-06-26 广东欧珀移动通信有限公司 Method and terminal for quickly displaying status information of application program
CN103686303A (en) * 2013-12-04 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for displaying loading icons

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279265A (en) * 2013-05-07 2013-09-04 富泰华工业(深圳)有限公司 Terminal and system for displaying network information interface and interface generating method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
作为迅雷的VIP用户,开启离线下载之后不用担心进度条;匿名;《https://www.douban.com/group/topic/31021964/?cid=361994009》;20120710;第1页 *

Also Published As

Publication number Publication date
CN105653320A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
US11086482B2 (en) Method and device for displaying history pages in application program and computer-readable medium
CN110231901B (en) Application interface display method and device
CN107203398B (en) Application distribution method and device
CN107193606B (en) Application distribution method and device
CN105204350A (en) Method and apparatus for displaying household electrical appliance information
CN105956486B (en) Long-range control method and device
CN103945275B (en) Picture recording control method and device and mobile terminal
CN105653320B (en) Display method and device for loading icons
EP3428790B1 (en) Method and device for displaying application interface
EP3147802B1 (en) Method and apparatus for processing information
CN106528273B (en) Application program management method and device
CN108804179B (en) Method, device, terminal and storage medium for displaying notification bar message
WO2018018361A1 (en) Calendar event creating method and device
CN106155703B (en) Emotional state display method and device
CN111552426B (en) Intelligent equipment operation method and device and storage medium
CN107402756B (en) Method, device and terminal for drawing page
CN108829473B (en) Event response method, device and storage medium
EP3816778A1 (en) Punch-hole screen display method and apparatus
CN115373763B (en) Plug-in loading method and device, electronic equipment and storage medium
CN106155485B (en) Display method and device of interactive interface
CN106354595B (en) Mobile terminal, hardware component state detection method and device
CN114827721A (en) Video special effect processing method and device, storage medium and electronic equipment
CN110737373B (en) Application interface control method, device, terminal and storage medium
CN107423060B (en) Animation effect presenting method and device and terminal
CN112860625A (en) Data acquisition method, data storage method, device, equipment and storage medium

Legal Events

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