CN109005282B - Display method and mobile terminal - Google Patents

Display method and mobile terminal Download PDF

Info

Publication number
CN109005282B
CN109005282B CN201810681502.3A CN201810681502A CN109005282B CN 109005282 B CN109005282 B CN 109005282B CN 201810681502 A CN201810681502 A CN 201810681502A CN 109005282 B CN109005282 B CN 109005282B
Authority
CN
China
Prior art keywords
display
advertisement
size
area
display window
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
CN201810681502.3A
Other languages
Chinese (zh)
Other versions
CN109005282A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810681502.3A priority Critical patent/CN109005282B/en
Publication of CN109005282A publication Critical patent/CN109005282A/en
Application granted granted Critical
Publication of CN109005282B publication Critical patent/CN109005282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages

Abstract

The invention provides a display method and a mobile terminal, and relates to the technical field of data processing. Wherein the method comprises the following steps: identifying an advertisement banner in a display window; the advertisement strip is positioned in the edge area of the display window; acquiring a first size of the advertisement strip; acquiring a second size of the display screen of the mobile terminal; setting a size parameter of the display window to a third size; the third dimension is greater than or equal to the sum of the first and second dimensions; and setting the display position of the advertisement bar in a target area, wherein the target area is positioned in the display window and outside the display area of the display screen. According to the embodiment of the invention, the display position of the advertisement strip is arranged in the target area, and the target area is positioned in the display window and outside the display area of the display screen, so that the advertisement strip is hidden, the phenomenon that the advertisement strip is touched by mistake is avoided, and the use of a user is facilitated.

Description

Display method and mobile terminal
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a display method and a mobile terminal.
Background
Currently, many applications achieve profitability by inserting advertisements during their operation. The timing and location of the display of the advertisement is determined by the application. Generally, in order to increase the exposure rate of the advertisement, an application displays the advertisement in a general operation area of the mobile terminal. For example, for a full-screen mobile terminal, an application will typically display an advertisement at a virtual key location, increasing the exposure rate of the advertisement.
In the prior art, an advertisement bar inserted by an application occupies a display interface of a mobile terminal during an application running process, and as shown in fig. 1, fig. 1 shows a schematic diagram of a display screen occupied by an advertisement bar inserted by an application during an application running process in the prior art. In fig. 1, the lowermost area of the mobile terminal may be a position where a virtual key of the mobile terminal is located, and an application displays an advertisement at the position, so that the exposure rate of the advertisement may be increased to some extent.
The inventor finds in the research process that the prior art proposal has the following disadvantages: because the advertisement bar is inserted in the running process of the mobile terminal, the mobile terminal cannot control the inserting time and the display position of the advertisement bar, on one hand, the advertisement bar can shield the display content of the original display screen and influence the attractiveness of a display window; on the other hand, the display position of the advertisement bar is usually in the common operation area of the mobile terminal, which affects the operation of the mobile terminal, and may cause the error touch of the advertisement bar, causing inconvenience to the user.
Disclosure of Invention
The invention provides a display method and a mobile terminal, and aims to solve the problem that an advertisement inserted in an application running process shields the display content of an original display interface, the attractiveness of the display interface is influenced, and a user mistakenly touches an advertisement.
In a first aspect, an embodiment of the present invention provides a display method applied to a mobile terminal, including:
identifying an advertisement banner in a display window; the advertisement strip is positioned in the edge area of the display window;
acquiring a first size of the advertisement strip;
acquiring a second size of the display screen of the mobile terminal;
modifying the size parameter of the display window to a third size; the third dimension is greater than or equal to the sum of the first and second dimensions;
and setting the display position of the advertisement bar in a target area, wherein the target area is positioned in the display window and outside the display area of the display screen.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including:
the advertisement strip identification module is used for identifying the advertisement strips in the display window; the advertisement strip is positioned in the edge area of the display window;
the first size obtaining module is used for obtaining a first size of the advertising strip;
the second size obtaining module is used for obtaining a second size of the display screen of the mobile terminal;
the size parameter setting module is used for setting the size parameter of the display window to be a third size; the third dimension is greater than or equal to the sum of the first and second dimensions;
the first display module is used for setting the display position of the advertisement bar in a target area, and the target area is positioned in the display window and outside the display area of the display screen.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes a processor, a memory, and a computer program stored in the memory and being executable on the processor, and when the computer program is executed by the processor, the steps of the display method according to the present invention are implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the display method according to the present invention are implemented.
In the embodiment of the invention, the advertisement bar in the display window is identified, the first size of the advertisement bar is obtained, the second size of the display screen of the mobile terminal is obtained, the size parameter of the display window is set to be the third size, the third size is larger than or equal to the sum of the first size and the second size, the display position of the advertisement bar is arranged in the target area, the target area is positioned in the display window and is positioned outside the display area of the display screen, and the advertisement bar is hidden, so that the large-area occupation of the display screen by the advertisement bar inserted in the application running process is eliminated, the influence on the operation of the mobile terminal is avoided, the error touch of the advertisement bar is avoided, and the use of a user is facilitated.
Drawings
FIG. 1 is a diagram illustrating a display screen occupied by an advertisement bar inserted by an application during the running process of the application in the prior art;
FIG. 2 is a flow chart illustrating a display method provided in a first embodiment of the invention;
FIG. 3 is a schematic diagram of a display window with an advertisement bar provided in the first embodiment of the present invention;
FIG. 4 is another diagram of a display window with an advertisement banner provided in the first embodiment of the present invention;
fig. 5 is a schematic diagram of a display window of a third size after setting a size parameter for the display window corresponding to fig. 3 according to the first embodiment of the present invention;
FIG. 6 is a diagram illustrating a display position of an advertisement bar being set in a target area according to a first embodiment of the present invention;
fig. 7 shows a flowchart of a display method provided in the second embodiment of the present invention;
FIG. 8 is a diagram illustrating the identification of an advertisement banner in a display window provided in the second embodiment of the present invention;
fig. 9 is a schematic diagram illustrating an area outlined by a mark box after receiving an adjustment operation according to a second embodiment of the present invention;
FIG. 10 is a diagram illustrating a second embodiment of the present invention in which a display window is displayed in a third size by aligning the top of the display window with the top of the display screen;
fig. 11 is a schematic diagram illustrating that when an advertisement bar is located outside a display area of a display screen, if a trigger operation is received, the advertisement bar is displayed in the display area of the display screen according to the second embodiment of the present invention;
fig. 12 is a schematic diagram illustrating that when an advertisement bar is located outside a display area of a display screen, if a trigger operation is received, the advertisement bar is displayed in the display area of the display screen according to the second embodiment of the present invention;
fig. 13 is a block diagram illustrating a structure of a mobile terminal according to a third embodiment of the present invention;
fig. 14 is a block diagram illustrating a structure of another mobile terminal according to a third embodiment of the present invention;
fig. 15 is a schematic hardware structure diagram of a mobile terminal in 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 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.
Example one
Referring to fig. 2, a flowchart of a display method provided in the first embodiment of the present invention is shown, which may specifically include the following steps:
step 101, identifying an advertisement strip in a display window; the advertisement strip is positioned in the edge area of the display window.
In the embodiment of the present invention, the display window may be a display window stored in a memory or a cache, and the display window may be a window initially displayed on a display screen of the mobile terminal. In the embodiment of the present invention, this is not particularly limited. It should be noted that the display window may be a display window of an operating system of the mobile terminal.
In the embodiment of the present invention, the advertisement bar in the display window may be identified in various ways, for example, an advertisement bar identifier may be preset, whether the advertisement bar identifier exists in the display window is found, if the advertisement bar identifier exists, the advertisement bar exists in the display window, a position where the advertisement identifier is located is further used as an initial advertisement bar position, display attributes such as pixels of the initial advertisement bar position are obtained, the advertisement bar identifier and a region around the advertisement bar identifier within a certain range, the display attributes and the display attributes of the initial advertisement bar position, and a region within a preset interval are used as the advertisement bar.
In the embodiment of the invention, the advertisement strip sample data in various applications can be obtained in advance, and the advertisement strip sample data is adopted to train the advertisement strip identification model which takes the advertisement strip sample data as input and takes the advertisement strip identification as output. In the embodiment of the present invention, Machine training models such as an SVM (Support Vector Machine) may be used to train the advertisement strip recognition model. In the embodiment of the present invention, the method for constructing and training the advertisement strip recognition model is not particularly limited.
Through the method, the advertisement strip is identified from the display window. It should be noted that the advertisement bar may be located in the edge region of the display window. The edge area of the display window may be the top, the bottom, the left side, the right side, etc. of the display window, which is not particularly limited in the embodiment of the present invention.
For example, referring to FIG. 3, FIG. 3 is a schematic view of a display window with an advertisement bar, in FIG. 3, the advertisement bar in the identified display window is the shaded area in FIG. 3, and the advertisement bar is the bottom area in the edge area of the display window.
For example, referring to FIG. 4, FIG. 4 shows another schematic view of a display window with an advertisement banner, in FIG. 4, the advertisement banner identified in the display window is the shaded area in FIG. 4, and the advertisement banner is located in the left area of the border area of the display window.
Step 102, obtaining a first size of the advertisement bar.
In an embodiment of the present invention, after the advertisement bar in the display window is identified, the first size of the advertisement bar may be further obtained. The first size may be a width, height, etc. dimension of the advertising banner. This is not particularly limited in the embodiments of the present invention.
It should be noted that, in the embodiment of the present invention, it may be further determined which information the first size of the advertisement bar specifically required to be acquired includes according to the specific position of the advertisement bar in the edge area of the display window.
Specifically, if the advertisement bar is located in the bottom or top area of the display window, only the height dimension of the advertisement bar may be obtained, and if the advertisement bar is located on the left side or right side of the display window, only the width dimension of the advertisement bar may be obtained, which is not specifically limited in the embodiment of the present invention.
For example, referring to fig. 3, the advertisement bar is located in the bottom area of the display window, and only the height dimension of the advertisement bar may be acquired. For another example, referring to fig. 4, the advertisement bar is located in the left area of the display window in fig. 4, and only the width dimension of the advertisement bar may be obtained. The height and width of the advertisement strip may also be obtained at the same time, which is not particularly limited in the embodiment of the present invention.
For example, referring to fig. 3, since the advertisement bar is located in the bottom area of the display window, only the height dimension of the advertisement bar may be obtained, and if the height dimension of the advertisement bar is 0.8 inches, the size of the advertisement bar may be 0.8 inches in height. The height and width dimensions of the advertising strip may also be obtained simultaneously, and if the height dimension of the advertising strip is 0.8 inch and the width dimension is 4.5 inches, the dimensions of the advertising strip may be 0.8 inch in height and 4.5 inches in width.
For another example, referring to fig. 4, in fig. 4, the advertisement bar is located in the left area of the display window, and only the width dimension of the advertisement bar may be obtained. If the width dimension of the advertising banner is 1 inch, the advertising banner may be 1 inch in width. Similarly, the height and width dimensions of the advertising strip may be obtained simultaneously, and if the height dimension of the advertising strip is 8 inches and the width dimension is 1 inch, the advertising strip may have a height of 8 inches and a width of 1 inch.
In the embodiment of the invention, the specific display position of the advertisement bar in the edge area of the display window is further determined, so that only the width size of the advertisement bar can be obtained, or only the height size of the advertisement bar can be obtained, and the obtained size quantity is further reduced.
And 103, acquiring a second size of the display screen of the mobile terminal.
In the embodiment of the present invention, the second size of the display screen of the mobile terminal is a physical attribute of the mobile terminal, that is, the width and the height of the display screen, and the second size of the display screen of the mobile terminal is determined after the mobile terminal is manufactured. In the embodiment of the present invention, this is not particularly limited.
In a specific application, the second size of the display screen of the mobile terminal can be obtained from the physical parameters of the mobile terminal, and the second size of the display screen of the mobile terminal can also be obtained by calling a corresponding function. For example, for an android system, the second size of the display screen of the mobile terminal may be obtained through an on Create function in system source codes of frames \ base \ core \ java \ android \ app \ activity. In the embodiment of the present invention, this is not particularly limited.
If the obtained height dimension of the display screen of the mobile terminal is 8 inches and the width dimension is 4.5 inches by the above method, the second dimension of the display screen of the mobile terminal may be 8 inches in height and 4.5 inches in width.
Step 104, setting the size parameter of the display window to be a third size; the third dimension is greater than or equal to the sum of the first and second dimensions.
In an embodiment of the present invention, the size parameter of the display window is set to a third size that is greater than or equal to the sum of the first size and the second size, according to the first size and the second size. In the setting of the third size parameter of the display window, the setting of the third size parameter may be determined according to the first size and the second size.
For example, for the above example of fig. 3, since the advertisement bar is located in the bottom area of the display window, if only the height dimension of the advertisement bar is obtained, if the height dimension of the advertisement bar is 0.8 inches, and if the obtained height dimension of the display screen of the mobile terminal is 8 inches and the obtained width dimension is 4.5 inches, the height dimension in the third dimension after setting may be greater than or equal to 8.8 inches, and the width dimension in the third dimension may be consistent with or greater than the width dimension in the second dimension of the display screen. The third size of the display window may be: the width dimension is greater than or equal to 4.5 inches and the height dimension is greater than or equal to 8.8 inches. The third dimension is then: the width dimension is greater than or equal to 4.5 inches and the height dimension is greater than or equal to 8.8 inches. In the embodiment of the present invention, this is not particularly limited.
For another example, as for the above example of fig. 4, since the advertisement bar is located in the left area of the display window, if only the width dimension of the advertisement bar is obtained, if the width dimension of the advertisement bar is 1 inch, and if the height dimension of the display screen of the mobile terminal is obtained as 8 inches and the width dimension is 4.5 inches, the width dimension in the modified third dimension may be greater than or equal to 5.5 inches, and the height dimension in the third dimension may be consistent with or greater than the height dimension in the second dimension of the display screen. The third size of the display window may be: the width dimension is greater than or equal to 5.5 inches and the height dimension is greater than or equal to 8 inches. The third dimension is then: the width dimension is greater than or equal to 5.5 inches and the height dimension is greater than or equal to 8 inches. In the embodiment of the present invention, this is not particularly limited.
In a specific application, the third size parameter can be modified through a related interface of the third size parameter, for example, for an android system, the third size parameter of the system display Window can be modified through functions of Activity, Window, windowmanager, layout params and the like in system source codes of frames \ base \ core \ java \ android \ app \ Activity. This is not particularly limited in the embodiments of the present invention.
And 105, setting the display position of the advertisement bar in a target area, wherein the target area is positioned in the display window and outside the display area of the display screen.
In the embodiment of the invention, the display position of the advertisement bar is arranged in the target area, and the target area is positioned in the display window and outside the display area of the display screen, so that the advertisement bar is hidden outside the display area of the display screen.
Specifically, the display window of the third size may display more content than it did before the modified size. For example, reference may be made to fig. 5, where fig. 5 shows a schematic diagram of a display window of a third size after setting the size parameter for the display window corresponding to fig. 3.
In the embodiment of the present invention, optionally, the display position of the advertisement bar is set in a target area, and the target area is located in the display window and outside the display area of the display screen. The display window may be rendered to the display screen of the mobile terminal for displaying, the display position of the advertisement bar is disposed in a target area, and the target area is located in the display window and outside the display area of the display screen of the mobile terminal, so that the advertisement bar is hidden outside the display area of the display screen.
In the embodiment of the invention, the display position of the advertisement bar is arranged in the target area, and the target area is positioned in the display window and is positioned outside the display area of the display screen. For example, referring to fig. 6, fig. 6 is a schematic view showing that a display position of an advertisement bar is set to a target area.
Compared with the prior art, for example, in fig. 1, the display screen display area of the mobile terminal displays the content of the advertisement bar and the Line1-Line8, while in the embodiment of the present invention, the display position of the advertisement bar is set to the target area, and the target area is located in the display window and outside the display screen display area, as shown in fig. 6, the content of the Line1-Line9 is displayed in the display screen display area of the mobile terminal, and compared with the prior art, the content of the advertisement bar is not seen by the user but is displayed more in the display screen display area of the mobile terminal than the content of the Line9 is displayed.
In the embodiment of the present invention, the advertisement bar still exists in the display window with the third size, but the display area of the display screen of the mobile terminal and the display window with the third size are adaptively adjusted, so that the advertisement bar in the display window is displayed outside the display area of the display screen of the mobile terminal. And the area that the user usually sees and can operate only the display area of this mobile terminal's display screen, has hidden the advertisement strip, has consequently avoided using the advertisement strip of inter cut to occupy the display screen by a large scale in the operation process, has still avoided the influence to mobile terminal operation, has avoided touching the advertisement strip by mistake, has made things convenient for the user to use.
In the embodiment of the invention, the advertisement bar in the display window is identified, the first size of the advertisement bar is obtained, the second size of the display screen of the mobile terminal is obtained, the size parameter of the display window is set to be the third size, the third size is larger than or equal to the sum of the first size and the second size, the display position of the advertisement bar is arranged in the target area, the target area is positioned in the display window and is positioned outside the display area of the display screen, and the advertisement bar is hidden, so that the large-area occupation of the display screen by the advertisement bar inserted in the application running process is eliminated, the influence on the operation of the mobile terminal is avoided, the error touch of the advertisement bar is avoided, and the use of a user is facilitated.
Example two
Referring to fig. 7, a flowchart illustrating a display method provided in the second embodiment of the present invention is shown, and is applied to a mobile terminal, where the method specifically includes the following steps:
step 201, identifying an advertisement strip in a display window; the advertisement strip is positioned in the edge area of the display window.
In the embodiment of the present invention, reference may be made to the detailed description of step 101 in the embodiment of the present invention in step 201, which is not specifically limited in the embodiment of the present invention.
In the embodiment of the present invention, if the advertisement bar in the display window is identified through the above step 201, as shown in fig. 8, fig. 8 shows a schematic diagram of identifying the advertisement bar in the display window. The area 20 in figure 8, hatched to the right 45, is the advertising banner identified in the display window.
Step 202, displaying a mark frame in the display window.
In the embodiment of the present invention, after the advertisement bar in the display window is identified, a mark frame may be displayed in the display window, optionally, the mark frame may be located in an area where the advertisement bar is located, and the mark frame may receive an adjustment operation on the mark frame, so as to change the size of the mark frame.
For example, the advertisement bar may refer to fig. 8, in which the hatched area of the advertisement bar in fig. 8 is the box 20 outside the horizontal right area, i.e. the mark box is displayed in the display window.
In the embodiment of the present invention, the purpose of displaying the mark frame in the display window is that, if the advertisement strip identified in step 201 does not meet the requirement of the user, the user can adjust the size of the area where the advertisement strip is located according to the mark frame displayed in the display window and the actual requirement thereof, so as to increase the area where the advertisement strip is located and decrease the area where the advertisement strip is located, thereby making the finally determined advertisement strip meet the requirement of the user. That is, the advertisement banner in the embodiment of the present invention may receive user editing.
Step 203, receiving an adjustment operation for the mark frame.
In an embodiment of the present invention, an adjustment operation for the mark frame may be received.
Specifically, the corresponding relationship between the adjustment operation and the response for the mark frame may be preset, and then the selected area of the mark frame after the adjustment operation is determined according to different operations on the mark frame. For example, in the preset adjustment operation of the mark frame, if the mark frame is operated toward the inside of the area where the advertisement bar is located, the area where the advertisement bar is located is adjusted to be smaller, and if the mark frame is operated toward the outside of the area where the advertisement bar is located, the area where the advertisement bar is located is adjusted to be larger. The specific degree of adjustment or enlargement is determined according to the degree of adjustment operation, and is determined according to the specific mark frame aimed at by the adjustment operation when the adjustment is performed in that direction. In the embodiment of the present invention, this is not particularly limited.
For example, in the example shown in fig. 8, if the preset corresponding relationship between the adjustment operation and the response for the mark frame is adopted, and the area where the advertisement bar is located is enlarged until the adjusted first advertisement area simultaneously includes the area whose section line is inclined to the left by 45 degrees in fig. 8, the area framed by the mark frame after the adjustment operation in the display window may be as shown in fig. 9. Fig. 9 shows a schematic diagram of the area outlined by the marker box after receiving the adjustment operation.
And 204, acquiring a first size of the advertisement bar according to the area framed by the mark frame after the adjustment operation.
In the embodiment of the present invention, the first size of the advertisement bar may be determined according to the area framed by the mark frame after the adjustment operation.
For example, in fig. 9, in the display window, a new advertisement bar may be determined from the area outlined by the marker box after the adjustment operation. That is, the advertisement bar after the adjustment operation is a shaded area in which the hatching is inclined to the right by 45 degrees in the bottom area in the display window.
Further, the first size of the advertisement strip may be obtained for the advertisement strip after the adjustment operation. For example, in fig. 9, the first size of the advertisement bar is determined by determining a first size of a bottom region in the display window, and a hatched region with a hatching inclined 45 degrees to the right. For a specific method for obtaining the first size of the advertisement bar, reference may be made to step 102 in the first embodiment, which is not described herein again.
In the embodiment of the present invention, the purpose of displaying the mark frame in the display window is that, if the advertisement strip identified in step 201 does not meet the requirement of the user, the user can adjust the size of the area where the advertisement strip is located according to the mark frame set in the area where the advertisement strip is located and the actual requirement of the user, so that the area where the advertisement strip is located can be enlarged or reduced, and the finally determined advertisement strip meets the requirement of the user. That is, the advertisement banner in the embodiment of the present invention may receive user editing.
Optionally, in an embodiment of the present invention, when the edge area is the bottom of the display window, the step of obtaining the first size of the advertisement bar may include: and acquiring a first height of the advertising strip.
For example, referring to fig. 3, the advertisement banner is located in a bottom area of the display window, and in acquiring the first size of the advertisement banner, only the first height size of the advertisement banner may be acquired.
For example, referring to fig. 3, since the advertisement bar is located in the bottom area of the display window, only the first height dimension of the advertisement bar may be obtained, and if the first height dimension of the advertisement bar is 0.8 inches, the size of the advertisement bar may be 0.8 inches.
Optionally, in an embodiment of the present invention, when the edge area is the top of the display window, the step of obtaining the first size of the advertisement bar may include: and acquiring a first height of the advertising strip.
Optionally, in an embodiment of the present invention, when the edge area is on the left side or the right side of the display window, the step of obtaining the first size of the advertisement bar may include: a first width of the advertising strip is obtained.
For example, referring to FIG. 4, then in FIG. 4, the advertisement banner is located in the left area of the display window, and only the first width dimension of the banner may be obtained.
For example, referring to FIG. 4, in FIG. 4, where the advertisement strip is located in the left area of the display window, only the first width dimension of the advertisement strip may be obtained. If the first width dimension of the advertising strip is 1 inch, the first dimension of the advertising strip may be that the first width is 1 inch.
In the embodiment of the invention, by further determining the specific display position of the advertisement strip in the edge area of the display window, only the first width size of the advertisement strip can be obtained, or only the first height size of the advertisement strip can be obtained, so that the obtained size quantity is reduced.
And step 205, acquiring a second size of the display screen of the mobile terminal.
In the embodiment of the present invention, step 205 may refer to step 103 in the first embodiment, which is not described herein again.
It should be noted that, optionally, when the edge area is the bottom of the display window, the step of obtaining the second size of the display screen of the mobile terminal may include: and acquiring a second height of the display screen of the mobile terminal.
For example, for the example of fig. 3 above, since the advertisement bar is located in the bottom area of the display window, in the process of obtaining the second size of the display screen of the mobile terminal, only the second height of the display screen of the mobile terminal may be obtained.
For example, for the example of fig. 3, when the edge area is the bottom of the display window, if the obtained second height size of the display screen of the mobile terminal is 8 inches, the obtained second height of the display screen of the mobile terminal is 8 inches.
Optionally, when the edge area is the top of the display window, the step of obtaining the second size of the display screen of the mobile terminal may include: and acquiring a second height of the display screen of the mobile terminal.
Optionally, when the edge area is the left side or the right side of the display window, the step of obtaining the second size of the display screen of the mobile terminal may include: and acquiring a second width of the display screen of the mobile terminal.
For example, for the example of fig. 4 above, since the advertisement bar is located in the left area of the display window, in the process of obtaining the second size of the display screen of the mobile terminal, only the second width of the display screen of the mobile terminal may be obtained.
For example, in the example of fig. 4, when the edge area is the left side of the display window, if the acquired second width dimension of the display screen of the mobile terminal is 4.5 inches, the acquired second width of the display screen of the mobile terminal is 4.5 inches.
Step 206, setting the size parameter of the display window to be a third size; the third dimension is greater than or equal to the sum of the first and second dimensions.
In this embodiment of the present invention, in this step 206, reference may be made to step 104 in the foregoing embodiment, and it should be noted that, optionally, when the edge area is the bottom of the display window, the step of setting the size parameter of the display window to the third size may include: setting a size parameter of the display window to a sum of the first height and the second height.
For example, for the example of fig. 3, since the advertisement bar is located in the bottom region of the display window, the size parameter of the display window may be set to the sum of the first height and the second height in the process of setting the size parameter of the display window to the third size.
For example, in the example of fig. 3, when the edge area is the bottom of the display window, if the first height of the advertisement bar is 0.8 inches and the second height of the display screen of the mobile terminal is 8 inches, the size parameter of the display window may be set to the sum of the first height and the second height, that is, the size parameter of the display window may be set to 8+ 0.8-8.8 inches.
Optionally, when the edge area is the top of the display window, the step of setting the size parameter of the display window to a third size may include: setting a size parameter of the display window to a sum of the first height and the second height.
Optionally, when the edge area is the left side or the right side of the display window, the step of setting the size parameter of the display window to the third size may include: setting a size parameter of the display window to a sum of the first width and the second width.
For example, for the example of fig. 4, since the advertisement bar is located in the left area of the display window, in the process of setting the size parameter of the display window to the third size, the size parameter of the display window may be set to the sum of the first width and the second width.
For example, in the example of fig. 4, when the edge area is the left side of the display window, if the first width of the advertisement bar is 1 inch and the second width of the display screen of the mobile terminal is 4.5 inches, the size parameter of the display window may be set to the sum of the first width and the second width, that is, the size parameter of the display window may be set to 1+ 4.5-5.5 inches.
Step 207, the display position of the advertisement bar is set in a target area, and the target area is located in the display window and outside the display area of the display screen.
In the implementation of the present invention, the step 207 may refer to the step 105 in the first embodiment of the present invention, and it should be noted that, optionally, when the edge area is the bottom of the display window, the step of setting the display position of the advertisement bar in a target area, where the target area is located in the display window and outside the display area of the display screen, may include: aligning a top of the display window with a top of the display screen, displaying the display window in the display screen in the third size.
For example, in the example of fig. 3, since the advertisement bar is located in the bottom area of the display window, in the process of setting the display position of the advertisement bar in the target area, and the target area is located in the display window and outside the display area of the display screen, the top of the display window may be aligned with the top of the display screen, and the display window may be displayed on the display screen in the third size.
For example, for the example of fig. 3, when the edge area is the bottom of the display window, reference may be made to fig. 10, where fig. 10 shows a schematic diagram in which the top of the display window is aligned with the top of the display screen, and the display window is displayed in the display screen in the third size. The left side of fig. 10 is a schematic view of the display window after the size parameters of the display window are set to the first height and the second height, and the right side of fig. 10 is a schematic view of the display window being displayed on the display screen in the third size with the top of the display window aligned with the top of the display screen.
Optionally, when the edge area is the top of the display window, the step of setting the display position of the advertisement bar in a target area, where the target area is located in the display window and outside the display area of the display screen, may include: aligning the bottom of the display window with the bottom of the display screen, and displaying the display window in the display screen in the third size.
Optionally, when the edge area is the left side of the display window, the step of setting the display position of the advertisement bar in a target area, where the target area is located in the display window and outside the display area of the display screen, may include: aligning the right side of the display window with the right side of the display screen, and displaying the display window in the display screen in the third size.
For example, in the example of fig. 4, since the advertisement bar is located in the left area of the display window, in the process of setting the display position of the advertisement bar in the target area, which is located in the display window and outside the display area of the display screen, the right side of the display window may be aligned with the right side of the display screen, and the display window may be displayed on the display screen in the third size. Optionally, when the edge area is the right side of the display window, the step of setting the display position of the advertisement bar in a target area, where the target area is located in the display window and outside the display area of the display screen, may include: aligning a left side of the display window with a left side of the display screen, and displaying the display window in the display screen in the third size.
In the embodiment of the invention, by determining the specific position of the advertisement bar in the display window, part of calculation amount can be reduced and the execution efficiency is improved in the process of setting the size parameter of the display window to be the third size.
In step 208, an advertisement banner display control is generated.
In the embodiment of the present invention, in the display window of the third size, the advertisement bar still exists, but since the position of the advertisement bar is adjusted in the process of displaying the display window of the third size on the display screen, the advertisement bar in the display window is displayed outside the display area of the display screen of the mobile terminal. And the area that the user usually sees and can operate only can show the region of the display screen of this mobile terminal, hide the advertisement strip, for the convenience of users, after the advertisement strip shows outside the display region of the display screen of this mobile terminal, can also be convenient look over this advertisement strip content, then need to generate advertisement strip and show the control piece.
In the embodiment of the invention, the advertisement strip display control with the preset attribute can be generated, and the advertisement strip display control with the preset attribute can be transparent in ground color and occupies a small area of the display screen of the mobile terminal. The size of the advertisement strip display control can be preset, the size of the advertisement strip display control is set to avoid unnecessarily occupying the area of a display screen of the mobile terminal, and inconvenience in use of a user is avoided. In the embodiment of the present invention, this is not particularly limited.
Referring to fig. 10, the right side of fig. 10 shows an interface diagram of an advertisement bar display control generated on the display screen of the mobile terminal after the advertisement bar is hidden outside the displayable area of the display screen. The control 21 in fig. 10 is the banner display control.
It should be noted that, if the mobile terminal is a full-screen, the display position of the advertisement bar display control on the display screen of the mobile terminal may not coincide with the virtual key of the mobile terminal, so as to avoid a user misoperation.
Meanwhile, the display position of the advertisement bar display control on the display screen of the mobile terminal is a blank area as much as possible, so that other display contents are prevented from being covered. In the embodiment of the present invention, this is not particularly limited.
Step 209, when the advertisement bar is located outside the display area of the display screen, if a trigger operation on the advertisement bar display control is received, the advertisement bar is displayed in the display area of the display screen.
In the embodiment of the present invention, when the advertisement bar is located outside the display area of the display screen of the mobile terminal, if a trigger operation for the advertisement bar display control is received, the advertisement bar may be displayed in the display area of the display screen, that is, the advertisement bar may be displayed in the displayable area of the display screen. And further, the viewing or understanding requirements of the user on the advertisement strip are met.
In a specific application, the trigger operation may be set for the advertisement strip display control, and the trigger operation may be touching the advertisement strip display control, clicking the advertisement strip display control, sliding the advertisement strip display control, or the like.
And when the advertisement bar is positioned outside the display area of the display screen of the mobile terminal, if the advertisement bar display control receives any one of the trigger operations, displaying the advertisement bar in the display area of the display screen. In the embodiment of the present invention, the displaying of the advertisement bar in the display area of the display screen may be directly displaying the display window on the display screen of the mobile terminal by restoring the display window. In the embodiment of the present invention, this is not particularly limited.
For example, as shown in the right side of fig. 10, in this case, the advertisement bar is located outside the display area of the display screen of the mobile terminal, and when the advertisement bar displays the control, and in this case, a trigger operation is received, the advertisement bar may be displayed in the display area of the display screen, the advertisement bar may be directly restored and displayed, and the restored and displayed advertisement bar may be as shown in fig. 11. Fig. 11 is a schematic diagram illustrating that when an advertisement bar is located outside a display area of a display screen, if a trigger operation on an advertisement bar display control is received, the advertisement bar is displayed in the display area of the display screen.
In fig. 11, the advertisement bar display control 21 is also displayed on the advertisement bar, facilitating the receiving of the user's hiding operation of the advertisement bar.
Optionally, the position of the advertisement bar may be adjusted in the display window, and the size of the area where the advertisement bar is located may also be adjusted, so that the advertisement bar occupies as little content as possible in the display screen of the mobile terminal. The background color of the advertisement strip may be set to be transparent, and the like, which is not particularly limited in the embodiment of the present invention.
It should be noted that, if the mobile terminal is a full-screen, the advertisement bar is displayed in the displayable area of the display screen, and may not be overlapped with the virtual key of the mobile terminal, thereby avoiding the misoperation of the user.
For example, referring to fig. 12, fig. 12 is a further schematic diagram illustrating that when an advertisement bar is located outside the display area of the display screen, if a trigger operation for the advertisement bar display control is received, the advertisement bar is displayed in the display area of the display screen.
Specifically, for the advertisement bar display control 21 shown in fig. 12, if the mobile terminal is a full screen, when the advertisement bar is located outside the display area of the display screen of the mobile terminal, if the advertisement bar display control 21 receives a trigger operation, the advertisement bar 20 may be displayed in the display area of the display screen, as shown in fig. 12. Wherein 23 in fig. 12 may be an area where a virtual key of the full-screen mobile terminal is located. The advertising banner 20 may be a resized and repositioned advertising banner.
Step 210, after the advertisement bar is displayed in the display area of the display screen, the triggering operation of the advertisement bar display control is received again, and then the display position of the advertisement bar is continuously set in the target area.
The target area is positioned in the display window and is positioned outside the display area of the display screen.
In the embodiment of the present invention, after the advertisement bar is displayed in the display area of the display screen, the trigger operation on the advertisement bar display control is received again, and then the display position of the advertisement bar is continuously set in the target area, and the target area is located in the display window and outside the display area of the display screen, so that the advertisement bar is hidden outside the display area of the display screen.
For example, as shown in fig. 11, in this case, after the advertisement bar is displayed in the display area of the display screen, when the trigger operation for the advertisement bar display control is received again, the display position of the advertisement bar is continuously set in the target area, and the target area is located in the display window and outside the display area of the display screen, so that the advertisement bar is hidden outside the display area of the display screen. Namely, the advertisement bar is hidden, and the schematic diagram after the advertisement bar is hidden can be referred to the right side of the above-mentioned fig. 10. And will not be described in detail herein.
It should be noted that, in the embodiment of the present invention, if the mobile terminal is a full-screen, when the advertisement bar in the display window is identified and the display window is displayed in the display screen of the full-screen mobile terminal, the advertisement bar just covers part or all of the virtual keys of the full-screen mobile terminal, and the virtual keys of the full-screen mobile terminal may also be directly displayed without changing the size of the display window, the display attribute of the virtual keys of the full-screen mobile terminal is set to be set to the top, and the advertisement bar is shielded by the virtual keys of the full-screen mobile terminal, so as to avoid the misoperation of the user.
In the embodiment of the invention, the advertisement bar in the display window is identified, the first size of the advertisement bar is obtained, the second size of the display screen of the mobile terminal is obtained, the size parameter of the display window is set to be the third size, the third size is larger than or equal to the sum of the first size and the second size, the display position of the advertisement bar is arranged in the target area, the target area is positioned in the display window and is positioned outside the display area of the display screen, and the advertisement bar is hidden, so that the large-area occupation of the display screen by the advertisement bar inserted in the application running process is eliminated, the influence on the operation of the mobile terminal is avoided, the error touch of the advertisement bar is avoided, and the use of a user is facilitated.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the embodiments of the application.
EXAMPLE III
Referring to fig. 13, which is a block diagram of a mobile terminal 300 according to a third embodiment of the present invention, where the mobile terminal 300 specifically includes:
an advertisement strip identification module 301, configured to identify an advertisement strip in a display window; the advertisement strip is positioned in the edge area of the display window;
a first size obtaining module 304, configured to obtain a first size of the advertisement bar;
a second size obtaining module 305, configured to obtain a second size of the display screen of the mobile terminal;
a size parameter setting module 306, configured to set the size parameter of the display window to a third size; the third dimension is greater than or equal to the sum of the first and second dimensions;
the first display module 307 is configured to set a display position of the advertisement bar in a target area, where the target area is located in the display window and outside a display area of the display screen.
Optionally, referring to fig. 14, on the basis of fig. 13, the mobile terminal may further include: a mark frame display module 302, configured to display a mark frame in the display window;
an adjustment operation receiving module 303, configured to receive an adjustment operation on the mark frame;
the first size obtaining module 304 may include:
a first size obtaining unit 3041, configured to obtain a first size of the advertisement bar according to the area framed by the mark frame after the adjustment operation.
The above terminal may further include:
a display control generation module 308, configured to generate an advertisement bar display control;
the second display module 309 is configured to, when the advertisement bar is located outside the display area of the display screen, if a trigger operation on the advertisement bar display control is received, display the advertisement bar in the display area of the display screen.
The mobile terminal may further include:
a third display module 310, configured to, after the advertisement bar is displayed in the display area of the display screen, receive a triggering operation on the advertisement bar display control again, continue to set the display position of the advertisement bar in the target area, where the target area is located in the display window and outside the display area of the display screen.
Optionally, when the edge area is the bottom of the display window, the first size obtaining module 304 may include:
a first height obtaining unit for obtaining a first height of the advertisement bar;
the second size obtaining module 305 includes:
the second height acquisition unit is used for acquiring a second height of the display screen of the mobile terminal;
the size parameter setting module 306 includes:
a size parameter setting unit for setting a size parameter of the display window to a sum of the first height and the second height;
the first display module 307 includes:
and the first display unit is used for aligning the top of the display window with the top of the display screen and displaying the display window in the display screen in the third size.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 12, and is not described herein again to avoid repetition.
Therefore, in the embodiment of the invention, the advertisement bar in the display window is identified, the first size of the advertisement bar is obtained, the second size of the display screen of the mobile terminal is obtained, the size parameter of the display window is set to be the third size, the third size is larger than or equal to the sum of the first size and the second size, the display position of the advertisement bar is arranged in the target area, the target area is positioned in the display window and is positioned outside the display area of the display screen, and the advertisement bar is further hidden, so that the large-area occupation of the display screen by the advertisement bar inserted in the application running process is eliminated, the influence on the operation of the mobile terminal is avoided, the error touch of the advertisement bar is avoided, and the use by a user is facilitated.
Figure 15 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, a sound output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 15 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 710 is configured to identify an advertisement bar in the display window; the advertisement strip is positioned in the edge area of the display window;
acquiring a first size of the advertisement strip;
acquiring a second size of the display screen of the mobile terminal;
setting a size parameter of the display window to a third size; the third dimension is greater than or equal to the sum of the first and second dimensions;
and setting the display position of the advertisement bar in a target area, wherein the target area is positioned in the display window and outside the display area of the display screen.
According to the embodiment of the invention, the advertisement bar in the display window is identified, the first size of the advertisement bar is obtained, the second size of the display screen of the mobile terminal is obtained, the size parameter of the display window is set to be the third size, the third size is larger than or equal to the sum of the first size and the second size, the display position of the advertisement bar is arranged in the target area, the target area is positioned in the display window and is positioned outside the display area of the display screen, and the advertisement bar is hidden, so that the large-area occupation of the display screen by the advertisement bar inserted in the application running process is eliminated, the influence on the operation of the mobile terminal is avoided, the error touch of the advertisement bar is avoided, and the use by a user is facilitated.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The sound output unit 703 may convert sound data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into a sound signal and output as sound. Also, the sound output unit 703 may also provide sound output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The sound output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive a sound or video signal. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sound, and may be capable of processing such sound into sound data. The processed voice data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 7061 or a backlight when the mobile terminal 700 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 15 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, a sound input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 700 or may be used to transmit data between the mobile terminal 700 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as voice data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs or modules stored in the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 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 110.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
Based on the hardware structure of the mobile terminal, the following detailed description will be made of embodiments of the present invention.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A display method is applied to a mobile terminal, and is characterized by comprising the following steps:
identifying an advertisement banner in a display window; the advertisement strip is positioned in the edge area of the display window;
acquiring a first size of the advertisement strip;
acquiring a second size of the display screen of the mobile terminal;
setting a size parameter of the display window to a third size; the third dimension is greater than or equal to the sum of the first dimension and the second dimension;
setting the display position of the advertisement bar in a target area, wherein the target area is positioned in the display window and outside the display area of the display screen;
wherein, after the step of setting the display position of the advertisement bar in the target area, the method further comprises:
generating an advertisement bar display control;
and when the advertisement bar is positioned outside the display area of the display screen, if the triggering operation of the advertisement bar display control is received, the advertisement bar is displayed in the display area of the display screen.
2. The method of claim 1, wherein after the step of identifying the advertisement banner in the display window and before the step of obtaining the first size of the advertisement banner, further comprising:
displaying a marker box in the display window;
receiving an adjustment operation on the marking frame;
the step of obtaining a first size of the advertisement banner includes:
and acquiring the first size of the advertisement bar according to the area framed by the mark frame after the adjustment operation.
3. The method of claim 1, wherein after the step of displaying the advertisement bar on the display area of the display screen, further comprising:
and after the advertisement bar is displayed in the display area of the display screen, the triggering operation of the advertisement bar display control is received again, and then the display position of the advertisement bar is continuously set in the target area.
4. The method of claim 1, wherein when the edge region is the bottom of the display window, the step of obtaining the first size of the advertisement banner comprises:
acquiring a first height of the advertising strip;
the step of obtaining the second size of the display screen of the mobile terminal comprises the following steps:
acquiring a second height of the display screen of the mobile terminal;
the step of setting the size parameter of the display window to a third size includes:
setting a size parameter of the display window to a sum of the first height and the second height;
the step of setting the display position of the advertisement bar to a target area includes:
aligning a top of the display window with a top of the display screen, displaying the display window in the display screen in the third size.
5. A mobile terminal, characterized in that the mobile terminal comprises:
the advertisement strip identification module is used for identifying the advertisement strips in the display window; the advertisement strip is positioned in the edge area of the display window;
the first size obtaining module is used for obtaining a first size of the advertising strip;
the second size obtaining module is used for obtaining a second size of the display screen of the mobile terminal;
the size parameter setting module is used for setting the size parameter of the display window to be a third size; the third dimension is greater than or equal to the sum of the first and second dimensions;
the first display module is used for setting the display position of the advertisement bar in a target area, and the target area is positioned in the display window and is positioned outside the display area of the display screen;
further comprising:
the display control generation module is used for generating an advertisement bar display control;
and the second display module is used for displaying the advertisement bar in the display area of the display screen if the trigger operation of the advertisement bar display control is received when the advertisement bar is positioned outside the display area of the display screen.
6. The mobile terminal of claim 5, further comprising:
the mark frame display module is used for displaying a mark frame in the display window;
the adjusting operation receiving module is used for receiving the adjusting operation of the marking frame;
the first size acquisition module includes:
and the first size obtaining unit is used for obtaining the first size of the advertisement strip according to the area framed by the mark frame after the adjustment operation.
7. The mobile terminal of claim 5, further comprising:
and the third display module is used for continuing to set the display position of the advertisement bar in the target area after the trigger operation of the advertisement bar display control is received again after the advertisement bar is displayed in the display area of the display screen.
8. The mobile terminal according to claim 5, wherein when the edge area is the bottom of the display window, the first size obtaining module comprises:
a first height obtaining unit for obtaining a first height of the advertisement bar;
the second size obtaining module includes:
the second height acquisition unit is used for acquiring a second height of the display screen of the mobile terminal;
the size parameter setting module comprises:
a size parameter setting unit for setting a size parameter of the display window to a sum of the first height and the second height;
the first display module includes:
and the first display unit is used for aligning the top of the display window with the top of the display screen and displaying the display window in the display screen in the third size.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the display method according to any one of claims 1 to 4.
CN201810681502.3A 2018-06-27 2018-06-27 Display method and mobile terminal Active CN109005282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810681502.3A CN109005282B (en) 2018-06-27 2018-06-27 Display method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810681502.3A CN109005282B (en) 2018-06-27 2018-06-27 Display method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109005282A CN109005282A (en) 2018-12-14
CN109005282B true CN109005282B (en) 2020-10-27

Family

ID=64601915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810681502.3A Active CN109005282B (en) 2018-06-27 2018-06-27 Display method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109005282B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729784A (en) * 2014-01-26 2014-04-16 合一信息技术(北京)有限公司 Interactive advertisement management method and system
CN105701154A (en) * 2015-12-29 2016-06-22 腾讯科技(深圳)有限公司 Advertisement removal method and device
CN106998393A (en) * 2017-05-24 2017-08-01 维沃移动通信有限公司 A kind of video playing control method and mobile terminal
CN107329736A (en) * 2017-05-22 2017-11-07 北京金山安全管理系统技术有限公司 The display methods and device of information, storage medium and processor
CN107340955A (en) * 2017-07-07 2017-11-10 广州优视网络科技有限公司 The method and apparatus for obtaining the positional information after change in location of the view on screen

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100153836A1 (en) * 2008-12-16 2010-06-17 Rich Media Club, Llc Content rendering control system and method
CN102236658B (en) * 2010-04-26 2015-01-14 富士通株式会社 Webpage content extracting method and device
JP6095614B2 (en) * 2014-07-18 2017-03-15 ヤフー株式会社 Information display program, distribution device, information display method, and information display device
CN105898511A (en) * 2015-12-08 2016-08-24 乐视网信息技术(北京)股份有限公司 Advertisement display method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729784A (en) * 2014-01-26 2014-04-16 合一信息技术(北京)有限公司 Interactive advertisement management method and system
CN105701154A (en) * 2015-12-29 2016-06-22 腾讯科技(深圳)有限公司 Advertisement removal method and device
CN107329736A (en) * 2017-05-22 2017-11-07 北京金山安全管理系统技术有限公司 The display methods and device of information, storage medium and processor
CN106998393A (en) * 2017-05-24 2017-08-01 维沃移动通信有限公司 A kind of video playing control method and mobile terminal
CN107340955A (en) * 2017-07-07 2017-11-10 广州优视网络科技有限公司 The method and apparatus for obtaining the positional information after change in location of the view on screen

Also Published As

Publication number Publication date
CN109005282A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN108536365B (en) Image sharing method and terminal
CN108491123B (en) Method for adjusting application program icon and mobile terminal
CN108073343B (en) display interface adjusting method and mobile terminal
CN107943390B (en) Character copying method and mobile terminal
CN109032445B (en) Screen display control method and terminal equipment
CN108132752B (en) Text editing method and mobile terminal
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN107748640B (en) Screen-off display method and mobile terminal
CN107734172B (en) Information display method and mobile terminal
CN109257505B (en) Screen control method and mobile terminal
CN110324497B (en) Operation control method, terminal and computer readable storage medium
CN110069188B (en) Identification display method and terminal equipment
CN111562896B (en) Screen projection method and electronic equipment
CN108898555B (en) Image processing method and terminal equipment
CN108196781B (en) Interface display method and mobile terminal
CN111124709A (en) Text processing method and electronic equipment
CN111327768B (en) Display control method, electronic device, and computer-readable storage medium
CN111176526B (en) Picture display method and electronic equipment
CN110795402B (en) Method and device for displaying file list and electronic equipment
CN109597546B (en) Icon processing method and terminal equipment
CN108984062B (en) Content display method and terminal
CN108600498B (en) Information prompting method and device
CN108469944B (en) Display control method and mobile terminal
CN108804628B (en) Picture display method and terminal
CN107943959B (en) Webpage display method and device and mobile terminal

Legal Events

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