Disclosure of Invention
The embodiment of the invention discloses an information display method, an information display device and a terminal, which can solve the problem that a cover picture of a main broadcast and related personal information are difficult for a user to focus.
In a first aspect, an information display method is provided, which includes the following steps: receiving screen sliding operation; analyzing the screen sliding operation to obtain a sliding direction, and moving a target picture and target information along the sliding direction, wherein the target picture is associated with the target information; when the target picture or the target information slides into the display area in the screen, the transparency of at least one of the target picture and the target information is reduced, and when the target picture or the target information slides out of the display area in the screen, the transparency of at least one of the target picture and the target information is increased.
With reference to the first aspect, in a first possible implementation manner of the first aspect, when the target picture or the target information slides into the display area in the screen, the transparency of at least one of the target picture and the target information is decreased, and when the target picture or the target information slides out of the display area in the screen, the transparency of at least one of the target picture and the target information is increased specifically as follows: when the target picture or the target information slides into a display area in the screen, the transparency of at least one of the target picture and the target information is reduced along with the reduction of a target distance, and when the target picture or the target information slides out of the display area in the screen, the transparency of at least one of the target picture and the target information is increased along with the increase of the target distance, wherein the target distance is the distance between the target picture or the target information and the preset position, and the preset position is located in the display area.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, a transparency of at least one of the target picture and the target information is proportional to the target distance.
With reference to the first aspect, in a third possible implementation manner of the first aspect, a rate of change of transparency of at least one of the target picture and the target information is proportional to a speed of the sliding operation.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the target information is displayed on top of the target picture.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the target information display area is smaller than the target picture, and the target information is displayed at the bottom of the target picture.
With reference to the first aspect, in a sixth possible implementation manner of the first aspect, the screen sliding operation is a vertical sliding operation.
In a second aspect, an information display device is provided, which includes a receiving module, a sliding module and a changing module, wherein the receiving module is used for receiving screen sliding operation; the sliding module is used for analyzing the screen sliding operation to obtain a sliding direction and moving a target picture and target information along the sliding direction, wherein the target picture is associated with the target information; the change module is used for reducing the transparency of at least one of the target picture and the target information when the target picture or the target information slides into the display area in the screen, and increasing the transparency of at least one of the target picture and the target information when the target picture or the target information slides out of the display area in the screen.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the changing module is configured to decrease a transparency of at least one of the target picture and the target information as a target distance decreases when the target picture or the target information slides into a display area in the screen, and increase the transparency of at least one of the target picture and the target information as the target distance increases when the target picture or the target information slides out of the display area in the screen, where the target distance is a distance between the target picture or the target information and a preset position, and the preset position is located in the display area.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the transparency of at least one of the target picture and the target information is proportional to the target distance.
With reference to the second aspect, in a third possible implementation manner of the second aspect, a rate of change of the transparency of at least one of the target picture and the target information is proportional to a speed of the sliding operation.
With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the target information is displayed on top of the target picture in a stacked manner.
With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the target information display area is smaller than the target picture, and the target information is displayed at the bottom of the target picture.
With reference to the second aspect, in a sixth possible implementation manner of the second aspect, the screen sliding operation is an up-down sliding operation.
In a third aspect, a terminal is provided, which includes: a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface are connected through the bus and complete mutual communication; the memory stores executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute an information presentation method; wherein the method is the method of any one of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium storing program code executed by a computing device for topic recommendation. The program code comprises instructions for performing the method of any of the first aspects.
According to the method, the sliding operation of the screen is received and analyzed, so that the sliding direction is obtained, when the target picture or the target information slides into the display area of the screen, the transparency of at least one of the target picture and the target information is reduced, when the target picture or the target information slides out of the display area of the screen, the transparency of at least one of the target picture and the target information is increased, the user can easily focus on the picture in the display area, and the target picture or the target information is displayed on the screen and has a changed effect, so that the user is provided with dynamic feeling, and the use experience of the user is provided.
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 some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminal mentioned in the following embodiments may be a smart phone (smart phone), a tablet personal Computer (tablet personal Computer), an MP5(MPEG Layer 5), a notebook Computer (notebook), a desktop Computer (tablet Computer), or smart wearable devices with an on-screen display function such as smart glasses, smart watches, and smart bands.
Referring to fig. 2, fig. 2 is a diagram illustrating an information display method according to an embodiment of the present invention. The information display method of the embodiment comprises the following steps:
210: and receiving screen sliding operation.
In the embodiment of the present invention, the screen may be configured by configuring a Display panel in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), and the like so as to Display graphics, text, icons, video, and any combination thereof. The screen also includes 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 sliding operation of a user so as to obtain a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives a signal from the touch sensing device and converts it to touch point coordinates. Further, the touch-sensitive surface may overlie 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 to determine the type of touch event, and the processor then provides a corresponding visual output on the display panel in accordance with the type of touch event.
220: and analyzing the screen sliding operation to obtain a sliding direction, and moving the target picture and the target information along the sliding direction.
In the embodiment of the present invention, the target picture and the target information are associated, for example, the target picture may be a personal photo of a main broadcast, and the target information may be a personal information introduction of the main broadcast in the target picture or information related to current live content. The target information can be displayed on the target picture in a stacked mode or can be displayed on the periphery of the target picture. When the target information is displayed on the target picture in a stacked mode, the target information display area is smaller than the target picture, and the target information is displayed at the bottom of the target picture. In this step, the sliding direction may be obtained by parsing according to the sliding operation detected in step 210, and the target picture and the target information may be moved along the sliding direction. In a specific embodiment, the sliding operation is up-and-down sliding, so the target picture and the target information can be moved along the up-and-down direction.
230: when the target picture or the target information slides into the display area in the screen, the transparency of at least one of the target picture and the target information is reduced, and when the target picture or the target information slides out of the display area in the screen, the transparency of at least one of the target picture and the target information is increased.
In the embodiment of the present invention, the display area may be a screen or a part of the screen, for example, the display area is a square with a midpoint of the screen as a center and a side length as a set value, and the display area is not a boundary line directly observed on the screen. When the target picture or the target information slides into the display area in the screen, the transparency of at least one of the target picture and the target information can be reduced, so that the picture becomes clearer and clearer, and when the target picture or the target information slides out of the display area in the screen, the transparency of at least one of the target picture and the target information can be increased, so that the picture becomes more and more blurred. In this context, the greater the transparency of the picture, the more blurred the image of the picture itself, and the easier it is for the user to see through the picture to what is next in the picture. By the special display effect, the target picture and the target information entering the display area can be emphasized, the user's eyes can be attracted by the target picture and the target information in the display area, and therefore the target picture and the target information are gathered.
Referring to fig. 3, fig. 3 is another information displaying method according to an embodiment of the present invention. The information display method of the embodiment comprises the following steps:
310: and receiving screen sliding operation.
In the embodiment of the present invention, the screen may be configured by configuring a Display panel in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), and the like so as to Display graphics, text, icons, video, and any combination thereof. The screen also includes 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 sliding operation of a user so as to obtain a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives a signal from the touch sensing device and converts it to touch point coordinates. Further, the touch-sensitive surface may overlie 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 to determine the type of touch event, and the processor then provides a corresponding visual output on the display panel in accordance with the type of touch event.
320: and analyzing the screen sliding operation to obtain a sliding direction, and moving the target picture and the target information along the sliding direction.
In the embodiment of the present invention, the target picture and the target information are associated, for example, the target picture may be a personal photo of an anchor, the target information may be a personal information introduction of the anchor in the target picture or information related to current live content, and the target information may include a background color in addition to text. The target information can be displayed on the target picture in a stacked mode or can be displayed on the periphery of the target picture. In the embodiment of the invention, the target information is displayed on the lower part of the target picture in a laminated mode. When the target information is displayed on the target picture in a stacked mode, the target information display area is smaller than the target picture, and the target information is displayed at the bottom of the target picture. In this step, the sliding direction may be obtained by parsing according to the sliding operation detected in step 210, and the target picture and the target information may be moved along the sliding direction.
330: and when the target picture or the target information slides out of the display area in the screen, the transparency of at least one of the target picture and the target information is increased along with the increase of the target distance.
In a specific embodiment, a preset position is preset in the display area, and the preset position can be in the upper part, the middle part or the lower part of the display area. In the present embodiment, the preset position is located at a position in the middle of the display area. When the target picture or the target information slides into the display area in the screen, the transparency of the target picture is kept unchanged, the transparency of the target information is reduced along with the reduction of the target distance, when the target picture or the target information slides out of the display area in the screen, the transparency of the target picture is kept unchanged, and the transparency of the target information is increased along with the increase of the target distance, wherein the target distance is the distance between the target picture or the target information and the preset position. In order to make the information presentation method more variable, the transparency of at least one of the target picture and the target information may be made proportional to the target distance, that is, when the distance between the target picture and the target information and the preset position is larger, the transparency of at least one of the target picture and the target information is larger, and at least one of the target picture and the target information is more blurred. Further, the rate of change of the transparency of at least one of the target picture and the target information may be proportional to the speed of the sliding operation, i.e., the faster the speed of the sliding operation, the faster the rate of change of the transparency of at least one of the target picture and the target information. In another optional embodiment, the terminal may further determine a transparency change rule of the target picture and the target information according to a preset display effect, so as to generate visual sensations of various special effects. For example, when sliding out of (or into) the display area, the transparency of at least one of the target picture and the target information may be increased (or decreased) slowly and then increased (or decreased) rapidly. Alternatively, the transparency of at least one of the target picture and the target information may not be changed first when sliding out of (or into) the display area, and then the transparency of at least one of the target picture and the target information may be rapidly increased, and so on.
For ease of understanding, the following description of the embodiments of the present invention will be provided with reference to specific application scenarios.
The whole screen of the terminal is taken as a display area, and the position in the middle of the display area is taken as a preset position. The display area is used for displaying a target picture and target information, wherein the target picture and the target information are related, for example, the target picture is a personal photo of a main broadcast, and the target information is a personal information introduction of the main broadcast in the target picture or information related to current live content. The target information is displayed on the lower part of the target picture in a laminated mode, and besides characters, the target information can also comprise background colors. When the user slides the screen upwards, the terminal slides the target picture and the target information into the display area slowly from the bottom of the screen along with the upwards sliding operation. When the user performs downward sliding operation on the screen, the terminal slides the target picture and the target information into the display area slowly from the top of the screen along with the downward sliding operation. During the sliding into the display area, the transparency of the target picture remains unchanged, but the transparency of the target information changes with the distance between the target picture and the preset position, and the transparency of the target information is proportional to the distance between the target picture and the preset position. And finally, displaying the target information according to the transparency of the target information. By the mode, in the process that the target picture is slowly close to the middle position of the screen, the transparency of the target information is gradually reduced, the definition of the target information is higher and higher, in the process that the target picture is slowly far away from the middle position of the screen, the transparency of the target information is gradually increased, and the definition of the target information is lower and lower, so that a user can focus the picture close to the preset position.
The specific scenario of the above embodiment is a situation that a target picture slides up and down in a device screen, and it can be understood that the target picture may also slide left and right in the device screen, a target information layer is displayed in a preset region on the target picture layer, when a user performs a left-right sliding operation on the screen, when the target picture or the target information slides into a display region along with the sliding operation, the transparency of at least one of the target picture and the target information is reduced along with the reduction of the target distance, and when the target picture or the target information slides out of the display region in the screen, the transparency of at least one of the target picture and the target information is increased along with the increase of the target distance.
While the method of the embodiments of the present invention has been described above in detail, in order to better facilitate the implementation of the above-described aspects of the embodiments of the present invention, the following also provides apparatus for practicing the above-described aspects.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an information display device according to an embodiment of the present invention. The information display device 40 of the embodiment of the present invention includes: a receiving module 41, a sliding module 42 and a changing module 43.
The receiving module 41 is used for receiving screen sliding operation;
the sliding module 42 is configured to parse the screen sliding operation to obtain a sliding direction, and move a target picture and target information along the sliding direction, where the target picture is associated with the target information;
the changing module 43 is configured to decrease the transparency of at least one of the target picture and the target information when the target picture or the target information slides into the display area in the screen, and increase the transparency of at least one of the target picture and the target information when the target picture or the target information slides out of the display area in the screen.
Optionally, the changing module 43 is configured to decrease a transparency of at least one of the target picture and the target information as a target distance decreases when the target picture or the target information slides into a display area in the screen, and increase the transparency of at least one of the target picture and the target information as a target distance increases when the target picture or the target information slides out of the display area in the screen, where the target distance is a distance between the target picture or the target information and the preset position, and the preset position is located in the display area.
Optionally, the transparency of at least one of the target picture and the target information is proportional to the target distance.
Optionally, a rate of change of the transparency of at least one of the target picture and the target information is proportional to a speed of the sliding operation.
Optionally, the target information is displayed on top of the target picture in a stacked manner.
Optionally, the target information display area is smaller than the target picture, and the target information is displayed at the bottom of the target picture.
Optionally, the screen sliding operation is a vertical sliding operation.
The information displaying apparatus 40 according to the embodiment of the present invention can implement the information displaying method shown in fig. 2, and please refer to fig. 2 and related embodiments specifically, which will not be described again here.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The website of the embodiment includes: at least one processor 601, a communication interface 602, a user interface 603 and a memory 604, wherein the processor 601, the communication interface 602, the user interface 603 and the memory 604 can be connected by a bus or other means, and the embodiment of the present invention is exemplified by being connected by the bus 605. Wherein,
processor 601 may be a general-purpose processor, such as a Central Processing Unit (CPU).
The communication interface 602 may be a wired interface (e.g., an ethernet interface) or a wireless interface (e.g., a cellular network interface or using a wireless local area network interface) for communicating with other terminals or websites. In the embodiment of the present invention, the communication interface 602 is specifically configured to recommend the target recommendation object to the user of the terminal.
The user interface 603 may specifically be a touch panel, including a touch screen and a touch screen, for detecting an operation instruction on the touch panel, and the user interface 603 may also be a physical button or a mouse. The user interface 603 may also be a display screen for outputting, displaying images or data.
Memory 604 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory may also include a Non-volatile Memory (Non-volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 604 may also comprise a combination of the above types of memory. The memory 604 is used for storing a set of program codes, and the processor 601 is used for calling the program codes stored in the memory 604 and executing the following operations:
receiving screen sliding operation;
analyzing the screen sliding operation to obtain a sliding direction, and moving a target picture and target information along the sliding direction, wherein the target picture is associated with the target information;
when the target picture or the target information slides into the display area in the screen, the transparency of at least one of the target picture and the target information is reduced, and when the target picture or the target information slides out of the display area in the screen, the transparency of at least one of the target picture and the target information is increased.
Optionally, when the target picture or the target information slides into the display area in the screen, the transparency of at least one of the target picture and the target information is decreased, and when the target picture or the target information slides out of the display area in the screen, the transparency of at least one of the target picture and the target information is increased specifically as follows:
when the target picture or the target information slides into a display area in the screen, the transparency of at least one of the target picture and the target information is reduced along with the reduction of a target distance, and when the target picture or the target information slides out of the display area in the screen, the transparency of at least one of the target picture and the target information is increased along with the increase of the target distance, wherein the target distance is the distance between the target picture or the target information and the preset position, and the preset position is located in the display area.
Optionally, the transparency of at least one of the target picture and the target information is proportional to the target distance.
Optionally, a rate of change of the transparency of at least one of the target picture and the target information is proportional to a speed of the sliding operation.
Optionally, the target information is displayed on top of the target picture.
Optionally, the target information display area is smaller than the target picture, and the target information is displayed at the bottom of the target picture.
Optionally, the screen sliding operation is a vertical sliding operation.
According to the method, the sliding operation of the screen is received and analyzed, so that the sliding direction is obtained, when the target picture or the target information slides into the display area of the screen, the transparency of at least one of the target picture and the target information is reduced, when the target picture or the target information slides out of the display area of the screen, the transparency of at least one of the target picture and the target information is increased, the user can easily focus on the picture in the display area, and the target picture or the target information is displayed on the screen and has a changed effect, so that the user is provided with dynamic feeling, and the use experience of the user is provided.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by instructions associated with a program, which may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), compact disc-Read-Only Memory (CD-ROM), or other Memory, magnetic disk, magnetic tape, or magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
The foregoing detailed description of the embodiments of the present invention has been presented for purposes of illustration and description, and is intended to be exhaustive or to limit the invention to the precise forms disclosed; meanwhile, for a person 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.