CN115454308A - Floating window display method and device and terminal equipment - Google Patents

Floating window display method and device and terminal equipment Download PDF

Info

Publication number
CN115454308A
CN115454308A CN202110559970.5A CN202110559970A CN115454308A CN 115454308 A CN115454308 A CN 115454308A CN 202110559970 A CN202110559970 A CN 202110559970A CN 115454308 A CN115454308 A CN 115454308A
Authority
CN
China
Prior art keywords
floating window
mode
display
content
user
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.)
Pending
Application number
CN202110559970.5A
Other languages
Chinese (zh)
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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202110559970.5A priority Critical patent/CN115454308A/en
Publication of CN115454308A publication Critical patent/CN115454308A/en
Pending legal-status Critical Current

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/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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The embodiment of the application provides a floating window display method, a device and terminal equipment, wherein the method comprises the following steps: overlaying a display suspension window on the main interface; switching a display mode of the floating window in response to a first touch operation on a mode switching control area of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode. Therefore, the suspended window can be switched to the shielding mode or the penetrating mode through the first touch operation of the mode switching control area, when the suspended window is displayed in the penetrating mode, the transparency of the suspended window is high, the related content of the shielded area of the main interface can be conveniently displayed at the same time, and the display effect of the displayed suspended window is improved.

Description

Floating window display method and device and terminal equipment
Technical Field
The present application relates to the field of communications, and in particular, to a floating window display method and apparatus, and a terminal device.
Background
In the existing floating window technology, a main interface and a floating window can be displayed on the same screen at the same time. When the screen displays the main interface, if the application program is started, the floating window corresponding to the application program is superposed and displayed on the main interface, and the floating window can shield a partial area of the main interface. The problem that in the prior art, the display effect is poor in the process of displaying the floating window is caused by the fact that the main interface shielded area cannot display specific content and cannot view related content of the shielded area.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present application provide a floating window display method, a device and a terminal device.
In a first aspect, an embodiment of the present application provides a floating window display method, which is applied to a terminal device, and the method includes:
overlaying a display suspension window on the main interface;
switching a display mode of the floating window in response to a first touch operation on a mode switching control area of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode.
Optionally, the floating window display method further includes:
and under the condition that the floating window is displayed in the penetrating mode and a second touch operation is received in a content display area of the floating window, responding to the second touch operation by a control at a corresponding position on the main interface.
Optionally, the floating window displaying method further includes:
when the floating window is triggered to be displayed in an overlapping mode, detecting the current content of the content display area;
when the current content is the complete watching content of a preset user, the floating window is displayed in the shielding mode;
and when the current content is the content which is ignored by a preset user, the floating window is displayed in the penetration mode.
Optionally, the floating window display method further includes:
acquiring user habit information of a user for adjusting a floating window corresponding to display content into an occlusion mode or a penetration mode;
and when the floating window corresponding to the display content is started again, determining the display mode of the floating window according to the user habit information.
Optionally, the determining, by the user habit information, the number of consecutive accumulated times that the floating window corresponding to the display content is adjusted to the specific display mode by the user, and the determining, according to the user habit information, the display mode of the floating window includes:
when the continuous accumulated times of adjusting the floating window corresponding to the display content to the specific display mode is larger than or equal to the preset accumulated times, and when the floating window corresponding to the display content is started again, the floating window is determined to be displayed in the specific display mode.
Optionally, the main interface is an application program interface or a system desktop.
Optionally, the preset transparency is transparency set by a user or a default transparency.
In a second aspect, an embodiment of the present application provides a floating window display device, which is applied to a terminal device, where the floating window display device includes:
the display module is used for overlaying and displaying the floating window on the main interface;
the switching module is used for responding to a first touch operation aiming at a mode switching control area of the floating window and switching a display mode of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode.
Optionally, the apparatus further comprises:
and the processing module is used for responding to a second touch operation by a control at a corresponding position on the main interface under the conditions that the floating window is displayed in the penetrating mode and a content display area of the floating window receives the second touch operation.
Optionally, the apparatus further comprises:
the detection module is used for detecting the current content of the content display area when the floating window is triggered and displayed in an overlapping mode;
the processing module is further configured to display the floating window in the occlusion mode when the current content is a preset user complete viewing content;
and when the current content is the content which is ignored by a preset user, the floating window is displayed in the penetration mode.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring user habit information of a user for adjusting the floating window corresponding to the display content into an occlusion mode or a penetration mode;
and the processing module is further used for determining the display mode of the floating window according to the user habit information when the floating window corresponding to the display content is restarted.
Optionally, the user habit information is a continuous cumulative number of times that the user adjusts the floating window corresponding to the display content to the specific display mode, and the processing module is further configured to determine that the floating window is displayed in the specific display mode when the continuous cumulative number of times that the floating window corresponding to the display content is adjusted to the specific display mode is greater than or equal to a preset cumulative number of times and the floating window corresponding to the display content is restarted.
Optionally, the main interface is an application program interface or a system desktop.
Optionally, the preset transparency is transparency set by a user or transparency set by default.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory and a processor, where the memory is used to store a computer program, and the computer program executes the floating window display method provided in the first aspect when the processor runs.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program runs on a processor, the floating window displaying method provided in the first aspect is executed.
According to the floating window display method, the floating window display device and the terminal equipment, the floating window is displayed on the main interface in an overlapping mode; switching a display mode of the floating window in response to a first touch operation on a mode switching control area of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode. Therefore, the suspended window can be switched to the shielding mode or the penetrating mode through the first touch operation of the mode switching control area, when the suspended window is displayed in the penetrating mode, the transparency of the suspended window is high, the related content of the shielded area of the main interface can be conveniently displayed at the same time, and the display effect of the displayed suspended window is improved.
Drawings
To more clearly illustrate the technical solutions of the present application, the drawings required for use in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope of the present application. Like components are numbered similarly in the various figures.
FIG. 1 is a diagram illustrating an effect of displaying a floating window in a screen overlapping manner in the prior art;
FIG. 2 is a flow chart illustrating a floating window displaying method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a display state of a main interface overlay display floating window provided in the embodiment of the present application;
FIG. 4 is a schematic diagram illustrating another display state of a main interface overlapping display floating window provided by the embodiment of the application;
FIG. 5 shows another flow diagram of a floating window display method provided herein;
FIG. 6 shows another flow diagram of a floating window display method provided herein;
FIG. 7 is a schematic view of a floating window display device provided in the present application;
FIG. 8 is a schematic view of another embodiment of the floating window display device provided herein;
FIG. 9 is a schematic view of another embodiment of the floating window display device provided herein;
fig. 10 shows a schematic structural diagram of the terminal device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present application, are intended to indicate only specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments.
Referring to fig. 1, in the prior art, two interfaces, namely a main interface 101 and a floating window 102, are simultaneously displayed on the same screen, and the floating window 102 is displayed on the main interface 101 in an overlapping manner. The main interface 101 and the floating window 102 are both in a foreground running state and can respond to user operations. The floating window 102 may cause an occlusion to the primary interface 101. If the user wants to see what is blocked by the floating window 102, the floating window 102 must be moved to another location. On one hand, after the position of the floating window 102 is moved, the floating window 102 still blocks a new main interface, so that the operation of moving the floating window 102 is very inconvenient, and the probability of misoperation is high. On the other hand, the touch operation cannot be performed in the area of the home interface 101 blocked by the floating window 102. In summary, the prior art has the problem of poor display effect and poor touch operation effect in the process of displaying the floating window.
Example 1
The embodiment of the disclosure provides a floating window display method, which is applied to terminal equipment.
Specifically, as shown in fig. 2, the floating window display method includes:
step S201, superposing and displaying a floating window on a main interface;
step S202, in response to a first touch operation on a mode switching control area of the floating window, switching a display mode of the floating window, where the display mode of the floating window includes an occlusion mode or a penetration mode, and a transparency of the penetration mode is higher than a transparency of the occlusion mode.
In this embodiment, the main interface is an application interface or a system desktop. For example, a full screen display window of an application program can serve as a main interface, and a system desktop of the terminal device can serve as the main interface. The terminal device may be a mobile terminal, and the mobile terminal may include a mobile phone, a tablet computer, and the like.
Referring to fig. 3, a main interface 301 and a floating window 302 are simultaneously displayed on a screen of the terminal device, and the floating window 302 is displayed on the main interface 301 in an overlapping manner. The main interface 301 includes a control display area 3011 and a virtual key display area 3012, where the control display area 3011 displays a plurality of controls, and fig. 3 exemplarily illustrates a first control 30111, a second control, a third control, a fourth control, a fifth control, a sixth control, a seventh control, an eighth control, and a ninth control. It should be noted that, because the floating window 302 is blocked, numbering of the second control to the ninth control is omitted in fig. 3, and the number of the controls in the main interface 301 is not limited and is determined by actual conditions. The virtual key display region 3012 displays a plurality of virtual keys, for example, a first virtual key 30121. When the main interface 301 is a full screen display window of an application program, the control in the main interface 301 is correspondingly an operable control of the application program. When the main interface 301 is a desktop of a terminal device, the control in the main interface 301 may be an application icon of the desktop, or the like.
In fig. 3, the floating window 302 is in an occlusion mode, and the floating window 302 is not transparent and can occlude the relevant areas of the first to ninth controls in the main interface 301. The floating window 302 includes a mode switching control area 3021 and a content display area 3022. Touch keys, such as a close key represented by a cross key, may be displayed on the mode switching control area 3021. The mode of the floating window 302 is switched by receiving the first touch operation through the mode switching control area 3021. For example, the mode of the floating window 302 shown in fig. 3 is an occlusion mode, and if the mode switching control area 3021 of the floating window 302 receives the first touch operation, the mode of the floating window 302 is adjusted to be a transparent mode display. In the transparent mode, the transparency of the floating window 302 is a preset transparency, and the specific content of the main interface overlapped by the floating window 302 can be seen.
In fig. 3, the content display area 3022 includes a first display area 30221 and a second display area 30222. The first display area 30221 is used to display video files and the second display area 30222 is used to display brief description information associated with video files. For example, if the floating window 302 is a floating window of a video playback program, the first display area 30221 plays a video file, the second display area 30222 displays episode information of the played file, and the episode 25, the selectable 21, 22, 23, and 24 episodes are played.
In this embodiment, when the floating window is displayed in the transparent mode, the floating window is displayed in an overlapping manner on the main interface with a preset transparency. The preset transparency is transparency set by a user or default transparency. The preset transparency is within a transparency setting range, and in the transparency setting range, a user can clearly see the content of the main interface, so that the display effect of the main interface is improved. For example, the transparency setting may range between 40% and 100%. In one embodiment, the preset transparency may be 50%, and the preset transparency may be 50%, which may both ensure that the user views the content of the main interface and facilitate the user to refer to the content of the floating window.
Referring to fig. 4, a main interface 401 and a floating window 402 are simultaneously displayed on a screen of the terminal device, the floating window 402 is displayed on the main interface 401 in an overlapped manner, a mode of the floating window 402 is a transparent mode, and at this time, a transparency of the floating window 402 is a preset transparency. For example, the preset transparency may be 50% or other values, so as to facilitate the user to view the content of the overlapping area between the floating window 402 and the main interface 401.
The main interface 401 includes a control display area 4011 and a virtual key display area 4012, and a plurality of controls are displayed in the control display area 4011. In fig. 4, a first control, a second control, a third control, a fourth control, a fifth control, a sixth control, a seventh control, an eighth control, and a ninth control 40111 are exemplarily drawn. It should be noted that, in fig. 4, for simplicity, only the ninth control is numbered, and the first to eighth controls are not numbered. When the main interface 401 is a full-screen display window of an application program, the control in the main interface 401 is an operable control of the application program, and the number of the controls is not limited. When the main interface 401 is a desktop of the terminal device, the control in the main interface 401 may be an application icon of the desktop, and the number of the application icons of the desktop is determined according to an actual situation.
In this embodiment, if the mode switch control area 4021 of the floating window 402 receives the first touch operation, the mode of the floating window 402 is adjusted to the shielding mode. Therefore, the switching between the shielding mode and the penetrating mode by a user can be realized, and the flexibility of the suspended window mode switching is improved. The suspended window can be switched to the shielding mode or the penetrating mode through the first touch operation of the mode switching control area, when the suspended window is displayed in the penetrating mode, the transparency of the suspended window is high, the related content of the shielded area of the main interface can be conveniently displayed at the same time, and the display effect of the displayed suspended window is improved.
Optionally, the floating window displaying method further includes:
and under the condition that the floating window is displayed in the penetrating mode and a second touch operation is received in a content display area of the floating window, responding to the second touch operation by a control at a corresponding position on the main interface.
For example, in fig. 4, the mode of the floating window 402 is a penetrating mode, and the user can see the first control, the second control, the third control, the fourth control, the fifth control, and the sixth control in the main interface 401. When the user performs a touch operation on the floating window 402 and the floating window 402 receives the second touch operation 4013, the control at the touch position of the main interface 401 corresponding to the second touch operation 4013 is the fifth control, and the fifth control responds to the second touch operation 4013, so that the operation on the main interface is realized.
Therefore, when the floating window is displayed in a penetrating mode, the content display area of the floating window is an untouchable area, a user can perform touch operation on the corresponding area of the main interface overlapped with the floating window, the corresponding control in the main interface is directly operated, and the convenience in operation is improved.
Optionally, referring to fig. 5, the floating window displaying method further includes:
and step S203, detecting the current content of the content display area when the floating window is triggered to be displayed in an overlapping mode.
In an embodiment, a preset touch operation may trigger the terminal device to display the floating window in an overlapping manner. The floating window may be a movable window generated after the application program is started, and may be a floating window of a video playing application program or a game application program. The current content of the content display area may be determined according to an operation period of the video playing application or the game application. For example, the video playing time is detected, and the current content of the content display area is determined according to the video head time, the video tail time and the video feature time. For another example, the game running time period is detected, and the current content of the content display area is determined according to the game normal running time period and the game on-hook time period.
And step S204, when the current content is the complete watching content of the preset user, displaying the floating window in the shielding mode.
In this embodiment, the content display area of the floating window can display various types of content, some content is important for the user and is what the user needs to see the complete content, and some content is what the user can ignore and is not very interested in. The contents to be displayed in the content display area can be classified in advance into the preset complete user watching contents and the preset neglected user contents. The user use scene can be integrated, and default setting is carried out on the complete watching content of the preset user and the neglected content of the preset user. The user can also carry out self-defining setting on the complete watching content of the preset user and the neglected content of the preset user so as to meet the self requirement of the user.
In this embodiment, the floating window may be a window of a video playing application or a game application.
Optionally, the preset user complete viewing content includes a video feature and a game running interface. The preset user neglected content comprises a video title, a video trailer, an advertisement interface, a video loading interface and a game on-hook interface.
Therefore, when the current content is the preset complete content watched by the user, the floating window is displayed in a shielding mode, the user can watch the complete content from the content display area conveniently, and the display effect is improved. When the current content is the content ignored by the preset user, the floating window is displayed in a penetration mode, the content of the main interface can be conveniently displayed, the main interface can be conveniently touched, and the display effect and the touch flexibility of the main interface are improved.
Step S205, when the current content is a preset user neglected content, the floating window is displayed in the penetration mode.
Therefore, when the current content is the content ignored by the preset user, the floating window is displayed in a penetration mode, the user can conveniently operate the control of the main interface, and the operation convenience of the main interface is improved.
It should be noted that, step S204 and step S205 are implemented by selecting one step according to the specific type of the current content, in one embodiment, step S204 is executed, in another embodiment, step S205 is executed, and the order of execution is not limited by the flowchart.
Optionally, referring to fig. 6, the method for displaying a floating window further includes:
step S207, acquiring the user habit information that the user adjusts the floating window corresponding to the display content to be in the shielding mode or the penetrating mode.
In this embodiment, the user habit information may be a user-defined selection performed on the floating window, for example, the user habit information defaults to the blocking mode for the floating window, and the user habit information defaults to the penetrating mode for the floating window. The user habit information may be the number of times that the floating window corresponding to the display content is adjusted to the transparent mode or the continuous accumulation of the transparent mode by the user, which is not limited herein.
And step S208, when the floating window corresponding to the display content is started again, determining the display mode of the floating window according to the user habit information.
Optionally, the determining, by the user habit information, the number of consecutive accumulated times that the floating window corresponding to the display content is adjusted to the specific display mode by the user, and the determining, according to the user habit information, the display mode of the floating window includes:
when the continuous accumulated times of adjusting the floating window corresponding to the display content to be in the specific display mode is larger than or equal to the preset accumulated times, and when the floating window corresponding to the display content is started again, the floating window is determined to be displayed in the specific display mode.
Therefore, when the suspended window is started again, whether the suspended window is displayed in a shielding mode or a penetrating mode can be determined according to the habit information of the user, the intelligent degree of the display mode of the suspended window is improved, and the using habit of the user is met.
In the floating window display method provided by this embodiment, a floating window is displayed on a main interface in an overlapping manner; and switching the display mode of the floating window in response to a first touch operation aiming at the mode switching control area of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode. Therefore, the floating window can be switched to the shielding mode or the penetrating mode through the first touch operation of the mode switching control area, when the floating window is displayed in the penetrating mode, the transparency of the floating window is high, the related content of the shielded area of the main interface can be conveniently displayed at the same time, and the display effect of the floating window is improved.
Example 2
In addition, the embodiment of the disclosure provides a floating window display device, which is applied to terminal equipment.
Specifically, as shown in fig. 7, the floating window display device 700 includes:
a display module 701, configured to overlay and display a floating window on a main interface;
a switching module 702, configured to switch a display mode of the floating window in response to a first touch operation on a mode switching control area of the floating window, where the display mode of the floating window includes an occlusion mode or a penetration mode, and a transparency of the penetration mode is higher than a transparency of the occlusion mode.
Optionally, referring to fig. 8, the floating window display device 700 further includes:
the processing module 703 is configured to respond to a second touch operation by a control at a corresponding position on the main interface when the floating window is displayed in the penetrating mode and a content display area of the floating window receives the second touch operation.
Optionally, referring to fig. 9, the floating window display device 700 further includes:
a detecting module 704, configured to detect current content of the content display area;
the processing module 703 is further configured to display the floating window in the occlusion mode when the current content is a preset content that is completely viewed by the user; alternatively, the first and second liquid crystal display panels may be,
and when the current content is the content which is ignored by a preset user, the floating window is displayed in the penetration mode.
Optionally, referring to fig. 9, the floating window display device 700 further includes:
an obtaining module 705, configured to obtain user habit information of a user that adjusts a floating window corresponding to display content to an occlusion mode or a penetration mode;
the processing module 703 is further configured to determine a display mode of the floating window according to the user habit information when the floating window corresponding to the display content is restarted.
Optionally, the user habit information is a continuous accumulated number of times that the user adjusts the floating window corresponding to the display content to the specific display mode, and the processing module 703 is further configured to determine that the floating window is displayed in the specific display mode when the continuous accumulated number of times that the floating window corresponding to the display content is adjusted to the specific display mode is greater than or equal to a preset accumulated number of times and the floating window corresponding to the display content is restarted.
Optionally, the main interface is an application program interface or a system desktop.
Optionally, the preset transparency is transparency set by a user or transparency set by default.
In this embodiment, the floating window display device 700 can implement the floating window display method provided in embodiment 1, and is not described herein again to avoid repetition.
In the floating window display device provided in this embodiment, a floating window is superimposed and displayed on a main interface; and switching the display mode of the floating window in response to a first touch operation aiming at the mode switching control area of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode. Therefore, the suspended window can be switched to the shielding mode or the penetrating mode through the first touch operation of the mode switching control area, when the suspended window is displayed in the penetrating mode, the transparency of the suspended window is high, the related content of the shielded area of the main interface can be conveniently displayed at the same time, and the display effect of the displayed suspended window is improved.
Example 3
Furthermore, an embodiment of the present disclosure provides a terminal device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when running on the processor, executes the floating window display method provided in the above-mentioned method embodiment 1.
Specifically, as shown in fig. 10, the terminal device 1000 provided in this embodiment includes:
a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and a power supply 1111. Those skilled in the art will appreciate that the terminal device architecture shown in fig. 10 is not intended to be limiting, and that the terminal device may include more or fewer components than shown, or some of the components may be combined, or a different arrangement of components. In the embodiment of the present application, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
Wherein, the processor 1010 is configured to: overlaying a display suspension window on the main interface;
switching a display mode of the floating window in response to a first touch operation on a mode switching control area of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode.
Optionally, the processor 1010 is further configured to: and under the condition that the floating window is displayed in the penetrating mode and a second touch operation is received in a content display area of the floating window, responding to the second touch operation by a control at a corresponding position on the main interface.
Optionally, the processor 1010 is further configured to: when the floating window is triggered to be displayed in an overlapping mode, detecting the current content of the content display area;
when the current content is the complete watching content of a preset user, the floating window is displayed in the shielding mode;
and when the current content is the content ignored by the preset user, the floating window is displayed in the penetration mode.
Optionally, the processor 1010 is further configured to: acquiring user habit information of a user for adjusting a floating window corresponding to display content into an occlusion mode or a penetration mode;
and when the floating window corresponding to the display content is started again, determining the display mode of the floating window according to the user habit information.
Optionally, the user habit information is a continuous cumulative number of times that the user adjusts the floating window corresponding to the display content to the specific display mode, and the processor 1010 is further configured to: when the continuous accumulated times of adjusting the floating window corresponding to the display content to the specific display mode is larger than or equal to the preset accumulated times, and when the floating window corresponding to the display content is started again, the floating window is determined to be displayed in the specific display mode.
Optionally, the main interface is an application program interface or a system desktop.
Optionally, the preset transparency is transparency set by a user or transparency set by default.
It should be understood that, in the embodiment of the present application, the radio frequency unit 1001 may be configured to receive and transmit signals during a process of receiving and transmitting information or a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1010; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 1001 may also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 1002, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
The audio output unit 1003 may convert audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output as sound. Also, the audio output unit 1003 can provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the terminal apparatus 1000. The audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1004 is used to receive audio or video signals. The input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, the Graphics processor 10041 Processing image data of still pictures or video obtained by an image capturing terminal device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be video played on the display unit 1006. The image frames processed by the graphic processor 10041 may be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1001 in case of the phone call mode.
Terminal device 1000 can also include at least one sensor 1005, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 10061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 10061 and/or backlight when the terminal device 1000 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 1005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1006 is used for video playing of information input by the user or information provided to the user. The Display unit 1006 may include a Display panel 10061, and the Display panel 10061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1007 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 10071 (e.g., operations by a user on or near the touch panel 10071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 10071 may include two parts, a touch detection terminal device and a touch controller. The touch detection terminal equipment detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection terminal device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1010, and receives and executes commands sent by the processor 1010. In addition, the touch panel 10071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 10071, the user input unit 1007 can include other input devices 10072. Specifically, the other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 10071 can be overlaid on the display panel 10061, and when the touch panel 10071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 10061 according to the type of the touch event. Although in fig. 10, the touch panel 10071 and the display panel 10061 are two independent components for implementing the input and output functions of the terminal device, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated to implement the input and output functions of the terminal device, which is not limited herein.
The interface unit 1008 is an interface through which an external terminal device is connected to the terminal device 1000. For example, the external terminal device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a terminal device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1008 may be used to receive input (e.g., data information, power, etc.) from an external terminal device and transmit the received input to one or more elements within the terminal device 1000 or may be used to transmit data between the terminal device 1000 and the external terminal device.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, and the like), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1009 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1010 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 1009 and calling data stored in the memory 1009, thereby performing overall monitoring of the terminal device. Processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
Terminal device 1000 can also include a power supply 1111 (e.g., a battery) for providing power to various components, and preferably, power supply 1111 can be logically coupled to processor 1010 via a power management system such that functions such as managing charging, discharging, and power consumption are performed via the power management system.
In addition, the terminal device 1000 includes some functional modules that are not shown, and are not described herein again.
In the terminal device provided in this embodiment, a floating window is superimposed and displayed on a main interface; and switching the display mode of the floating window in response to a first touch operation aiming at the mode switching control area of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode. Therefore, the floating window can be switched to the shielding mode or the penetrating mode through the first touch operation of the mode switching control area, when the floating window is displayed in the penetrating mode, the transparency of the floating window is high, the related content of the shielded area of the main interface can be conveniently displayed at the same time, and the display effect of the floating window is improved.
Example 4
The present embodiments also provide a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of:
overlaying a display suspension window on the main interface;
switching a display mode of the floating window in response to a first touch operation on a mode switching control area of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode.
Optionally, the computer program further implements the following steps when executed by the processor:
and under the condition that the floating window is displayed in the penetrating mode and a second touch operation is received in a content display area of the floating window, responding to the second touch operation by a control at a corresponding position on the main interface.
Optionally, the computer program further realizes the following steps when being executed by the processor:
when the floating window is triggered to be displayed in an overlapping mode, detecting the current content of the content display area;
when the current content is the complete watching content of a preset user, the floating window is displayed in the shielding mode;
and when the current content is the content which is ignored by a preset user, the floating window is displayed in the penetration mode.
Optionally, the computer program further implements the following steps when executed by the processor:
acquiring user habit information of a user for adjusting a floating window corresponding to display content into an occlusion mode or a penetration mode;
and when the floating window corresponding to the display content is started again, determining the display mode of the floating window according to the user habit information.
Optionally, the user habit information is a continuous cumulative number of times that the user adjusts the floating window corresponding to the display content to the specific display mode, and when being executed by the processor, the computer program further implements the following steps:
when the continuous accumulated times of adjusting the floating window corresponding to the display content to the specific display mode is larger than or equal to the preset accumulated times, and when the floating window corresponding to the display content is started again, the floating window is determined to be displayed in the specific display mode.
Optionally, the main interface is an application program interface or a system desktop.
Optionally, the preset transparency is transparency set by a user or transparency set by default.
In this embodiment, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
A computer program stored in the computer-readable storage medium provided in this embodiment is executed by a processor to implement corresponding contents of the floating window display method provided in the above-mentioned method embodiment 1, which are not repeated herein and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of additional like elements in the process, method, article, or terminal that comprises the element.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (10)

1. A floating window display method is applied to terminal equipment, and comprises the following steps:
overlaying and displaying a floating window on the main interface;
switching a display mode of the floating window in response to a first touch operation on a mode switching control area of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode.
2. The method of claim 1, further comprising:
and under the condition that the floating window is displayed in the penetrating mode and a second touch operation is received in a content display area of the floating window, responding to the second touch operation by a control at a corresponding position on the main interface.
3. The method of claim 2, further comprising:
when the floating window is triggered to be displayed in an overlapping mode, detecting the current content of the content display area;
when the current content is the complete watching content of a preset user, the floating window is displayed in the shielding mode;
and when the current content is the content which is ignored by a preset user, the floating window is displayed in the penetration mode.
4. The method of claim 1, further comprising:
acquiring user habit information of a user for adjusting a floating window corresponding to display content into an occlusion mode or a penetration mode;
and when the floating window corresponding to the display content is started again, determining the display mode of the floating window according to the user habit information.
5. The method of claim 4, wherein the user habit information is a continuous accumulated number of times that a user adjusts a floating window corresponding to display content to a specific display mode, and the determining the display mode of the floating window according to the user habit information comprises:
when the continuous accumulated times of adjusting the floating window corresponding to the display content to the specific display mode is larger than or equal to the preset accumulated times, and when the floating window corresponding to the display content is started again, the floating window is determined to be displayed in the specific display mode.
6. The method of claim 1, wherein the primary interface is an application interface or a system desktop.
7. The method of claim 1, wherein the preset transparency is a user set transparency or a default set transparency.
8. A suspended window display device is applied to terminal equipment, and the device comprises:
the display module is used for superposing and displaying the floating window on the main interface;
the switching module is used for responding to a first touch operation aiming at a mode switching control area of the floating window and switching a display mode of the floating window, wherein the display mode of the floating window comprises an occlusion mode or a penetration mode, and the transparency of the penetration mode is higher than that of the occlusion mode.
9. A terminal device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, performs the floating window display method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the floating window display method of any one of claims 1 to 7.
CN202110559970.5A 2021-05-21 2021-05-21 Floating window display method and device and terminal equipment Pending CN115454308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110559970.5A CN115454308A (en) 2021-05-21 2021-05-21 Floating window display method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110559970.5A CN115454308A (en) 2021-05-21 2021-05-21 Floating window display method and device and terminal equipment

Publications (1)

Publication Number Publication Date
CN115454308A true CN115454308A (en) 2022-12-09

Family

ID=84295181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110559970.5A Pending CN115454308A (en) 2021-05-21 2021-05-21 Floating window display method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN115454308A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149028A (en) * 2023-10-27 2023-12-01 Tcl通讯科技(成都)有限公司 Display control method and device, storage medium and terminal equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149028A (en) * 2023-10-27 2023-12-01 Tcl通讯科技(成都)有限公司 Display control method and device, storage medium and terminal equipment

Similar Documents

Publication Publication Date Title
CN110995923B (en) Screen projection control method and electronic equipment
CN108255378B (en) Display control method and mobile terminal
CN110096326B (en) Screen capturing method, terminal equipment and computer readable storage medium
CN109714485B (en) Display method and mobile terminal
CN110196667B (en) Notification message processing method and terminal
CN109032445B (en) Screen display control method and terminal equipment
CN109407948B (en) Interface display method and mobile terminal
CN108920226B (en) Screen recording method and device
CN109710349B (en) Screen capturing method and mobile terminal
CN109739429B (en) Screen switching processing method and mobile terminal equipment
CN109407949B (en) Display control method and terminal
CN107728923B (en) Operation processing method and mobile terminal
CN110221795B (en) Screen recording method and terminal
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109144393B (en) Image display method and mobile terminal
CN109445653B (en) Icon processing method and mobile terminal
CN110647277A (en) Control method and terminal equipment
CN110753155A (en) Proximity detection method and terminal equipment
CN110703972A (en) File control method and electronic equipment
CN111158485B (en) Screen control method and electronic equipment
CN111338525A (en) Control method of electronic equipment and electronic equipment
CN110769303A (en) Playing control method and device and mobile terminal
CN111526248B (en) Audio output mode switching method and electronic equipment
CN110213437B (en) Editing method and mobile terminal
CN110225192B (en) Message display method and mobile terminal

Legal Events

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