CN106339230B - Graphical interface display method and device - Google Patents

Graphical interface display method and device Download PDF

Info

Publication number
CN106339230B
CN106339230B CN201610822720.5A CN201610822720A CN106339230B CN 106339230 B CN106339230 B CN 106339230B CN 201610822720 A CN201610822720 A CN 201610822720A CN 106339230 B CN106339230 B CN 106339230B
Authority
CN
China
Prior art keywords
graphical interface
display
duration
unit
text content
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
CN201610822720.5A
Other languages
Chinese (zh)
Other versions
CN106339230A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610822720.5A priority Critical patent/CN106339230B/en
Publication of CN106339230A publication Critical patent/CN106339230A/en
Application granted granted Critical
Publication of CN106339230B publication Critical patent/CN106339230B/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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method and a device for displaying a graphical interface; after receiving a display request of a graphical interface, the embodiment of the invention can acquire the corresponding graphical interface according to the display request, calculate the display duration of the graphical interface according to the text content in the graphical interface, and then display the graphical interface on a terminal screen according to the display duration; the scheme can greatly improve the flexibility of graphical interface display, improve the display effect and facilitate the operation of a user.

Description

graphical interface display method and device
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for filtering browser page data.
background
the Graphical Interface, also called Graphical User Interface (GUI), refers to a computer operation User Interface displayed in a Graphical manner, for example, a web page, a prompt box, a dialog box, and the like all belong to the Graphical Interface. In the prior art, a corresponding display duration is generally set, where the display duration is a fixed value, such as 5 seconds, or 10 seconds, and the like, and after the prompt box is triggered to be displayed, the timer determines whether the display time of the prompt box exceeds the display duration according to the display duration, and if not, continues to display the prompt box on the screen, otherwise, stops displaying the prompt box, that is, does not display the prompt box on the screen.
In the research and practice process of the prior art, the inventor of the present invention finds that the flexibility of the existing graphical interface display scheme is poor, for example, for a prompt box with less content, after the user finishes reading, the user can occupy the display position of the screen for a long time, which not only affects the display effect, but also prevents the user from performing other operations.
Disclosure of Invention
The embodiment of the invention provides a method and a device for displaying a graphical interface; the flexibility of graphical interface display can be improved, the display effect is improved, and the operation of a user is facilitated.
The embodiment of the invention provides a graphical interface display method, which comprises the following steps:
Acquiring a display request of a graphical interface;
Acquiring a corresponding graphical interface according to the display request, wherein the graphical interface comprises text content;
Calculating the display duration of the graphical interface according to the text content;
And displaying the graphical interface on a terminal screen according to the display duration.
Correspondingly, an embodiment of the present invention further provides a display device for a graphical interface, including:
The request acquisition unit is used for acquiring a display request of the graphical interface;
the interface acquisition unit is used for acquiring a corresponding graphical interface according to the display request, and the graphical interface comprises text contents;
The calculation unit is used for calculating the display duration of the graphical interface according to the text content;
And the display unit is used for displaying the graphical interface on a terminal screen according to the display duration.
After receiving a display request of a graphical interface, the embodiment of the invention can acquire the corresponding graphical interface according to the display request, calculate the display duration of the graphical interface according to the text content in the graphical interface, and then display the graphical interface on a terminal screen according to the display duration; according to the scheme, the display time of the graphical interface can be adaptively adjusted according to the number of the text contents in the graphical interface, so that the display flexibility of the graphical interface can be greatly improved, the problem that some graphical interfaces, such as prompt boxes with less contents, occupy a screen for a long time can be avoided, the display effect is improved, in addition, the user can not be hindered from carrying out other operations, and the convenience and the friendliness of the user operation are greatly improved.
drawings
in order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1a is a schematic view of a scene of a display method of a graphical interface according to an embodiment of the present invention;
FIG. 1b is a schematic view of another scene of a display method of a graphical interface according to an embodiment of the present invention;
FIG. 1c is a flowchart of a method for displaying a graphical interface according to an embodiment of the present invention;
FIG. 2a is another flowchart of a method for displaying a graphical interface according to an embodiment of the present invention;
FIG. 2b is a diagram illustrating a display scenario of a prompt box according to an embodiment of the present invention;
FIG. 2c is another diagram illustrating a display scenario of a prompt box according to an embodiment of the present invention;
FIG. 3a is a schematic structural diagram of a display device of a graphical interface provided in an embodiment of the present invention;
FIG. 3b is a schematic structural diagram of another display device of a graphical interface according to an embodiment of the present invention
fig. 4 is a schematic structural diagram of a network device according to an embodiment 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.
The embodiment of the invention provides a graphical interface display method and device.
The display device of the graphical interface may be integrated in a network device such as a terminal or a server, and the graphical interface may include a display interface, a dialog box, a prompt box, or the like of the promotion information.
For example, referring to fig. 1a, taking that the display device of the graphical interface is integrated in a terminal, and the graphical interface is specifically a prompt box as an example, when a user triggers a display request of the prompt box through the terminal, such as when the user fails to operate, thereby triggering the terminal to generate prompt information, the terminal may obtain the corresponding prompt box according to the display request, calculate the display duration of the prompt box according to the text content in the prompt box, and then display the prompt box on the terminal screen according to the display duration, for example, if there are 10 characters in the prompt box, display for 5 seconds, and if there are 20 characters in the prompt box, display for 10 seconds, and so on.
For another example, referring to fig. 1b, taking that the display device of the graphical interface is integrated in a server, and the graphical interface is specifically a prompt box as an example, when a user triggers a display request of the prompt box through a terminal, for example, when the user logs in a web page, thereby triggering the server to which the web page belongs to generate prompt information, the server may obtain the corresponding prompt box according to the display request, calculate a display duration of the prompt box according to the text content in the prompt box, then send the prompt box to the corresponding terminal, and display the prompt box on a terminal screen according to the display duration, for example, if there are 10 words in the prompt box, display for 5 seconds, and if there are 20 words in the prompt box, display for 10 seconds, and so on.
the following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
The first embodiment,
The present embodiment will be described from the perspective of a display device of a graphical interface, which may be specifically integrated in a terminal or a server or other devices; the terminal may include a mobile phone, a tablet Computer, a notebook Computer, a Personal Computer (PC), and other devices.
a display method of a graphical interface comprises the following steps: the method comprises the steps of obtaining a display request of a graphical interface, obtaining a corresponding graphical interface according to the display request, wherein the graphical interface comprises text content, calculating the display duration of the graphical interface according to the text content, and displaying the graphical interface on a terminal screen according to the display duration.
As shown in fig. 1c, a specific flow of the display method of the graphical interface may be as follows:
101. and acquiring a display request of the graphical interface.
For example, a user-triggered display request of a graphical interface may be specifically received. The graphical interface may include a display interface, a dialog box, a prompt box, or the like, such as a pop-up window or a web page that may be advertised, a dialog box for chat, or a prompt box for system information, and a prompt box for user operation, and the like.
For example, if the display device of the graphical interface is integrated in the server, and the graphical interface is specifically a prompt box, when a user performs some operation on a client or a web page, for example, a password input is incorrect, the display request of the prompt box corresponding to the client or the web page and generating a corresponding "password error" may be triggered.
for another example, if the display device of the graphical interface is integrated in the terminal, and the graphical interface is specifically a prompt box, then when the user performs a certain operation on the terminal, such as closing a certain window or deleting a certain file, the terminal may be triggered to generate a display request of the corresponding prompt box of "close" or "delete file".
102. and acquiring a corresponding graphical interface according to the display request, wherein the graphical interface comprises text content.
for example, a corresponding display interface, dialog box, or prompt box may be obtained according to the display request.
the text content may include information such as Chinese characters, letters, numbers, and/or symbols. The text content can be determined according to the requirements of practical application.
103. Calculating the display duration of the graphical interface according to the text content, for example, the following may be specifically used:
(1) Calculating the number of the character contents;
For example, the length of the text content may be specifically calculated, and the number of the text content may be determined according to the length. For example, the length of each character may be obtained, and then the length of the text content may be divided by the length of each character, so as to obtain the number of the text content.
or, the area occupied by the text content in the graphical interface can be calculated, and the number of the text content can be determined according to the area. For example, the area occupied by each character may be obtained, and then the number of the text content may be obtained by dividing the area occupied by the text content in the graphical interface by the area occupied by each character, and so on.
(2) And calculating the display duration of the graphical interface according to the number of the text contents.
For example, a preset basic time length and a unit time length of the text content may be obtained, a product of the number of the text content and the unit time length is calculated, and the product and the basic time length are added to obtain a display time length of the graphical interface.
The basic duration refers to the most basic reading time provided for the user, and the unit duration refers to the time required for the user to read each character, and the basic duration and the unit duration may be specifically set according to the requirements of the practical application, for example, the basic duration may be set to 0.5 second, and the unit duration is set to 0.2 second, and so on.
Besides being preset, the basic time length and the unit time length can be adjusted by a user according to actual application requirements, namely, before the step of obtaining the preset basic time length and the unit time length of the text content, the display method of the graphical interface can further comprise the following steps:
And receiving a parameter setting instruction, and setting the unit duration and the basic duration of the text content according to the parameter setting instruction.
Optionally, in order to improve flexibility, a weight may be respectively set for the product (i.e. the product of the number of the text contents and the unit duration) and the basic duration, that is, before the step "add the product and the basic duration", the method for displaying the graphical interface may further include:
and multiplying the product and the basic time length by corresponding preset weights respectively to obtain a weighted product and a weighted basic time length.
Then, the step of "adding the product and the basic time length to obtain the display time length of the graphical interface" may specifically be: and adding the weighted product and the weighted basic time length to obtain the display time length of the graphical interface.
104. And displaying the graphical interface on a terminal screen according to the display duration.
for example, the graphical interface may be displayed on the terminal screen, the displayed time may be counted, and if the displayed time exceeds the display duration, the graphical interface may be stopped from being displayed on the terminal screen.
For example, a timer may be started when the graphical interface, such as a prompt box, is displayed, and if the time of the timer exceeds the display duration, the graphical interface is stopped from being displayed on the terminal screen; alternatively, a timer may be started when the graphical interface, such as a prompt box, is displayed, wherein the time set by the timer is the display duration, then the timer counts down, when the time of the timer is 0, the graphical interface is stopped from being displayed on the terminal screen, and so on.
As can be seen from the above, after receiving a display request of a graphical interface, the embodiment may obtain a corresponding graphical interface according to the display request, calculate a display duration of the graphical interface according to text content in the graphical interface, and display the graphical interface on a terminal screen according to the display duration; according to the scheme, the display time of the graphical interface can be adaptively adjusted according to the number of the text contents in the graphical interface, so that the display flexibility of the graphical interface can be greatly improved, the problem that some graphical interfaces, such as prompt boxes with less contents, occupy a screen for a long time can be avoided, the display effect is improved, in addition, the user can not be hindered from carrying out other operations, and the convenience and the friendliness of the user operation are greatly improved.
example II,
The method described in the first embodiment is further illustrated by way of example.
in this embodiment, a display device of the graphical interface is specifically integrated in a network device, such as a terminal or a server, and the graphical interface is specifically a prompt box.
As shown in fig. 2a, a method for displaying a graphical interface may specifically include the following steps:
201. The network equipment acquires a display request of the prompt box.
For example, a display request of a prompt box triggered by a user may be specifically received, for example, when the user performs some operation on a client or a web page, for example, when a password is input incorrectly, the display request of the prompt box with a corresponding "password error" generated by a server corresponding to the client or the web page may be triggered; for another example, when a user performs an operation on the terminal, such as closing a window or deleting a file, the terminal may be triggered to generate a display request of a corresponding "close" or "file delete" prompt box, and so on.
202. And the network equipment acquires a corresponding prompt box according to the display request, wherein the prompt box comprises information such as text content and the like.
The text content may include information such as Chinese characters, letters, numbers, and/or symbols, and may be determined according to the requirements of the actual application.
203. The network device calculates the number of text in the prompt box.
The method for calculating the text content may be various, and for example, any one of the following methods may be specifically adopted:
(1) A first mode;
The network equipment calculates the length of the literal content and determines the number of the literal content according to the length.
For example, the network device may obtain the length of each character, and then divide the length of the text by the length of each character to obtain the number of the text. For example, taking the text as "wrong password input by you", if the length of the text is 16 pixels and the length of each character is 2 pixels, the number of the text is 16/2-8, that is, the number of the text is 8 characters, and so on.
(2) A second mode;
The network equipment calculates the area occupied by the text content in the prompt box and determines the number of the text content according to the area.
For example, the network device may obtain the area occupied by each character, and then may obtain the number of the text content by dividing the area occupied by each character in the prompt box according to the text content, and so on. For example, taking the text as "wrong password input by you", if the area of the text is "16 pixels by 2 pixels", and the area of each character is "2 pixels by 2 pixels", the number of the text is (16 pixels by 2)/(2 pixels) 8, that is, the number of the text is 8 characters, and so on.
204. and the network equipment calculates the display duration of the prompt box according to the number of the text contents. For example, the following may be specifically mentioned:
The network equipment acquires preset basic time and unit time of the text content, calculates the product of the number of the text content and the unit time, and adds the product and the basic time to obtain the display time of the prompt box.
the basic duration and the unit duration may be specifically set according to the requirements of the practical application, for example, the basic duration may be set to 0.5 second, and the unit duration may be set to 0.2 second, and so on.
For example, still taking the text as "you input wrong password" as an example, step 203 shows that the number of the text is 8 characters, and if the basic time length is 0.5 seconds and the unit time length is 0.2 seconds, the display time length "delpyTime" of the prompt box is:
delpy Time ═ number of text contents × unit duration + base duration
2.1 seconds-8 × 0.2+ 0.5.
optionally, in order to improve flexibility, a weight may be respectively set for the product (i.e., the product of the number of text contents and the unit duration) and the basic duration, that is, the product and the basic duration may be respectively multiplied by corresponding preset weights to obtain a weighted product and a weighted basic duration, and then the weighted product and the weighted basic duration are added to obtain a display duration of the prompt box; for example, taking the number of the text as 8 characters, the basic duration as 0.5 second, and the unit duration as 0.2 second as an example, if the weight (for example, referred to as the first weight) of the product (i.e., the product of the number of the text and the unit duration) is 0.6, and the weight (for example, referred to as the second weight) of the basic duration is 0.4, the display duration "delpy Time" of the prompt box is:
delpy Time is the number of text contents per unit duration, first weight + base duration, and second weight
8 × 0.2 × 0.6+0.5 × 0.4 ═ 1.16 seconds.
It should be noted that the basic duration and the unit duration may be preset, and may also be adjusted by the user according to the actual application requirement, that is, optionally, before the preset basic duration and the unit duration of the text content are obtained, a parameter setting instruction may be received, and the unit duration and the basic duration of the text content may be set according to the parameter setting instruction.
205. and the network equipment displays the prompt box on the terminal screen according to the display duration.
for example, the prompt box may be displayed on the terminal screen, the displayed time may be counted, and if the displayed time exceeds the display duration, the prompt box may be stopped from being displayed on the terminal screen.
for example, a timer may be started when the prompt box is displayed, and if the time of the timer exceeds the display duration, the prompt box is stopped from being displayed on the terminal screen.
alternatively, a timer may be started when the prompt box is displayed, wherein the time set by the timer is the display duration, then the timer counts down, when the time of the timer is 0, the prompt box is stopped from being displayed on the terminal screen, and so on.
it should be noted that the specific display position of the prompt box on the terminal screen may be determined according to the requirements of the practical application, for example, the prompt box may be set to be displayed at the top, see fig. 2b, or may also be displayed below the screen, see fig. 2c, or may also be displayed at the lower right, lower left, or middle of the screen, and so on, which is not described herein again.
For example, referring to fig. 2b and 2c, a prompt box may be displayed above or below the screen, such as the text: "notify: you have a new mail ", and let the prompt box disappear (i.e. not display the prompt box) when the display time exceeds the display time.
as can be seen from the above, after receiving the display request of the prompt box, the network device of this embodiment may obtain the corresponding prompt box according to the display request, calculate the display duration of the prompt box according to the text content in the prompt box, and then display the prompt box on the terminal screen according to the display duration; according to the scheme, the display time of the prompt box can be adaptively adjusted according to the number of the text contents in the prompt box, so that the display flexibility of the prompt box can be greatly improved, the problem that some prompt boxes, such as the prompt box with less contents, occupy the screen for a long time can be avoided, the display effect is improved, in addition, the user can not be hindered from carrying out other operations, and the convenience and the friendliness of the user operation are greatly improved.
Example III,
In order to better implement the method, an embodiment of the present invention further provides a display apparatus for a graphical interface, as shown in fig. 3a, the display apparatus for a graphical interface may include a request obtaining unit 301, an interface obtaining unit 302, a calculating unit 303, and a display unit 304, as follows:
(1) A request acquisition unit 301;
A request obtaining unit 301, configured to obtain a display request of a graphical interface.
for example, the request obtaining unit 301 may be specifically configured to receive a display request of a graphical interface triggered by a user.
The graphical interface may include a display interface, a dialog box, a prompt box, or the like, such as a pop-up window or a web page that may be advertised, a dialog box for chat, or a prompt box for system information, and a prompt box for user operation, and the like.
(2) An interface acquisition unit 302;
An interface obtaining unit 302, configured to obtain a corresponding graphical interface according to the display request, where the graphical interface includes text content.
For example, the interface obtaining unit 302 may be specifically configured to obtain a corresponding display interface, dialog box, or prompt box according to the display request.
the text content may include information such as Chinese characters, letters, numbers, and/or symbols. The text content can be determined according to the requirements of practical application.
(3) A calculation unit 303;
The calculating unit 303 is configured to calculate a display duration of the graphical interface according to the text content.
For example, the calculation unit 303 may include a first calculation subunit and a second calculation subunit; the following were used:
The first calculating subunit is configured to calculate the number of the text contents.
For example, the first calculating subunit may be specifically configured to calculate a length of the text content, and determine the number of the text content according to the length.
or, the first calculating subunit may be specifically configured to calculate an area occupied by the text content in the graphical interface, and determine the number of the text content according to the area.
the second calculating subunit is configured to calculate a display duration of the graphical interface according to the number of the text contents.
For example, the second calculating subunit may be specifically configured to obtain a preset basic time length and a unit time length of text content, calculate a product of the number of the text content and the unit time length, and add the product and the basic time length to obtain a display time length of the graphical interface.
the basic duration refers to the most basic reading time provided for the user, and the unit duration refers to the time required for the user to read each character, and the basic duration and the unit duration may be specifically set according to the requirements of the practical application, for example, the basic duration may be set to 0.5 second, and the unit duration is set to 0.2 second, and so on.
optionally, in order to improve flexibility, a weight may be set for each of the product (i.e. the product of the number of text contents and the unit duration) and the basic duration, that is:
The second calculating subunit may be specifically configured to obtain a preset basic duration and a unit duration of the text content, calculate a product of the number of the text content and the unit duration, multiply the product and the basic duration by corresponding preset weights, respectively, to obtain a weighted product and a weighted basic duration, and add the weighted product and the weighted basic duration to obtain a display duration of the graphical interface.
Optionally, the basic duration and the unit duration may be preset, and may also be adjusted by the user according to the actual application requirement, that is, as shown in fig. 3b, the display device of the graphical interface may further include a setting unit 305, as follows:
the setting unit 305 may be configured to receive a parameter setting instruction, and set the unit duration of the text content and the basic duration according to the parameter setting instruction.
(4) A display unit 304;
And the display unit 304 is used for displaying the graphical interface on the terminal screen according to the display duration.
For example, the display unit 304 may be specifically configured to display the graphical interface on the terminal screen, time the displayed time, and stop displaying the graphical interface on the terminal screen if the displayed time exceeds the display duration.
For example, a timer may be started when the graphical interface, such as a prompt box, is displayed, and if the time of the timer exceeds the display duration, the graphical interface is stopped from being displayed on the terminal screen; alternatively, a timer may be started when the graphical interface, such as a prompt box, is displayed, wherein the time set by the timer is the display duration, then the timer counts down, when the time of the timer is 0, the graphical interface is stopped from being displayed on the terminal screen, and so on.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
The display device of the graphical interface may be specifically integrated in a terminal or a server, and the terminal may include a mobile phone, a tablet computer, a notebook computer, a PC, and other devices.
As can be seen from the above, after the display device of the graphical interface in this embodiment receives the display request of the graphical interface, the interface obtaining unit 302 obtains the corresponding graphical interface according to the display request, the calculating unit 303 calculates the display duration of the graphical interface according to the text content in the graphical interface, and then the display unit 304 displays the graphical interface on the terminal screen according to the display duration; according to the scheme, the display time of the graphical interface can be adaptively adjusted according to the number of the text contents in the graphical interface, so that the display flexibility of the graphical interface can be greatly improved, the problem that some graphical interfaces, such as prompt boxes with less contents, occupy a screen for a long time can be avoided, the display effect is improved, in addition, the user can not be hindered from carrying out other operations, and the convenience and the friendliness of the user operation are greatly improved.
Example four,
An embodiment of the present invention further provides a network device, where the network device may be a server or a terminal, as shown in fig. 4, which shows a schematic structural diagram of the network device according to the embodiment of the present invention, specifically:
the network device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, Radio Frequency (RF) circuitry 403, a power supply 404, an input unit 405, and a display unit 406. Those skilled in the art will appreciate that the network device architecture shown in fig. 4 does not constitute a limitation of network devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
The processor 401 is a control center of the network device, connects various parts of the entire network device by using various interfaces and lines, and performs various functions of the network device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the network device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the network device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The RF circuit 403 may be used for receiving and transmitting signals during information transmission and reception, and in particular, for receiving downlink information of a base station and then processing the received downlink information by the one or more processors 401; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 403 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 403 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
the network device also includes a power supply 404 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 404 is logically connected to the processor 401 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system. The power supply 404 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The network device may also include an input unit 405, and the input unit 405 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, in one particular embodiment, input unit 405 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 401, and can receive and execute commands sent by the processor 401. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 405 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
the network device may also include a display unit 406, and the display unit 406 may be used to display information input by or provided to the user as well as various graphical user interfaces of the network device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 406 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 401 to determine the type of the touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of the touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
Although not shown, the network device may further include a camera, a bluetooth module, and the like, which are not described herein. Specifically, in this embodiment, the processor 401 in the network device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing various functions as follows:
the method comprises the steps of obtaining a display request of a graphical interface, obtaining a corresponding graphical interface according to the display request, wherein the graphical interface comprises text content, calculating the display duration of the graphical interface according to the text content, and displaying the graphical interface on a terminal screen according to the display duration.
the graphical interface may include a display interface, a dialog box, a prompt box, or the like, such as a pop-up window or a web page that may be advertised, a dialog box for chat, or a prompt box for system information, and a prompt box for user operation, and the like.
For example, the number of the text contents may be specifically calculated, and then, the display duration of the graphical interface may be calculated according to the number of the text contents; for example, a preset basic time length and a unit time length of the text content may be obtained, a product of the number of the text content and the unit time length is calculated, and the product and the basic time length are added to obtain a display time length of the graphical interface.
The basic duration refers to the most basic reading time provided for the user, and the unit duration refers to the time required for the user to read each character, and the basic duration and the unit duration may be specifically set according to the requirements of the practical application, for example, the basic duration may be set to 0.5 second, and the unit duration is set to 0.2 second, and so on.
optionally, the basic duration and the unit duration may be preset, and may be adjusted by the user according to the actual application requirement, that is, the application program stored in the memory 402 may further implement the following functions:
And receiving a parameter setting instruction, and setting the unit duration and the basic duration of the text content according to the parameter setting instruction.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, after receiving a display request of a graphical interface, the network device of this embodiment may obtain a corresponding graphical interface according to the display request, calculate a display duration of the graphical interface according to text content in the graphical interface, and then display the graphical interface on a terminal screen according to the display duration; according to the scheme, the display time of the graphical interface can be adaptively adjusted according to the number of the text contents in the graphical interface, so that the display flexibility of the graphical interface can be greatly improved, the problem that some graphical interfaces, such as prompt boxes with less contents, occupy a screen for a long time can be avoided, the display effect is improved, in addition, the user can not be hindered from carrying out other operations, and the convenience and the friendliness of the user operation are greatly improved.
those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The method and the device for displaying a graphical interface provided by the embodiment of the present invention are described in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A method for displaying a graphical interface, comprising:
Acquiring a display request of a graphical interface;
Acquiring a corresponding graphical interface according to the display request, wherein the graphical interface comprises text content;
Calculating the area occupied by the text content in the graphical interface, and determining the number of the text content according to the area;
acquiring preset basic time and unit time of text content, wherein the basic time is the most basic reading time of a user, and the unit time is the time required by the user to read each text;
calculating the product of the number of the character contents and the unit time length;
multiplying the product and the basic time length by corresponding preset weights respectively to obtain a weighted product and a weighted basic time length;
Adding the weighted product and the weighted basic time length to obtain the display time length of the graphical interface;
and displaying the graphical interface on a terminal screen according to the display duration.
2. The method of claim 1, wherein before obtaining the preset basic duration and the unit duration of the text content, the method further comprises:
Receiving a parameter setting instruction;
And setting the unit time length and the basic time length of the text content according to the parameter setting instruction.
3. The method according to any one of claims 1 or 2, wherein the displaying the graphical interface on the terminal screen according to the display duration comprises:
displaying the graphical interface on a terminal screen, and timing the displayed time;
And if the display time exceeds the display duration, stopping displaying the graphical interface on the terminal screen.
4. The display device of the graphical interface is characterized by comprising a request acquisition unit, an interface acquisition unit, a calculation unit and a display unit, wherein the calculation unit comprises a first calculation subunit and a second calculation subunit;
the request acquisition unit is used for acquiring a display request of the graphical interface;
the interface acquisition unit is used for acquiring a corresponding graphical interface according to the display request, and the graphical interface comprises text contents;
the first calculating subunit is used for calculating the area occupied by the text content in the graphical interface and determining the number of the text content according to the area;
the second calculating subunit is configured to obtain a preset basic time length and a unit time length of the text content, calculate a product of the number of the text content and the unit time length, multiply the product and the basic time length by corresponding preset weights, respectively, to obtain a weighted product and a weighted basic time length, and add the weighted product and the weighted basic time length to obtain a display time length of the graphical interface;
and the display unit is used for displaying the graphical interface on a terminal screen according to the display duration.
5. The apparatus of claim 4, further comprising a setting unit;
the setting unit is used for receiving a parameter setting instruction and setting the unit duration and the basic duration of the text content according to the parameter setting instruction.
6. The apparatus according to any one of claims 4 or 5,
The display unit is specifically configured to display the graphical interface on a terminal screen, time the displayed time, and stop displaying the graphical interface on the terminal screen if the displayed time exceeds the display duration.
CN201610822720.5A 2016-09-13 2016-09-13 Graphical interface display method and device Active CN106339230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610822720.5A CN106339230B (en) 2016-09-13 2016-09-13 Graphical interface display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610822720.5A CN106339230B (en) 2016-09-13 2016-09-13 Graphical interface display method and device

Publications (2)

Publication Number Publication Date
CN106339230A CN106339230A (en) 2017-01-18
CN106339230B true CN106339230B (en) 2019-12-17

Family

ID=57838929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610822720.5A Active CN106339230B (en) 2016-09-13 2016-09-13 Graphical interface display method and device

Country Status (1)

Country Link
CN (1) CN106339230B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613093A (en) * 2017-08-16 2018-01-19 广东小天才科技有限公司 The display methods and user terminal of a kind of communication information
CN111538549A (en) * 2020-04-07 2020-08-14 中保车服科技服务股份有限公司 Prompt message display method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1273655A (en) * 1997-09-02 2000-11-15 戴蒙·C·托里斯 Automated content schedule and display schedule
CN101706850A (en) * 2009-10-21 2010-05-12 杭州乐港科技有限公司 Message prompt method for web game
CN104850318A (en) * 2014-02-13 2015-08-19 联想(新加坡)私人有限公司 Method and apparatus for transient message display control
CN104978201A (en) * 2015-07-14 2015-10-14 安一恒通(北京)科技有限公司 Method and device for controlling automatic pop-up window display
CN105045463A (en) * 2015-06-25 2015-11-11 广东欧珀移动通信有限公司 Message display control method and device
CN105302458A (en) * 2015-10-13 2016-02-03 广东欧珀移动通信有限公司 Message display method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1273655A (en) * 1997-09-02 2000-11-15 戴蒙·C·托里斯 Automated content schedule and display schedule
CN101706850A (en) * 2009-10-21 2010-05-12 杭州乐港科技有限公司 Message prompt method for web game
CN104850318A (en) * 2014-02-13 2015-08-19 联想(新加坡)私人有限公司 Method and apparatus for transient message display control
CN105045463A (en) * 2015-06-25 2015-11-11 广东欧珀移动通信有限公司 Message display control method and device
CN104978201A (en) * 2015-07-14 2015-10-14 安一恒通(北京)科技有限公司 Method and device for controlling automatic pop-up window display
CN105302458A (en) * 2015-10-13 2016-02-03 广东欧珀移动通信有限公司 Message display method and apparatus

Also Published As

Publication number Publication date
CN106339230A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
US11025963B2 (en) Data processing method, apparatus, and system for live streaming page
US10635449B2 (en) Method and apparatus for running game client
KR101978590B1 (en) Message updating method, device and terminal
CN106993227B (en) Method and device for information display
CN105786878B (en) Display method and device of browsing object
EP3015978A1 (en) Gesture-based conversation processing method, apparatus, and terminal device
US10652287B2 (en) Method, device, and system for managing information recommendation
CN106506321B (en) Group message processing method and terminal device
US20180158225A1 (en) Method and apparatus for switching real-time image in instant messaging
US20140365892A1 (en) Method, apparatus and computer readable storage medium for displaying video preview picture
CN108039963B (en) Container configuration method and device and storage medium
CN104778055B (en) Method and device for displaying progress bar
CN106775194B (en) Application interface switching method and device
US10171640B2 (en) Method, apparatus, and system for displaying message in mobile terminal
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
WO2014194713A1 (en) Method,apparatus and computer readable storage medium for displaying video preview picture
WO2015043403A1 (en) Method, apparatus, and terminal for obtaining video data
CN112749074B (en) Test case recommending method and device
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN106339230B (en) Graphical interface display method and device
CN105631059B (en) Data processing method, data processing device and data processing system
CN107622234B (en) Method and device for displaying budding face gift
CN112487316A (en) Method and terminal for closing tab page in browser
CN110908586A (en) Keyboard display method and device and terminal equipment
CN115118636A (en) Method and device for determining network jitter state, electronic equipment and storage medium

Legal Events

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