CN110262720B - Floating window control method, device, equipment and storage medium - Google Patents

Floating window control method, device, equipment and storage medium Download PDF

Info

Publication number
CN110262720B
CN110262720B CN201910541347.XA CN201910541347A CN110262720B CN 110262720 B CN110262720 B CN 110262720B CN 201910541347 A CN201910541347 A CN 201910541347A CN 110262720 B CN110262720 B CN 110262720B
Authority
CN
China
Prior art keywords
floating window
floating
terminal
window
edge
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
CN201910541347.XA
Other languages
Chinese (zh)
Other versions
CN110262720A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910541347.XA priority Critical patent/CN110262720B/en
Publication of CN110262720A publication Critical patent/CN110262720A/en
Application granted granted Critical
Publication of CN110262720B publication Critical patent/CN110262720B/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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

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)

Abstract

The invention provides a floating window control method, a floating window control device, floating window control equipment and a storage medium. The method comprises the following steps: the terminal acquires first storage indication information of the floating window, the floating window is stored at the edge of a terminal display interface according to the first storage indication information, the pressure value of pressing operation received by a frame of the response terminal is larger than first preset pressure, and the stored floating window is popped up. Therefore, this embodiment regardless of whether the user knows the minimum clickable area of floating window, the user triggers accomodating to floating window through the frame that presses the terminal, and floating window can be accomodate in display interface's edge, and the floating window after accomodating no longer occupies the bottom display content at display interface edge promptly to realize full screen visualization, promoted user's operation experience.

Description

Floating window control method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a floating window control method, a floating window control device, floating window control equipment and a storage medium.
Background
With the development of electronic technology, various smart terminals, such as smart phones, Personal Computers (PCs), Portable game machines (PSPs), and the like, have been widely used. Many floating windows, such as text dialog boxes, video dialog boxes and the like, can be placed on the display interface of each terminal, so that a user can conveniently inquire related contents of each floating window on the current display interface, such as inquiring the dialog contents on a certain floating window.
In the prior art, a user can drag a floating window on a screen at will and stay at a certain position. Under a general condition, because the floating window temporarily shields the display content of the bottom layer, a user performs dragging to the edge of the screen, so that the maximum view is available, but the edge is often dragged to the edge, if the residual edge is too small, a sufficient click area is not available, and the floating window cannot be moved out. Fig. 1 is a schematic diagram of accommodating a floating window provided in the prior art, and as shown in fig. 1, a conventional solution at present is to control the floating window to be dragged out of a range of a screen edge, that is, a certain area is reserved at the screen edge, so as to ensure that a user can click the floating window, and the floating window is only supported to be freely dragged in the reserved area, that is, a distance from at least one edge of the floating window to the screen edge is greater than a reserved width.
However, the above scheme can shield the interface content to a certain extent, and cannot reach the bottom layer visible range of the full screen, so that the operation of the user is inconvenient.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for controlling a floating window of a mobile terminal. Because the floating window is accomodate in the edge of display interface to realize that the full screen is visual, promoted user's operation experience.
The invention provides a control method of a floating window, which is applied to a terminal capable of presenting a graphical user interface and comprises the following steps:
acquiring first storage indication information of the floating window;
the floating window is stored at the edge of a terminal display interface according to the first storage indication information;
and responding that the pressure value of the pressing operation received by the frame of the terminal is greater than a first preset pressure, and popping up the floating window.
In one possible implementation manner, the first receiving indication information includes floating window moving direction information; the receiving the floating window at the edge of a terminal display interface according to the first receiving indication information comprises:
and according to the floating window moving direction information in the first storage indication information, storing the floating window at the edge of a terminal display interface pointed by the floating window moving direction.
In one possible implementation manner, the first storage indication information includes side pressing information; the receiving the floating window at the edge of a terminal display interface according to the first receiving indication information comprises:
and according to the side pressing information in the first storage indication information, storing the floating window at the edge of a preset terminal display interface.
In one possible implementation, after the popping up the floating window, the method further includes:
and responding that the pressure value of the pressing operation received by the frame of the terminal is greater than a second preset pressure, and accommodating the floating window.
In a possible implementation manner, when the number of the floating windows is one, the popping up the floating windows includes:
popping up all or part of the interface of the floating window, or
And gradually popping up the interface of the floating window according to the pressing duration.
In a possible implementation manner, when the number of the floating windows is multiple, the popping up the floating windows includes:
and popping up a plurality of floating windows in a tiled arrangement or gradient arrangement mode.
In one possible implementation manner, the popping up the floating windows in a tiled arrangement or a gradient arrangement includes:
and popping up a plurality of floating windows in a tiling arrangement or gradient arrangement mode according to the preset priority of the floating windows.
In one possible implementation manner, the popping up the floating windows in a tiled arrangement or a gradient arrangement includes:
and gradually increasing the tiling interval or gradient difference of the popped floating windows according to the pressing time length.
In one possible implementation, after the popping up the floating window, the method further includes:
responding to a preset gesture operation received by a user interface of the terminal, and displaying a floating window selected by a user on the user interface in a full screen mode; the preset gesture operation comprises clicking, double clicking and dragging.
A second aspect of the present invention provides a control device for a floating window, including:
the acquisition module is used for acquiring first storage indication information of the floating window;
the processing module is used for accommodating the floating window at the edge of a terminal display interface according to the first accommodating indication information;
the processing module is further configured to respond that a pressure value of the pressing operation received by the frame of the terminal is greater than a first preset pressure, and pop up the floating window.
A third aspect of the present invention provides an electronic device comprising: a touch screen, a side pressure sensor and a control device of the floating window according to the second aspect of the invention.
A fourth aspect of the invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of any of the first aspects of the invention.
The embodiment of the invention provides a floating window control method, a floating window control device, floating window control equipment and a storage medium. The method comprises the following steps: the terminal acquires first storage indication information of the floating window, the floating window is stored at the edge of a terminal display interface according to the first storage indication information, the pressure value of pressing operation received by a frame of the response terminal is larger than first preset pressure, and the stored floating window is popped up. Therefore, this embodiment regardless of whether the user knows the minimum clickable area of floating window, the user triggers accomodating to floating window through the frame that presses the terminal, and floating window can be accomodate in display interface's edge, and the floating window after accomodating no longer occupies the bottom display content at display interface edge promptly to realize full screen visualization, promoted user's operation experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic storage view of a floating window according to the prior art;
FIG. 2 is a flowchart illustrating a floating window control method according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of a pop-up floating window in a tiled arrangement according to the present invention;
FIG. 4 is a schematic diagram of a pop-up floating window in a gradient arrangement according to the present invention;
FIG. 5 is a flowchart illustrating a second method for controlling a floating window according to an embodiment of the present invention;
FIG. 6 is a flowchart of a third embodiment of a floating window control method according to the present invention;
FIG. 7 is a schematic view of a first position of a pressure sensor on a terminal according to the present invention;
FIG. 8 is a schematic view of a second position of the pressure sensor on the terminal provided by the present invention;
fig. 9 is a schematic structural diagram of a control device of a floating window according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and in the claims, and in the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It will be understood that the terms "comprises" and "comprising," and any variations thereof, as used herein, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Most of the current mobile terminals have the function of a floating window, for example, when short messages and instant messaging information exist, a floating window appears on a screen and can be directly used for replying information or reading information and the like, and when a user plays games by using the mobile terminal, the floating window is used for reading information of teammates, equipment information and the like, and the user can drag the floating window on the screen and stop at any position. Because the floating window temporarily shelters the bottom-layer display content, the user can drag the floating window to the edge of the screen according to the requirement, and thus the maximum view of the current interface is available. However, the conventional user does not know the minimum clickable area of the floating window in a normal case, and the user does not know the boundary range where the floating window is dragged due to the operation habit. Moreover, even if the user knows the boundary range, when the user moves the floating window to the boundary of the screen when necessary, the floating window can shield the bottom-layer display content to a certain extent, and the bottom-layer visible range of the full screen cannot be reached.
In order to solve the above problem, an embodiment of the present invention provides a method for controlling a floating window, where the method may include: acquiring first storage indication information of the floating window; and storing the floating window at the edge of the display interface of the terminal according to the first storage indication information, and popping up the stored floating window in response to the fact that the pressure value of the pressing operation received by the frame of the terminal is greater than a first preset pressure.
In the embodiment of the invention, when a user needs to store the floating windows, all or part of the floating windows in the to-be-stored state on the screen are uniformly stored at the edge of the terminal display interface, and the user can know whether the floating windows are stored in the current display interface or not through the edge position of the display interface. Therefore, this embodiment no matter whether the user knows the minimum clickable area of floating window, the floating window can be accomodate in the edge of display interface, and the floating window after accomodating no longer occupies the bottom display content at the edge of display interface promptly to realize full screen visualization, promoted user's operation experience. The scheme can be applied to various electronic devices, including terminals such as tablet computers, smart phones and smart game machines, and is not particularly limited.
The technical solution of the above embodiments of the present invention will be described in detail by using several specific embodiments. It should be noted that the following embodiments may be combined with each other, and the description of the same or similar contents in different embodiments is not repeated.
Example one
Fig. 2 is a flowchart of a first embodiment of a method for controlling a floating window according to the present invention, fig. 3 is a schematic diagram of a floating window popped up in a tiled arrangement manner provided by the present invention, and fig. 4 is a schematic diagram of a floating window popped up in a gradient arrangement manner provided by the present invention.
As shown in fig. 2, the control method provided in this embodiment may include:
s101, acquiring first storage indication information of the floating window;
for example, in this embodiment, the first receiving indication information may be indication information that a certain floating window or certain floating windows are in a state to be received, or indication information that a user triggers after clicking a certain key of the terminal, and the like.
When one or more floating windows on the terminal display interface need to be stored, the user can trigger the state of the floating window or the floating windows into a storage mode, so that the floating window or the floating windows are in a state to be stored. In this embodiment, a user may trigger the floating window to be in the receivable mode by using any one of the prior art methods, for example, if the terminal is a mobile terminal, the user may select the floating window by clicking and dragging, so as to trigger the floating window to be in the receivable mode; if the terminal is a desktop computer, the user can click the floating window through the mouse, and therefore the floating window is triggered to be in the accommodating mode. Of course, the embodiments of the present invention include, but are not limited to, the above-mentioned manner to trigger the floating window to be in the stowable mode.
When the user finishes the operation, the terminal can obtain first storage indication information of one or more floating windows in a state to be stored.
In this embodiment, the floating window may be a plurality of different application floating windows, or may be a plurality of window interfaces in one application, which is not specifically limited in this embodiment.
S102, the floating window is stored at the edge of the terminal display interface according to the first storage indication information.
The edge position of the display interface has a prompt function.
After the terminal acquires the first storage indication information, the user is informed that one or more floating windows need to be stored, and therefore the terminal can store one or more floating windows at the edge of the display interface of the terminal. The edge may be any one of left, right, upper, and lower edges of the display interface, and the embodiment is not particularly limited. In an embodiment, the accommodating the floating window at the edge of the terminal display interface according to the first accommodating indication information includes the following two cases: in one case, the floating window is completely hidden according to the first storage indication information; in another case, the floating window is stored in a visual area at the edge of the terminal display interface in a slightly-reduced form according to the first storage indication information, and the visual area is used for displaying icons, titles and the like of the stored floating window, so that the user interface is not occupied too much.
After the terminal stores the floating window in the edge of the display interface, a prompt function is provided at the edge of the display interface where the floating window is stored, for example, a certain prompt light effect or prompt characters are left at the edge of the display interface.
S103, responding that the pressure value of the pressing operation received by the frame of the terminal is larger than a first preset pressure, and popping up the floating window.
In the present embodiment, the number of the accommodated floating windows is one or more.
When the number of the floating window is one, the pop-up floating window comprises the following three implementation modes: in one possible implementation, all interfaces of the floating window are popped up; in one possible implementation, a portion of the interface of the floating window (e.g., the title portion of the floating window) pops up; in a possible implementation manner, the interface of the floating window is popped up gradually according to the pressing duration, and the size of the popped up interface of the floating window is larger as the pressing duration is longer until all the interfaces of the floating window are popped up. And if the pressing time is short, popping up part of the interface of the floating window.
When the quantity of floating the window is a plurality of, pop out floating the window and specifically include: and popping up a plurality of floating windows in a tiled arrangement or gradient arrangement mode.
The tiling arrangement refers to popping up a plurality of floating windows from left to right, or from right to left, or from top to bottom, or from bottom to top according to a preset interval. Fig. 3 (a) shows that the plurality of floating windows pop up in order from left to right at a preset horizontal interval, and fig. 3 (b) shows that the plurality of floating windows pop up in order from top to bottom at a preset vertical interval.
The gradient arrangement differs from the tiled arrangement in that: and after the first floating window moves downwards for a preset vertical distance, the first floating window moves rightwards for a preset horizontal distance to obtain the position of the second floating window, and the position of the subsequent floating window is determined according to the same rule. Of course, the moving direction may be first downward and then leftward, or first upward and then rightward, or first upward and then leftward, which is not limited in this embodiment. Fig. 4 shows that a plurality of floating windows are popped up in gradient at a preset vertical interval and a preset horizontal interval.
Optionally, the floating windows are popped up in a tiled arrangement or gradient arrangement mode according to the preset priority of the floating windows.
As shown in fig. 4, the floating windows pop up in gradient according to a preset priority and a preset gradient distance (a preset vertical distance and a preset horizontal distance), and the priority order of the floating windows is as follows: the floating window 4, the floating window 3, the floating window 2 and the floating window 1. The user can obtain the specific content of each floating window through the title information of the floating windows popped up in the gradient mode, and the floating window needing to be displayed in a full screen mode is conveniently selected.
It should be noted that the preset gradient distance is greater than the minimum clickable distance of the terminal, so that a user can conveniently select and drag a floating window to be displayed from a plurality of floating windows popped up by the gradient.
In one possible case, the preset priority is related to the accommodating sequence of the floating windows. For example, for a plurality of floating windows, the user selects the floating windows in sequence, and stores each floating window in the edge of the display interface in sequence, wherein the priority of the floating window stored first is low, and the priority of the floating window stored last is high.
In another possible scenario, the preset priority is associated with the opening order of the floating windows. For example, for a plurality of floating windows, a user receives the plurality of floating windows at one time, and uniformly receives the plurality of floating windows at the edge of the display interface, and according to the order of opening the floating windows, the priority of the floating window which is opened first is low, and the priority of the floating window which is opened last is high.
It should be noted that, because the size of the display interface is limited, the number of the floating windows popped up in the gradient has an upper limit, that is, if the number of the floating windows exceeds a preset threshold, after a plurality of floating windows pop up, an overlapping situation may occur, that is, a plurality of floating windows with lower priorities will overlap together.
Optionally, the tiling pitch or gradient difference of the popped floating windows is gradually increased according to the pressing duration. That is to say, press down for a long time, preset horizontal interval and/or preset vertical interval between a plurality of floating windows is big more, and the user presses down for a long time and adjusts the preset horizontal interval and/or preset vertical interval of a plurality of floating windows, and convenience of customers flexibly controls the distance of a plurality of floating windows, enriches user interaction experience.
Optionally, the pop-up position of the one or more floating windows may be any one of a left side edge, a right side edge, an upper side edge, and a lower side edge of the display interface, and the embodiment is not particularly limited.
Alternatively, the pop-up position of one or more floating windows may be different from the stowed position. For example, the user may receive one or more floating windows at the upper edge of the display interface by pressing the upper border of the display interface of the terminal, and then the user may pop the one or more floating windows out from the lower edge of the display interface (the pop-up position is different from the received position) or pop the one or more floating windows out from the upper edge of the display interface (the pop-up position and the received position are the same) by pressing the lower border of the display interface of the terminal.
In this embodiment, the user may trigger the pop-up of the accommodated one or more floating windows by pressing the border on any side of the terminal, without limiting the accommodating position of the accommodated one or more floating windows. Optionally, the user may also pop up the floating window accommodated at the edge of the corresponding side by pressing the frames at different sides of the terminal. Taking the terminal horizontal screen state as an example, a user presses a side frame on the upper side of the terminal, and a floating window accommodated at the edge on the upper side of the display interface pops up; the user presses the side frame of the lower side of the terminal, and the floating window accommodated at the edge of the lower side of the display interface pops up.
Of course, the floating window can be popped up according to the touch operation of the terminal display interface besides triggering the popping-up of the floating window according to the pressing operation of the terminal frame. Specifically, the touch operation includes, but is not limited to, a sliding operation, for example, an operation of receiving a user sliding down from an upper edge of the display interface, or an operation of receiving a user sliding left from a right edge of the display interface.
It should be noted that, in this embodiment, the terminal may be any existing device with an on-screen display, such as a PC, a smart phone, a PSP, an MP4, and the floating window may be any existing movable display object, such as a text dialog box, a video dialog box, a display window of another application, and the like. Of course, in the embodiment of the present invention, the terminal includes, but is not limited to, the above-mentioned device, and the floating window includes, but is not limited to, the above-mentioned display object.
According to the control method of the floating window, when a user triggers the floating window to be stored, the terminal obtains first storage indication information of the floating window, the floating window is stored at the edge of a display interface of the terminal according to the first storage indication information, a pressure value of a pressing operation received by a frame of the terminal is responded to be larger than a first preset pressure, and the stored floating window is popped up. Therefore, this embodiment no matter whether the user knows the minimum clickable area of floating window, the floating window can be accomodate in the edge of display interface, and the floating window after accomodating no longer occupies the bottom display content at the edge of display interface promptly to realize full screen visualization, promoted user's operation experience.
Optionally, on the basis of the foregoing embodiment, after S103, the control method further includes:
and responding to a preset gesture operation received by a user interface of the terminal, and displaying the floating window selected by the user on the user interface in a full screen mode.
The preset gesture operation comprises clicking, double clicking and dragging.
In a possible implementation manner, after the terminal displays the floating window selected by the user on the terminal display interface in a full screen manner, the terminal automatically stores other popped floating windows into the original edge. The above mode has reduced the space that other floating windows that have not selected occupy the display interface bottom content, makes the display interface more fresh and cool.
Example two
Fig. 5 is a flowchart of a second embodiment of a control method for a floating window of the present invention, and as shown in fig. 5, the control method provided in this embodiment mainly describes a method for accommodating a floating window, and may include the following steps:
s201, acquiring first storage indication information of the floating window;
the first containing indication information comprises floating window moving direction information. For example, the user triggers the first storage indication information by clicking and dragging. When a plurality of floating windows are selected, the selected floating windows are moved in a click-and-drag mode after the plurality of floating windows are selected.
If the terminal is a mobile terminal, the user can click and drag the movable floating window through a finger or a stylus. If the terminal is a PC, the user can click and drag the movable floating window through a mouse.
S202, according to the floating window moving direction information in the first storage indication information, the floating window is stored at the edge of the terminal display interface pointed by the floating window moving direction.
In this embodiment, the first storage indication information acquired by the terminal may include floating window moving direction information, where the floating window moving direction information may be a direction of a trend of moving the floating window by a user.
For example, if the moving direction of the floating window included in the first storage instruction information acquired by the terminal is the upper side of the screen, the terminal stores the floating window at the edge of the upper side of the terminal display interface, and the edge position of the upper side of the terminal display interface has a prompt function to prompt the user that the floating window is stored at the edge of the upper side of the display interface. If the moving direction of the floating window contained in the first storage indication information acquired by the terminal is the right side of the screen, the terminal stores the floating window at the edge of the right side of the terminal display interface, and the edge position of the right side of the terminal display interface has a prompt function so as to prompt a user that the floating window is stored at the edge of the right side of the display interface.
According to the control method of the floating window, a user triggers the floating window to be stored in a clicking and dragging mode, the terminal obtains first storage indication information of the floating window, the first storage indication information comprises floating window moving direction information, and the floating window is stored at the edge of a display interface pointed by the floating window moving direction according to the floating window moving direction information. Therefore, in this embodiment, regardless of whether the user knows the minimum clickable area of the floating window, the floating window is stored at the edge of the display interface pointed by the moving direction of the floating window, that is, the stored floating window does not occupy the bottom display content at the edge of the display interface, so that full-screen visualization is realized, and the operation experience of the user is improved.
EXAMPLE III
Fig. 6 is a flowchart of a third embodiment of a floating window control method of the present invention, fig. 7 is a schematic diagram of a first position of a pressure sensor on a terminal provided by the present invention, and fig. 8 is a schematic diagram of a second position of the pressure sensor on the terminal provided by the present invention.
As shown in fig. 6, the control method provided in this embodiment mainly describes a method for accommodating a floating window, and may include the following steps:
s301, acquiring first accommodation indication information of the floating window;
the first containing indication information comprises side pressing information of the terminal.
It should be noted that the terminal of the present embodiment includes a pressure sensor disposed at a side of the terminal. The terminal is in a horizontal screen state, and the pressure sensors can be arranged on the upper side and the lower side of the terminal. Correspondingly, when the terminal is in the vertical screen state, the pressure sensors may be disposed on the left and right sides of the terminal, as shown in fig. 5.
Optionally, no matter the terminal is in the landscape screen state or the portrait screen state, the pressure sensors are respectively disposed on the upper, lower, left, and right sides of the terminal, for example, for a future foldable mobile phone, the shape of the mobile phone screen may be a square, and then the pressure sensors may be disposed on all four sides, as shown in fig. 6. The user can trigger the accomodation to the floating window through pressing the side of terminal.
S302, according to the side pressing information in the first storage indication information, the floating window is stored at the edge of a preset terminal display interface.
In this embodiment, the first storage indication information acquired by the terminal may include terminal side pressing information, where the side pressing information may be pressing of one side of the terminal by the user, or pressing of two sides of the terminal by the user, for example, pressing of the upper and lower sides of the terminal by the user. Optionally, the pressing may be a short pressing or a long pressing, and may also be two times of continuous pressing, and for a specific pressing manner, this embodiment is not specifically limited.
The user presses the side edge of the terminal according to a preset pressing mode, the terminal acquires first storage indication information comprising side edge pressing information, and the floating window is stored at the edge of a preset terminal display interface according to the first storage indication information. The preset edge of the terminal display interface may be any one of the edges of the upper side, the lower side, the left side and the right side of the display interface, which is not limited in this embodiment. That is to say, the terminal can accommodate the floating window in any one of the above edges of the display interface according to the preset accommodation rule.
Optionally, when the floating windows are multiple, all the floating windows are accommodated at the edge of the same side.
Alternatively, the pressing of different sides may correspond to the edges of different sides. Taking the terminal in a horizontal screen state as an example, a user presses the side edge of the upper side of the terminal, and the selected floating window is correspondingly accommodated in the edge of the upper side of the display interface; the user presses the side edge of the lower side of the terminal, and the selected floating window is correspondingly accommodated at the edge of the lower side of the display interface.
According to the control method of the floating window, a user triggers the floating window to be stored by pressing the side edge of the terminal, the terminal obtains first storage indication information of the floating window, the first storage indication information comprises terminal side edge pressing information, and the floating window is stored at the edge of a preset terminal display interface according to the terminal side edge pressing information. Therefore, this embodiment regardless of whether the user knows the minimum clickable area of floating window, floating window can be accomodate in the edge that the preset display interface was pressed to the side, and the floating window after accomodating no longer occupies the bottom display content at display interface edge promptly to realize full screen visualization, promoted user's operation experience.
The embodiment of the invention also provides a control device of the floating window. Fig. 9 is a schematic structural diagram of a control device of a floating window according to an embodiment of the present invention. As shown in fig. 9, the control device provided in the present embodiment includes: an acquisition module 41 and a processing module 42, wherein
The obtaining module 41 is configured to obtain first receiving indication information of the floating window;
the processing module 42 is configured to store the floating window at an edge of a terminal display interface according to the first storage indication information;
the processing module 42 is further configured to respond that a pressure value of a pressing operation received by a frame of the terminal is greater than a first preset pressure, and pop up the floating window.
Optionally, the first receiving indication information includes floating window moving direction information; the processing module 72 is specifically configured to:
and according to the floating window moving direction information in the first storage indication information, storing the floating window at the edge of a terminal display interface pointed by the floating window moving direction.
Optionally, the first receiving indication information includes side pressing information; the receiving the floating window at the edge of a terminal display interface according to the first receiving indication information comprises:
and according to the side pressing information in the first storage indication information, storing the floating window at the edge of a preset terminal display interface.
Optionally, after popping up the floating window, the processing module 42 is further configured to:
and responding that the pressure value of the pressing operation received by the frame of the terminal is greater than a second preset pressure, and accommodating the floating window.
Optionally, when the number of the floating windows is one, the processing module 42 is specifically configured to:
popping up all or part of the interface of the floating window, or
And gradually popping up the interface of the floating window according to the pressing duration.
Optionally, when the number of the floating windows is multiple, the processing module 42 is specifically configured to:
and popping up a plurality of floating windows in a tiled arrangement or gradient arrangement mode.
Optionally, the processing module 42 is specifically configured to:
and popping up a plurality of floating windows in a tiling arrangement or gradient arrangement mode according to the preset priority and the preset interval of the floating windows.
Optionally, the processing module 42 is specifically configured to:
and gradually increasing the tiling interval or gradient difference of the popped floating windows according to the pressing time length.
Optionally, after popping up the floating window, the processing module 42 is further configured to:
responding to a preset gesture operation received by a user interface of the terminal, and displaying a floating window selected by a user on the user interface in a full screen mode; the preset gesture operation comprises clicking, double clicking and dragging.
The control device of the floating window provided in this embodiment may execute the method steps corresponding to the above embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
The embodiment of the invention also provides the electronic equipment. Fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 10, the electronic apparatus includes:
a touch screen 51, a side pressure sensor 52, and a control device 53 for a floating window according to any of the above embodiments. Wherein,
a side pressure sensor 52 may be provided on at least one side of the electronic device, and the user triggers the function of stowing or ejecting the floating window by pressing the side of the electronic device.
The floating window control device 53 is configured to perform the method steps corresponding to any of the above-described embodiments.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method provided in any implementation manner in the foregoing method embodiments.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A control method of a floating window is applied to a terminal capable of presenting a graphical user interface, and is characterized by comprising the following steps:
acquiring first storage indication information of the floating window;
the floating window is stored in a visual area at the edge of a terminal display interface in a slightly-reduced form according to the first storage indication information, and the visual area is used for displaying icons or titles of the stored floating window;
responding that the pressure value of the pressing operation received by the frame of the terminal is larger than a first preset pressure, and popping up the floating window;
when the quantity of floating the window is one, pop out the floating the window, include:
popping up all or part of the interface of the floating window, or gradually popping up the interface of the floating window according to the pressing duration;
when the quantity of floating the window is a plurality of, pop out float the window, include:
and popping up a plurality of floating windows in a tiled arrangement or gradient arrangement mode.
2. The method according to claim 1, wherein the first housing indication information includes floating window moving direction information; the accommodating the floating window in a visual area at the edge of a terminal display interface in a slightly-contracted form according to the first accommodating indication information comprises:
and according to the floating window moving direction information in the first accommodating indication information, accommodating the floating window in a visual area of the edge of a terminal display interface pointed by the floating window moving direction in a slightly-contracted mode.
3. The method according to claim 1, wherein the first housing indication information includes side press information; the accommodating the floating window in a visual area at the edge of a terminal display interface in a slightly-contracted form according to the first accommodating indication information comprises:
and according to the side pressing information in the first accommodating indication information, accommodating the floating window in a visual area at the edge of a preset terminal display interface in a slightly-contracted mode.
4. The method of claim 1, wherein after said popping up said floating window, said method further comprises:
and responding that the pressure value of the pressing operation received by the frame of the terminal is greater than a second preset pressure, and accommodating the floating window.
5. The method of claim 1, wherein popping out a plurality of floating windows in a tiled arrangement or a gradient arrangement comprises:
and popping up a plurality of floating windows in a tiling arrangement or gradient arrangement mode according to the preset priority of the floating windows.
6. The method of claim 1, wherein popping out a plurality of floating windows in a tiled arrangement or a gradient arrangement comprises:
and gradually increasing the tiling interval or gradient difference of the popped floating windows according to the pressing time length.
7. The method of claim 1, wherein after said popping up said floating window, said method further comprises:
responding to a preset gesture operation received by a user interface of the terminal, and displaying a floating window selected by a user on the user interface in a full screen mode; the preset gesture operation comprises clicking, double clicking and dragging.
8. A control device for a floating window, comprising:
the acquisition module is used for acquiring first storage indication information of the floating window;
the processing module is used for accommodating the floating window in a visual area at the edge of a terminal display interface in a contraction mode according to the first accommodating indication information, and the visual area is used for displaying an icon or a title of the accommodated floating window;
the processing module is further configured to respond that a pressure value of a pressing operation received by a frame of the terminal is greater than a first preset pressure, and pop up the floating window;
the processing module is specifically configured to: when the number of the floating windows is one, popping up all or part of interfaces of the floating windows, or gradually popping up the interfaces of the floating windows according to the pressing duration;
the processing module is further specifically configured to: when the number of the floating windows is multiple, popping up the multiple floating windows in a tiling arrangement or gradient arrangement mode.
9. An electronic device, comprising: a touch screen, a side pressure sensor, and a control device for a floating window according to claim 8.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN201910541347.XA 2019-06-21 2019-06-21 Floating window control method, device, equipment and storage medium Active CN110262720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910541347.XA CN110262720B (en) 2019-06-21 2019-06-21 Floating window control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910541347.XA CN110262720B (en) 2019-06-21 2019-06-21 Floating window control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110262720A CN110262720A (en) 2019-09-20
CN110262720B true CN110262720B (en) 2021-06-08

Family

ID=67920275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910541347.XA Active CN110262720B (en) 2019-06-21 2019-06-21 Floating window control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110262720B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273829A (en) * 2020-02-07 2020-06-12 北京嘀嘀无限科技发展有限公司 Information processing method based on interactive interface and electronic equipment
CN111142729B (en) * 2019-12-26 2021-07-02 支付宝(杭州)信息技术有限公司 Target object recommendation method and device
CN111773672B (en) * 2020-07-13 2024-02-09 网易(杭州)网络有限公司 Information display method and device and electronic equipment
CN116820314A (en) * 2021-09-22 2023-09-29 荣耀终端有限公司 Suspended window display method and electronic equipment
CN113970990B (en) * 2021-10-21 2024-02-23 网易(杭州)网络有限公司 Suspension window display method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038546A (en) * 2006-03-15 2007-09-19 三星电子株式会社 User interface method of multi-tasking and computer readable recording medium storing program for executing the method
CN102460370A (en) * 2009-06-08 2012-05-16 苹果公司 User interface for multiple display regions
CN108415752A (en) * 2018-03-12 2018-08-17 广东欧珀移动通信有限公司 Method for displaying user interface, device, equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7665031B2 (en) * 2004-12-08 2010-02-16 Microsoft Corporation Method and system of taskbar button interfaces
US7673255B2 (en) * 2005-04-22 2010-03-02 Microsoft Corporation Interface and system for manipulating thumbnails of live windows in a window manager
US20090138819A1 (en) * 2007-11-26 2009-05-28 A Foundry Technology Co., Ltd. Window switch system
CN104808919A (en) * 2015-04-29 2015-07-29 努比亚技术有限公司 Interface display control method and device
CN106354414B (en) * 2016-09-09 2020-05-08 惠州Tcl移动通信有限公司 Webpage browsing method and system based on side pressure induction of mobile terminal
CN106843640A (en) * 2016-12-26 2017-06-13 珠海市魅族科技有限公司 A kind of control method and handheld terminal for showing the page

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038546A (en) * 2006-03-15 2007-09-19 三星电子株式会社 User interface method of multi-tasking and computer readable recording medium storing program for executing the method
CN102460370A (en) * 2009-06-08 2012-05-16 苹果公司 User interface for multiple display regions
CN105718139A (en) * 2009-06-08 2016-06-29 苹果公司 User Interface For Multiple Display Regions
CN108415752A (en) * 2018-03-12 2018-08-17 广东欧珀移动通信有限公司 Method for displaying user interface, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110262720A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN110262720B (en) Floating window control method, device, equipment and storage medium
CN107341018B (en) Method and device for continuously displaying view after page switching
KR102127766B1 (en) Method and electronic device for displaying application
US8760557B2 (en) User interface for a digital camera
US8423995B2 (en) Electronic device and user interface display method thereof
US8947375B2 (en) Information processing device, information processing method, and information processing program
US20120198386A1 (en) Causing display of thumbnail images
EP2985685A1 (en) Icon arrangement method, apparatus, and device
US8952912B1 (en) Selection of elements on paginated touch sensitive display
KR20140027353A (en) Desktop as immersive application
US20120204125A1 (en) User interface incorporating sliding panels for listing records and presenting record content
KR102163991B1 (en) Method and apparatus for selecting an item of mobile terminal
CN108475172B (en) Information display method and device and terminal equipment
US20190317658A1 (en) Interaction method and device for a flexible display screen
US8947464B2 (en) Display control apparatus, display control method, and non-transitory computer readable storage medium
CN106201234A (en) The inspection method of content of pages and device
EP4294025A1 (en) Screen recording method and apparatus, electronic device, and storage medium
KR20140043360A (en) Display of immersive and desktop shells
US20180152622A1 (en) Mobile terminal-based photographing method and mobile terminal
CN105210023A (en) Apparatus and associated methods
AU2013210189A1 (en) System and method for displaying pages on mobile device
CN105224187A (en) Menu execution control method and terminal equipment
CN103942094B (en) Method and electronic device for displaying applications
US9785334B2 (en) Method for editing frame-based page, electronic apparatus and recording medium using the same
US20130311934A1 (en) Method for displaying multi menu pages in one window of multi-touch-sensitive display unit of computing device and computing device applying the method

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