CN108008876B - Display method, device and equipment of floating window and storage medium - Google Patents

Display method, device and equipment of floating window and storage medium Download PDF

Info

Publication number
CN108008876B
CN108008876B CN201711230683.XA CN201711230683A CN108008876B CN 108008876 B CN108008876 B CN 108008876B CN 201711230683 A CN201711230683 A CN 201711230683A CN 108008876 B CN108008876 B CN 108008876B
Authority
CN
China
Prior art keywords
display area
window
display
size
zooming
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
CN201711230683.XA
Other languages
Chinese (zh)
Other versions
CN108008876A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201711230683.XA priority Critical patent/CN108008876B/en
Publication of CN108008876A publication Critical patent/CN108008876A/en
Application granted granted Critical
Publication of CN108008876B publication Critical patent/CN108008876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a display method, a device, equipment and a storage medium of a floating window, wherein the method comprises the following steps: when a zooming instruction of a window is detected, controlling the size of the window to be a set value, wherein the window comprises a display area and a non-display area, and the size of the window is the size of the non-display area; acquiring a display frame of each zooming scale corresponding to each zooming instruction, selecting the display frame corresponding to the zooming instruction, and zooming the display area of the window to the position of the display frame; and adjusting the size of the non-display area to be the size corresponding to the display area, and displaying the display area of the window. The method solves the problem of unsmooth zooming of the floating window.

Description

Display method, device and equipment of floating window and storage medium
Technical Field
The present invention relates to display technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a floating window.
Background
In the Android system, windows of any size and suspended above other application windows or display interfaces are added, usually using the windowmanager adview method, and are called as suspended windows. When a zoom button dragging the floating window is used for real-time zooming in and zooming out, the floating window is zoomed to be in a pause phenomenon under the condition that the size of the floating window is updated in real time by using a Windowmanager.
Disclosure of Invention
The embodiment of the invention provides a display method, a display device, display equipment and a storage medium of a floating window, and aims to solve the problem of pause during the scaling of the floating window.
In a first aspect, an embodiment of the present invention provides a method for displaying a floating window, where the method includes:
when a zooming instruction of a window is detected, controlling the size of the window to be a set value, wherein the window comprises a display area and a non-display area, and the size of the window is the size of the non-display area;
acquiring a display frame of each zooming scale corresponding to each zooming instruction, selecting the display frame corresponding to the zooming instruction, and zooming the display area of the window to the position of the display frame;
and adjusting the size of the non-display area to be the size corresponding to the display area, and displaying the display area of the window.
In a second aspect, an embodiment of the present invention further provides a display device for a floating window, where the device includes:
the control module is used for controlling the size of a window to be a set value when a zooming instruction of the window is detected, wherein the window comprises a display area and a non-display area, and the size of the window is the size of the non-display area;
the zooming module is used for acquiring display frames of various zooming proportions corresponding to various zooming instructions, selecting the display frames corresponding to the zooming instructions and zooming the display area of the window to the position of the display frames;
and the display module is used for adjusting the size of the non-display area to be the size corresponding to the display area and displaying the display area of the window.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the floating window displaying method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the display method of the floating window according to any one of the embodiments of the present invention.
In the embodiment of the invention, when a zoom instruction of a window is detected, the size of the window is controlled to be a set value, wherein the window comprises a display area and a non-display area, the size of the window is the size of the non-display area, then a display frame of each zoom ratio corresponding to each zoom instruction is obtained, the display frame corresponding to the zoom instruction is selected, the display area of the window is zoomed to the position of the display frame, the size of the non-display area is adjusted to be the size corresponding to the display area, and the display area of the window is displayed. The method solves the problem of unsmooth zooming of the floating window.
Drawings
FIG. 1a is a flowchart illustrating a floating window displaying method according to a first embodiment of the present invention;
FIG. 1b is a schematic diagram of a display area and a non-display area in a first embodiment of the present invention;
FIG. 1c is a diagram illustrating dynamic changes in a display area during a window scaling process according to an embodiment of the present invention;
FIG. 1d is a diagram illustrating a scaling result of a display area during a window scaling process according to an embodiment of the present invention;
fig. 1e is a schematic diagram of a corresponding relationship between a scaling ratio and a display frame in an embodiment of the present invention;
FIG. 1f is a diagram illustrating a window scaling result according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a floating window displaying method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for displaying a floating window according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a display device with a floating window according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1a is a flowchart of a display method of a floating window according to an embodiment of the present invention, where the embodiment is applicable to a case where a floating window is scaled and displayed, and the method may be executed by a display apparatus of a floating window according to an embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner. Referring to fig. 1a, the method may specifically include the steps of:
s110, when a zooming instruction of a window is detected, controlling the size of the window to be a set value, wherein the window comprises a display area and a non-display area, and the size of the window is the size of the non-display area.
Specifically, the zoom instruction of the window may be generated by a user clicking a zoom button or a zoom control bar of the window, and optionally, a zoom scale may be displayed at two ends of the zoom control bar for the user to select. The window comprises a display area and a non-display area, wherein the display area of the window is a visible part of a user, that is, the display content is displayed to the user through the display area, and the display content can be, for example, characters, pictures and the like. In a specific example, fig. 1b shows a display area and a non-display area, where the size of the non-display area is a set value size just before the display area is zoomed when the application scene detects a zoom command, where 140 is a floating background of the window, which may be other application windows or display main pages, etc., 150 is the display area of the window, 160 is the non-display area of the window, and 170 is a zoom button. When a zoom command of the window is detected, the size of the control window is a set value, that is, the non-display area of the control window is a set value, that is, 160 is a set value.
Optionally, the non-display area of the window is in a transparent state.
The non-display area of the window is in a transparent state, that is, the non-display area of the window is in a state invisible to a user. In order to make the present solution easier to understand, fig. 1b shows the boundary line of the display area 160 and the boundary line of the non-display area 170, and in practical applications, the boundary line of 160 may or may not exist, and the boundary line of 170 does not exist in practice. Presented in the display area 160 is display content that is visible to the user, and the non-display area 170 is not visible to the user.
Optionally, the size of the set value is a maximum value that the display area of the window can be scaled.
When the display area is enlarged to the maximum value, that is, all the non-display areas become display areas, the display areas and the non-display areas overlap, and the area sizes of the display areas and the non-display areas are set values.
S120, obtaining the display frame of each scaling ratio corresponding to each scaling instruction, selecting the display frame corresponding to the scaling instruction, and scaling the display area of the window to the position of the display frame.
The display of the window is realized through the View control, and the zooming of the display area is realized through the zooming of the View control. In a specific example, FIG. 1c illustrates a dynamic change of the display area during the window scaling process. Referring to fig. 1c, 150 is the size of the display area before zooming, 180 is the size of the display area during zooming, and 160 is the size of the non-display area. FIG. 1d is a diagram illustrating the result of scaling the display area during window scaling. Referring to fig. 1d, 180 is the enlarged display area and 160 is the non-display area.
For example, in the embodiment of the present invention, taking an Android implementation mechanism as an example, the speed of updating the View control in real time (i.e., updating the size of the display area of the window) is faster than the speed of updating the size of the floating window (including the display area and the non-display area) in real time by using the WindowManager.
Specifically, each zoom scale has a display frame corresponding to the zoom scale, and in a specific example, fig. 1e shows a corresponding relationship between the zoom scale and the display frame, so that a user can zoom according to each display frame in combination with a need of the user when the user drags the zoom control bar to zoom. For example, 251 indicates that the display area is enlarged to 140% of the original display area 150, and 252 indicates that the display area is enlarged to 180% of the original display area 150. In the zooming process, the dashed lines 251 and 252 are visible to the user, and the user can zoom more conveniently according to the needs of the user.
In a specific example, referring to fig. 1e, the user needs to zoom the display area of the window to 140%, the user can see the display border 251 corresponding to 140%, and the user can drag the zoom button or the zoom control bar to stop when the display area coincides with the display border 251. The display area of the window is scaled to 140% of the position where the frame is displayed.
And S130, adjusting the size of the non-display area to be the size corresponding to the display area, and displaying the display area of the window.
Specifically, the size of the non-display area is adjusted to the size corresponding to the display area, in a specific example, fig. 1f shows a result of scaling the window, and fig. 1f and 190 show the display area after the size of the non-display area is adjusted to the size corresponding to the display area, where the display area and the non-display area coincide and are not shown again.
In this specific example, fig. 1b, 1c, 1d, and 1f sequentially illustrate a dynamic process from the detection of a zoom command to the end of zooming. Firstly, when a zoom instruction of a window is detected, controlling the size of a non-display area to be a set value, as shown in fig. 1 b; zooming the display area according to the zooming instruction, as shown in fig. 1c and 1 d; the size of the non-display area is adjusted to the size corresponding to the display area and the display area of the window is displayed, as shown in fig. 1 f.
In the embodiment of the invention, when a zoom instruction of a window is detected, the size of the window is controlled to be a set value, wherein the window comprises a display area and a non-display area, the size of the window is the size of the non-display area, then a display frame corresponding to the zoom instruction is selected by acquiring a display frame of each zoom ratio corresponding to each zoom instruction, the display area of the window is zoomed to the position of the display frame, the size of the non-display area is adjusted to be the size corresponding to the display area, and the display area of the window is displayed. The method solves the problem of unsmooth zooming of the floating window.
Example two
Fig. 2 is a flowchart of a display method of a floating window according to a second embodiment of the present invention, where "obtaining a display frame of each zoom ratio corresponding to each zoom instruction" is optimized based on the second embodiment. Referring to fig. 2, the method may specifically include the following steps:
s210, when a zooming instruction of a window is detected, controlling the size of the window to be a set value, wherein the window comprises a display area and a non-display area, and the size of the window is the size of the non-display area.
And S220, judging whether the event corresponding to the zooming instruction is an enlarged window or not, and if so, executing S230.
S240, judging whether the event corresponding to the zooming instruction is a reduced window, if so, executing S250.
And S230, increasing a preset increasing proportion on the current scaling proportion of the window, and determining a display frame corresponding to the scaling proportion according to the obtained first display proportion.
Specifically, the preset increment ratio may be 10%, in a specific example, when the event corresponding to the zoom instruction is to increase the window and the current zoom ratio of the window is 50%, the current zoom ratio is increased by 10% on the basis of the current zoom ratio, the obtained first display ratio is 60%, and the corresponding display border when the zoom ratio is 60% is determined according to the first display ratio of 60%.
And S250, reducing the incremental proportion according to the current scaling proportion of the window, and determining a display frame corresponding to the scaling proportion according to the obtained second display proportion.
In a specific example, when the event corresponding to the zoom instruction is to zoom out the window, the preset incremental ratio may be 5%, and assuming that the current zoom ratio of the window is 70%, the current zoom ratio is reduced by 5%, the obtained second display ratio is 65%, and the display frame corresponding to the zoom ratio of 65% is determined according to the second display ratio of 65%.
And S260, selecting a display frame corresponding to the zooming instruction, and zooming the display area of the window to the position of the display frame.
And S270, adjusting the size of the non-display area to be the size corresponding to the display area, and displaying the display area of the window.
In the embodiment of the invention, by judging the type of the current zooming instruction, when the event corresponding to the zooming instruction is to enlarge the window, a preset increasing proportion is added to the current zooming proportion of the window, and the display frame corresponding to the zooming proportion is determined according to the obtained first display proportion; and when the event corresponding to the zooming instruction is a reduced window, reducing the incremental scale according to the current zooming scale of the window, and determining a display frame corresponding to the zooming scale according to the obtained second display scale. After the display scale is determined through the zooming instruction, the corresponding display frame is determined according to the display scale, and a foundation is provided for displaying the floating window.
EXAMPLE III
Fig. 3 is a flowchart of a display method of a floating window according to a third embodiment of the present invention, which is implemented on the basis of the third embodiment. Referring to fig. 3, the method may specifically include the following steps:
s310, when a zooming instruction of the window is detected, controlling the size of the window to be a set value, wherein the window comprises a display area and a non-display area, and the size of the window is the size of the non-display area.
S320, obtaining the display frame of each scaling ratio corresponding to each scaling instruction, selecting the display frame corresponding to the scaling instruction, and scaling the display area of the window to the position of the display frame.
And S330, acquiring the size of the display area.
In a specific example, the size of the display area is obtained by detecting coordinate values of pixel points at the edge of the display area and determining the size of the display area according to the coordinate values of the pixel points.
And S340, after the size of the non-display area is adjusted to be consistent with the size of the display area, the non-display area is placed above or below the display area in a fully covered stacked mode, and the display area of the window is displayed.
Specifically, the size of the non-display area is adjusted to a size that is consistent with the size of the display area. And placing the non-display area above or below the display area in a fully covered stacked manner, and displaying the display area of the window. Alternatively, a fully covered stack-up provides a good visual effect to the user.
In the embodiment of the present invention, after the display area of the window is determined to be zoomed to the position of the display frame, the size of the display area is obtained, the size of the non-display area is adjusted to a size consistent with the size of the display area, and then the non-display area is placed above or below the display area in a fully covered stacked manner, and the display area of the window is displayed. The display of the processed display area is realized, and a better visual effect is brought to a user.
Example four
Fig. 4 is a schematic structural diagram of a display device of a floating window according to a fourth embodiment of the present invention, where the display device is suitable for executing a display method of a floating window according to the fourth embodiment of the present invention. As shown in fig. 4, the apparatus may specifically include:
the control module 410 is configured to, when a zoom instruction of a window is detected, control the size of the window to be a set value, where the window includes a display area and a non-display area, and the size of the window is the size of the non-display area;
a scaling module 420, configured to obtain a display frame of each scaling ratio corresponding to each scaling instruction, select the display frame corresponding to the scaling instruction, and scale the display area of the window to the position of the display frame;
a display module 430, configured to adjust the size of the non-display area to a size corresponding to the display area, and display the display area of the window.
Further, the scaling module 420 is specifically configured to:
when the event corresponding to the zooming instruction is to enlarge the window, a preset increasing proportion is added to the current zooming proportion of the window, and a display frame corresponding to the zooming proportion is determined according to the obtained first display proportion;
and when the event corresponding to the zooming instruction is a reduced window, reducing the incremental scale according to the current zooming scale of the window, and determining a display frame corresponding to the zooming scale according to the obtained second display scale.
Further, the method also comprises the following steps:
an obtaining module, configured to obtain a size of the display area before the size of the non-display area is adjusted to a size corresponding to the display area and the display area of the window is displayed;
correspondingly, the display module 430 is specifically configured to:
and after the size of the non-display area is adjusted to be consistent with the size of the display area, the non-display area is placed above or below the display area in a fully-covered stacked mode, and the display area of the window is displayed.
Further, the non-display area of the window is in a transparent state.
Further, the size of the set value is the maximum value that the display area of the window can be scaled.
The display device of the floating window provided by the embodiment of the invention can execute the display method of the floating window provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 5, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement the floating window display method provided by the embodiment of the present invention:
that is, the processing unit implements, when executing the program: when a zooming instruction of a window is detected, controlling the size of the window to be a set value, wherein the window comprises a display area and a non-display area, and the size of the window is the size of the non-display area; acquiring a display frame of each zooming scale corresponding to each zooming instruction, selecting the display frame corresponding to the zooming instruction, and zooming the display area of the window to the position of the display frame; and adjusting the size of the non-display area to be the size corresponding to the display area, and displaying the display area of the window.
EXAMPLE six
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the floating window display method according to the embodiments of the present invention:
that is, the program when executed by the processor implements: when a zooming instruction of a window is detected, controlling the size of the window to be a set value, wherein the window comprises a display area and a non-display area, and the size of the window is the size of the non-display area; acquiring a display frame of each zooming scale corresponding to each zooming instruction, selecting the display frame corresponding to the zooming instruction, and zooming the display area of the window to the position of the display frame; and adjusting the size of the non-display area to be the size corresponding to the display area, and displaying the display area of the window.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A display method of a floating window is characterized by comprising the following steps:
when a zooming instruction of a window is detected, controlling the size of the window to be a set value, wherein the window comprises a display area and a non-display area, and the size of the window is the size of the non-display area;
acquiring a display frame of each zooming scale corresponding to each zooming instruction, selecting the display frame corresponding to the zooming instruction, and zooming the display area of the window to the position of the display frame;
and adjusting the size of the non-display area to be the size corresponding to the display area, and displaying the display area of the window.
2. The method according to claim 1, wherein the obtaining of the display frame of each zoom scale corresponding to each zoom instruction comprises:
when the event corresponding to the zooming instruction is to enlarge the window, a preset increasing proportion is added to the current zooming proportion of the window, and a display frame corresponding to the zooming proportion is determined according to the obtained first display proportion;
and when the event corresponding to the zooming instruction is a reduced window, reducing the incremental scale according to the current zooming scale of the window, and determining a display frame corresponding to the zooming scale according to the obtained second display scale.
3. The method of claim 1, wherein before resizing the non-display area to a size corresponding to the display area and displaying the display area of the window, further comprising:
acquiring the size of the display area;
correspondingly, the resizing the non-display area to a size corresponding to the display area and displaying the display area of the window includes:
and after the size of the non-display area is adjusted to be consistent with the size of the display area, the non-display area is placed above or below the display area in a fully-covered stacked mode, and the display area of the window is displayed.
4. A method according to any of claims 1 to 3, wherein the non-display area of the window is transparent.
5. A method according to any of claims 1-3, wherein the set value is the maximum value to which the display area of the window is scalable.
6. A display device for floating a window, comprising:
the control module is used for controlling the size of a window to be a set value when a zooming instruction of the window is detected, wherein the window comprises a display area and a non-display area, and the size of the window is the size of the non-display area;
the zooming module is used for acquiring display frames of various zooming proportions corresponding to various zooming instructions, selecting the display frames corresponding to the zooming instructions and zooming the display area of the window to the position of the display frames;
and the display module is used for adjusting the size of the non-display area to be the size corresponding to the display area and displaying the display area of the window.
7. The apparatus of claim 6, wherein the scaling module is specifically configured to:
when the event corresponding to the zooming instruction is to enlarge the window, a preset increasing proportion is added to the current zooming proportion of the window, and a display frame corresponding to the zooming proportion is determined according to the obtained first display proportion;
and when the event corresponding to the zooming instruction is a reduced window, reducing the incremental scale according to the current zooming scale of the window, and determining a display frame corresponding to the zooming scale according to the obtained second display scale.
8. The apparatus of claim 6, further comprising:
an obtaining module, configured to obtain a size of the display area before adjusting the size of the non-display area to a size corresponding to the display area and displaying the display area of the window;
correspondingly, the display module is specifically configured to:
and after the size of the non-display area is adjusted to be consistent with the size of the display area, the non-display area is placed above or below the display area in a fully-covered stacked mode, and the display area of the window is displayed.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-5 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201711230683.XA 2017-11-29 2017-11-29 Display method, device and equipment of floating window and storage medium Active CN108008876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711230683.XA CN108008876B (en) 2017-11-29 2017-11-29 Display method, device and equipment of floating window and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711230683.XA CN108008876B (en) 2017-11-29 2017-11-29 Display method, device and equipment of floating window and storage medium

Publications (2)

Publication Number Publication Date
CN108008876A CN108008876A (en) 2018-05-08
CN108008876B true CN108008876B (en) 2020-12-22

Family

ID=62054809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711230683.XA Active CN108008876B (en) 2017-11-29 2017-11-29 Display method, device and equipment of floating window and storage medium

Country Status (1)

Country Link
CN (1) CN108008876B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491753A (en) * 2018-11-29 2019-03-19 北京达佳互联信息技术有限公司 Suspension windows display methods, device and storage medium
CN110636157B (en) * 2019-08-27 2020-11-24 北京航空航天大学 Handheld holder tracking method based on suspension window embedded face recognition technology
CN112181571A (en) * 2020-09-28 2021-01-05 北京字节跳动网络技术有限公司 Floating window display method, device, terminal and storage medium
CN113760140B (en) * 2021-08-31 2023-12-08 Oook(北京)教育科技有限责任公司 Content display method, device, medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214101A (en) * 2011-06-30 2011-10-12 中兴通讯股份有限公司 Method and device for displaying Widget window in zooming way
CN103024156A (en) * 2012-11-29 2013-04-03 广东欧珀移动通信有限公司 Method, system and mobile terminal for realizing one-handed mobile terminal operation
CN106547449A (en) * 2016-11-02 2017-03-29 湖南福米信息科技有限责任公司 A kind of window treatments method and device
CN106598404A (en) * 2015-10-16 2017-04-26 青岛海信移动通信技术股份有限公司 Window display method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160029536A (en) * 2014-09-05 2016-03-15 엘지전자 주식회사 Mobile terminal and control method for the mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214101A (en) * 2011-06-30 2011-10-12 中兴通讯股份有限公司 Method and device for displaying Widget window in zooming way
CN103024156A (en) * 2012-11-29 2013-04-03 广东欧珀移动通信有限公司 Method, system and mobile terminal for realizing one-handed mobile terminal operation
CN106598404A (en) * 2015-10-16 2017-04-26 青岛海信移动通信技术股份有限公司 Window display method and mobile terminal
CN106547449A (en) * 2016-11-02 2017-03-29 湖南福米信息科技有限责任公司 A kind of window treatments method and device

Also Published As

Publication number Publication date
CN108008876A (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN108008876B (en) Display method, device and equipment of floating window and storage medium
CN107515759B (en) Screen capture method and device, electronic equipment and readable storage medium
US8314809B1 (en) Selective rendering of off-screen content
US8384738B2 (en) Compositing windowing system
CN107204023B (en) Method and apparatus for avoiding distortion of graphics drawn in canvas
US20120174029A1 (en) Dynamically magnifying logical segments of a view
US9378297B2 (en) Task-based address bar and tabs scaling
WO2016045523A1 (en) Display method and device for interface contents of mobile terminal and terminal
EP2849031B1 (en) Information processing apparatus and information processing method
KR20140030299A (en) Techniques for zooming in and out with dynamic content
US10592600B2 (en) Selectively pinning sections of displayed content
CN110032701B (en) Image display control method and device, storage medium and electronic equipment
CN113626743A (en) Method and device for determining target display page, electronic equipment and storage medium
CN114356479B (en) Page rendering method and device
CN113655975B (en) Image display method, image display device, electronic apparatus, and medium
CN109739403B (en) Method and apparatus for processing information
US20170115858A1 (en) Two-dimensional indication in contents
CN114356475B (en) Display processing method, device, equipment and storage medium
US9830202B1 (en) Storage and process isolated web widgets
CN111726666A (en) Video display control method and device
CN111782121B (en) Page rolling control method and device, readable storage medium and electronic equipment
CN111054072B (en) Method, device, equipment and storage medium for role model tailing
CN113626120A (en) Method and device for determining display page, electronic equipment and storage medium
CN111083552A (en) Thumbnail generation method, device, equipment and medium
CN113763459B (en) Element position updating method and device, electronic equipment and storage medium

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