Window control method, terminal and storage medium

By switching to the floating display mode in full-screen mode through a multi-finger pinching operation, the problem of the floating window operation path being too long is solved, and efficient triggering of the floating window operation is achieved.

CN115079877BActive Publication Date: 2025-09-30GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110274070.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-15
Publication Date
2025-09-30
Estimated Expiration
2041-03-15

AI Technical Summary

Technical Problem

In the related art, the operation path for triggering the floating window is too long, resulting in low efficiency of the floating window operation.

Method used

Use multi-finger pinching to switch to floating display mode, floating window or floating control in full-screen mode to simplify the operation path.

Benefits of technology

The operation path of floating windows or floating controls is shortened, and the triggering efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115079877B_ABST
    Figure CN115079877B_ABST
Patent Text Reader

Abstract

The present application discloses a window control method, a terminal, and a storage medium. The window control method includes: when a first application is running in full-screen mode, when a first multi-finger pinch operation is detected, switching the first application from full-screen mode to a floating display mode; wherein, the first application is displayed as a floating window or a floating control in the floating display mode; the floating control represents the minimized state of the floating window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a window control method, terminal, and storage medium. Background Art

[0002] A floating window is an application's operation window that is displayed floating at the forefront of the terminal device's display interface. Through the floating window, users can process different tasks in parallel. For example, while watching a video in full screen, they can reply to messages through a social application running in the floating window. However, in related technologies, the operation path for triggering the floating window is too long. Summary of the Invention

[0003] In view of this, embodiments of the present application hope to provide a window control method, a terminal, and a storage medium to solve the technical problem in the related art that the operation path for triggering a floating window is too long.

[0004] To achieve the above objectives, the technical solution of this application is implemented as follows:

[0005] The embodiment of the present application provides a window control method, including:

[0006] When a first application is running in full-screen mode, when a first multi-finger pinch operation is detected, the first application is switched from full-screen mode to a floating display mode; wherein,

[0007] The first application is displayed as a floating window or a floating control in the floating display mode; the floating control represents a minimized state of the floating window.

[0008] In the above solution, switching the first application from full-screen mode to floating display mode includes:

[0009] determining a pinch amplitude corresponding to the first multi-finger pinch operation according to a sliding distance of each touch screen point in the first multi-finger pinch operation;

[0010] Based on the pinching amplitude, the first application is displayed as a floating window or a floating control.

[0011] In the above solution, displaying the first application as a floating window or a floating control based on the pinch amplitude includes:

[0012] When the pinch amplitude is less than or equal to a first set value, displaying the first application as a floating window; or

[0013] When the pinch amplitude is greater than the first set value, the first application is displayed as a floating control.

[0014] In the above solution, the method further includes:

[0015] In a case where the first application is displayed as a floating window, when a second multi-finger pinch operation is detected, the first application is displayed as a floating control.

[0016] In the above solution, the method further includes:

[0017] When the first application is displayed as a floating window, when a first multi-finger pinch-out operation is detected, the first application is switched to a full-screen mode.

[0018] In the above solution, the method further includes:

[0019] When the first application is displayed as a floating window, the size of the floating window is adjusted accordingly according to the detected third multi-finger pinch-in operation or the second multi-finger pinch-out operation.

[0020] In the above solution, the method further includes:

[0021] When a set touch operation is detected, the first application is exited from the floating display mode.

[0022] In the above solution, the step of exiting the first application from the floating display mode includes:

[0023] Close the first application; or,

[0024] Switch the first application from a floating display mode to a full-screen mode.

[0025] The present application also provides a terminal, including:

[0026] A control unit is configured to, when a first multi-finger pinch operation is detected while the first application is running in full-screen mode, switch the first application from full-screen mode to floating display mode; wherein,

[0027] The first application is displayed as a floating window or a floating control in the floating display mode; the floating control represents a minimized state of the floating window.

[0028] An embodiment of the present application provides a terminal, comprising: a processor and a memory for storing a computer program that can be run on the processor,

[0029] Wherein, the processor is used to execute the steps of the above-mentioned window control method when running the computer program.

[0030] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned window control method are implemented.

[0031] In an embodiment of the present application, when the first application is running in full-screen mode, the user can trigger the terminal to switch the first application from full-screen mode to floating display mode through a multi-finger pinch operation, thereby displaying the first application as a floating window or floating control. In this way, the operation path of triggering the floating window or floating control is shortened and the efficiency of triggering the floating window or floating control is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the implementation flow of the window control method provided in an embodiment of the present application;

[0033] Figure 2 A schematic diagram of interface switching provided in an embodiment of the present application;

[0034] Figure 3 A schematic diagram of interface switching provided in another embodiment of the present application;

[0035] Figure 4 A schematic diagram of interface switching provided in another embodiment of the present application;

[0036] Figure 5 A schematic diagram of a multi-finger pinch-out operation provided in an embodiment of the present application;

[0037] Figure 6 A schematic diagram of a floating window provided in an embodiment of the present application;

[0038] Figure 7 A schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0039] Figure 8 A schematic diagram of the structure of a terminal provided in another embodiment of the present application. DETAILED DESCRIPTION

[0040] In the related art, users usually first call out the sidebar or Dock bar of the terminal device, and trigger the corresponding floating window by clicking or dragging the corresponding application icon in the sidebar or Dock bar, thereby running the corresponding application in the form of a floating window. The operation path for triggering the floating window is too long.

[0041] An embodiment of the present application provides a window control method. When a first application is running in full-screen mode, a user can trigger the terminal to switch the first application from full-screen mode to floating display mode through a multi-finger pinch operation, thereby displaying the first application as a floating window or a floating control. In this way, the operation path of triggering the floating window or floating control is shortened and the efficiency of triggering the floating window or floating control is improved.

[0042] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0043] Figure 1 The following is a schematic diagram of the implementation process of the window control method provided by the embodiment of the present application. The execution subject of the process is a terminal device such as a mobile phone or a tablet. Figure 1 As shown, the window control method includes:

[0044] Step 101: When a first application is running in full-screen mode, when a first multi-finger pinch operation is detected, the first application is switched from full-screen mode to floating display mode; wherein,

[0045] The first application is displayed as a floating window or a floating control in the floating display mode; the floating control represents a minimized state of the floating window.

[0046] Here, when the terminal runs the first application in full-screen mode, the touch operation input by the user through the touch screen of the terminal is detected. When the number of touch points of the touch operation is greater than or equal to the set number, the sliding distance of each touch point is greater than or equal to the set threshold and the sliding trend of all touch points is inward, the touch operation is identified as a first multi-finger pinch operation. At this time, the first application is switched from full-screen mode to floating display mode, so that the first application is run in a floating window, or the first application is displayed as a floating control. Among them, the set number can be set to 3, the set number can be set to 4 or 5. The setting threshold is used to prevent misoperation. The floating control can be a floating ball or a floating handle.

[0047] In actual application, users can use five fingers to pinch inward from the edge of the window to trigger a multi-finger pinch operation.

[0048] like Figure 2 As shown in the interface switching diagram, when the mailbox application is running in full-screen mode, when the terminal detects a first multi-finger pinch operation, the mailbox application is switched from full-screen mode to a floating display mode, wherein the mailbox application can be displayed as a floating window 21 or as a floating control 22 in the floating display mode.

[0049] It should be noted that when the first application is displayed as a floating control, the terminal runs the first application in the background or closes the first application. Since the floating control is always displayed at the forefront of the desktop, the user can click the floating control to trigger the terminal to switch the first application from the background running mode to the foreground running mode, or quickly start the first application. The user does not need to find the icon of the first application on the desktop and can start the first application by clicking the first icon.

[0050] It should be noted that when the terminal displays the first application as a floating space, the desktop of the terminal still displays the icon of the first application.

[0051] In this embodiment, when the terminal is running the first application in full-screen mode, the user can quickly trigger the terminal to switch the first application from full-screen mode to floating display mode through a multi-finger pinch operation, thereby displaying the first application as a floating window or floating control. In this way, the operation path of triggering the floating window or floating control is shortened and the efficiency of triggering the floating window or floating control is improved.

[0052] It should be noted that the window control method provided in this application supports at least two applications running in floating display mode. In actual applications, when the first application is switched from full-screen mode to floating display mode, the user can trigger the terminal to run the second application in full-screen mode; when the terminal runs the second application in full-screen mode, the first application is displayed in a floating manner at the forefront of the user interface of the second application. When a first multi-finger pinch operation is detected in the user interface of the second application, the second application is switched from full-screen mode to floating display mode. As a result, both the first application and the second application run in floating display mode.

[0053] The implementation of switching the second application from full-screen mode to floating display mode is the same as the implementation of switching the first application from full-screen mode to floating display mode in the context, and will not be repeated here.

[0054] For the window control method when the second application is running in the floating display mode, please refer to the relevant descriptions in the embodiments below, which are explained using the first application as an example.

[0055] Considering that users have different needs for displaying the first application as a floating window or a floating control, in order to more accurately identify user intent and better meet user needs, in some embodiments, switching the first application from full-screen mode to floating display mode includes:

[0056] determining a pinch amplitude corresponding to the first multi-finger pinch operation according to a sliding distance of each touch screen point in the first multi-finger pinch operation;

[0057] Based on the pinching amplitude, the first application is displayed as a floating window or a floating control.

[0058] Here, the terminal may determine an average sliding distance of all touch-screen points in the first multi-finger pinch operation based on the sliding distance of each touch-screen point in the first multi-finger pinch operation, and determine the average sliding distance as the pinch amplitude of the first multi-finger pinch operation. The terminal may also determine a minimum sliding distance or a maximum sliding distance from the sliding distance of each touch-screen point in the first multi-finger pinch operation, and determine the determined sliding distance as the pinch amplitude of the first multi-finger pinch operation.

[0059] When determining the pinching amplitude of the first multi-finger pinching operation, the terminal displays the first application as a floating window or a floating control based on the pinching amplitude.

[0060] Considering that in different scenarios, the user wants to display the first application in different floating display modes to process different tasks in parallel, in this embodiment, the terminal can display the first application as a floating window or floating control based on the pinch amplitude of the first multi-finger pinch operation, which can accurately identify the user's intention and meet the user's needs.

[0061] For example, in a scenario where a user needs to watch the content of a video while checking emails, the user can use a first multi-finger pinch operation to trigger the terminal to switch the mailbox application from full-screen mode to a floating window, so as to watch the corresponding video through the video playback interface displayed under the floating window; or, the user can also start the video playback application to play the video in full screen, and use a first multi-finger pinch operation to trigger the terminal to switch the video playback application from full-screen mode to a floating window, and play the video in the floating window. At this time, the floating window is displayed floatingly at the front end of the interface of the mailbox application, so that the user can watch the video while processing emails.

[0062] Based on the terminal determining the pinch amplitude corresponding to the first multi-finger pinch operation, in order to more accurately identify the user's intention, in some embodiments, displaying the first application as a floating window or a floating control based on the pinch amplitude includes:

[0063] When the pinch amplitude is less than or equal to a first set value, displaying the first application as a floating window; or

[0064] When the pinch amplitude is greater than the first set value, the first application is displayed as a floating control.

[0065] Here, the terminal may compare the determined pinch amplitude with a first set value to obtain a comparison result. If the comparison result indicates that the pinch amplitude is less than or equal to the first set value, the first application is displayed as a floating window; if the first comparison result indicates that the pinch amplitude is greater than the first set value, the first application is displayed as a floating control.

[0066] In this embodiment, the terminal displays the first application as a floating window or floating control according to the comparison result between the pinch amplitude corresponding to the first multi-finger pinch operation and the first set value, which can improve the control accuracy of the floating display mode.

[0067] In order to meet the diverse needs of users, in some embodiments, the method further includes:

[0068] In a case where the first application is displayed as a floating window, when a second multi-finger pinch operation is detected, the first application is displayed as a floating control.

[0069] Here, when the first application is displayed as a floating window, the terminal detects the touch operation input by the user in the floating window. When the number of touch screen points of the touch operation is greater than or equal to the set number, the sliding distance of each touch point is greater than or equal to the set threshold, and the sliding trend of all touch screen points is inward, the touch operation is identified as a second multi-finger pinch operation, and the first application is displayed as a floating control.

[0070] In actual application, a second set value is stored in the terminal. When the terminal detects a second multi-finger pinch operation in the floating window, the terminal determines the pinch amplitude corresponding to the second multi-finger pinch operation based on the sliding distance of each touch screen point in the second multi-finger pinch operation. If the pinch amplitude corresponding to the second multi-finger pinch operation is greater than the second set value, the first application is displayed as a floating control. If the pinch amplitude corresponding to the second multi-finger pinch operation is less than or equal to the second set value, the size of the floating window can be reduced, or the second multi-finger pinch operation can be not responded to. It should be noted that the first set value and the second set value can be the same or different.

[0071] In actual application, such as Figure 3 As shown, when the mailbox application is displayed as a floating window, if the user wants to watch a complete video screen, the user can enter a second pinch operation in the floating window to trigger the terminal to switch the mailbox application from a floating window to a floating control, so that the video can be watched in full screen.

[0072] In order to meet the diverse needs of users, in some embodiments, the method further includes:

[0073] When the first application is displayed as a floating window, when a first multi-finger pinch-out operation is detected, the first application is switched to a full-screen mode.

[0074] Here, when the first application is displayed as a floating window, the terminal detects the touch operation input by the user in the floating window. When the number of touch screen points of the touch operation is greater than or equal to the set number, the sliding distance of each touch point is greater than or equal to the set threshold and the sliding trend of all touch screen points is outward, the touch operation is identified as a first multi-finger stretching operation, and the first application is switched from floating display mode to full-screen mode.

[0075] In actual application, such as Figure 4 As shown, when the mailbox application is displayed as a floating window, when the user wants to reply to an email, the user can input a first multi-finger stretching operation in the floating window, triggering the terminal to switch the mailbox application from a floating display mode to a full-screen mode so that the user can process the email.

[0076] In actual application, such as Figure 5 As shown, the user can use five fingers to stretch outward from the edge area of ​​the floating window to trigger a multi-finger pinch-out operation. In this case, the sliding end point of the multi-finger pinch-out operation can fall outside the floating window.

[0077] In order to meet the diverse needs of users, in some embodiments, the method further includes:

[0078] When the first application is displayed as a floating window, the size of the floating window is adjusted accordingly according to the detected third multi-finger pinch-in operation or the second multi-finger pinch-out operation.

[0079] Here, when the first application is displayed as a floating window, the number of touch screen points detected in the touch operation is greater than or equal to the set number, the sliding distance of each touch point is greater than or equal to the set threshold, and the sliding trend of all touch screen points is to gather inward, the touch operation is identified as a third multi-finger pinch operation. The terminal determines the pinch amplitude corresponding to the third multi-finger pinch operation based on the sliding distance of each touch screen point in the third multi-finger pinch operation, and reduces the size of the floating window when the pinch amplitude corresponding to the third multi-finger pinch operation is less than or equal to the second set value. Therefore, in the scenario where the first application is displayed in a floating manner at the front of the interface of the second application running in full-screen mode, the occluded area of ​​the second application can be reduced by reducing the floating window, making it easier for the user to view the relevant content of the second application; in the scenario where the first application is displayed in a floating manner at the forefront of the desktop, reducing the floating window can make it easier for the user to view the obscured application icons.

[0080] When the first application is displayed as a floating window, in order to facilitate viewing of the content displayed in the floating window, the user can input a second multi-finger stretching operation in the floating window, thereby triggering the terminal to enlarge the size of the floating window, and the content displayed in the floating window is also enlarged, so that the user can view the content displayed in the floating window more clearly. Here, the stretching amplitude of the second multi-finger stretching operation is smaller than the stretching amplitude of the first multi-finger stretching operation, and the stretching amplitude is determined based on the sliding distance of each touch screen point in the multi-finger stretching operation. In actual application, a third setting value can be set. When the stretching amplitude of the detected multi-finger stretching operation is less than or equal to the third setting value, the size of the floating window is enlarged according to the stretching amplitude, and the size of the enlarged floating window is smaller than the size of the full-screen mode; when the stretching amplitude of the detected multi-finger stretching operation is greater than the third setting value, the first application switches from the floating display mode to the full-screen mode.

[0081] In practical applications, such as Figure 6 As shown, the floating window 21 may further include a control 211 , and the user may press and hold the control 211 to drag the floating window 21 , thereby dragging the floating window 21 to a different location.

[0082] In some embodiments, the method further comprises:

[0083] When a set touch operation is detected, the first application is exited from the floating display mode.

[0084] Here, the terminal stores information related to the touch operation for triggering the terminal to exit the floating display mode. In actual application, the touch operation set for closing the floating window may be different from the touch operation set by the user to close the floating control.

[0085] When the first application is running in floating display mode, the terminal obtains the touch operation input by the user at the display position corresponding to the floating window or floating control. If the detected touch operation is the set touch operation, the first application is exited from the floating display mode. Thus, the user can input the set touch gesture in the floating window to conveniently control the terminal to exit the floating display mode.

[0086] In actual application, the terminal detects that the user clicks Figure 6 Alternatively, when the terminal detects that the touch operation input by the user at the display position corresponding to the floating control is a set touch operation, the floating control is closed to exit the mail application from the floating display mode.

[0087] In this embodiment, the user can conveniently trigger the terminal to exit the floating display mode through a preset touch operation.

[0088] In some embodiments, exiting the first application from the floating display mode includes:

[0089] Close the first application;

[0090] Switch the first application from a floating display mode to a full-screen mode.

[0091] In actual application, when the terminal displays the first application as a floating window, the terminal detects that the user clicks Figure 6 When the control 211 in the terminal is detected, the floating window is closed and the first application is closed; when the terminal detects that the user double-clicks Figure 6 When the control 211 in is opened, the floating window is closed and the first application is switched from the floating display mode to the full screen mode.

[0092] When the terminal displays the first application as a floating control, the terminal closes the floating control and the first application when it detects that the user double-clicks the floating control; when the terminal detects that the user single-clicks the floating control, it closes the floating control and switches the first application from a floating display mode to a full-screen mode.

[0093] In this embodiment, it is possible to accurately identify whether the user wants to close the first application or switch the first application from the floating display mode to the full-screen mode through different set touch operations.

[0094] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a terminal, such as Figure 7 As shown, the terminal includes:

[0095] The control unit 71 is configured to switch the first application from the full-screen mode to the floating display mode when a first multi-finger pinch operation is detected when the first application is running in the full-screen mode; wherein,

[0096] The first application is displayed as a floating window or a floating control in the floating display mode; the floating control represents a minimized state of the floating window.

[0097] In some embodiments, the control unit 71 is configured to:

[0098] determining a pinch amplitude corresponding to the first multi-finger pinch operation according to a sliding distance of each touch screen point in the first multi-finger pinch operation;

[0099] Based on the pinching amplitude, the first application is displayed as a floating window or a floating control.

[0100] In some embodiments, the control unit 71 is configured to:

[0101] When the pinch amplitude is less than or equal to a first set value, displaying the first application as a floating window; or

[0102] When the pinch amplitude is greater than the first set value, the first application is displayed as a floating control.

[0103] In some embodiments, the control unit 71 is further configured to: when the first application is displayed as a floating window, when a second multi-finger pinch operation is detected, display the first application as a floating control.

[0104] In some embodiments, the control unit 71 is further configured to: when the first application is displayed as a floating window, switch the first application to a full-screen mode when a first multi-finger pinch-out operation is detected.

[0105] In some embodiments, the control unit 71 is further configured to: when the first application is displayed as a floating window, adjust the size of the floating window accordingly according to the detected third multi-finger pinch-in operation or the second multi-finger pinch-out operation.

[0106] In some embodiments, the control unit 71 is further configured to: upon detecting a set touch operation, cause the first application to exit the floating display mode.

[0107] The step of causing the first application to exit the floating display mode includes:

[0108] Close the first application; or,

[0109] Switch the first application from a floating display mode to a full-screen mode.

[0110] In actual application, the control unit 71 can be implemented through a processor in the terminal, such as a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU) or a programmable gate array (FPGA).

[0111] It should be noted that the above embodiments illustrate the division of the aforementioned program modules into various modules when performing window control in the terminal. In actual applications, the aforementioned processing can be assigned to different program modules as needed, i.e., the internal structure of the device can be divided into different program modules to perform all or part of the aforementioned processing. Furthermore, the terminal and window control method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiments and will not be further described here.

[0112] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a terminal. Figure 8 This is a schematic diagram of the hardware structure of the terminal in the embodiment of the present application. Figure 8 As shown, the terminal 8 includes:

[0113] Communication interface 81, capable of exchanging information with other devices such as network devices;

[0114] The processor 82 is connected to the communication interface 81 to implement information exchange with other devices and is used to execute the methods provided by one or more technical solutions on the terminal side when running a computer program. The computer program is stored in the memory 83.

[0115] Of course, in actual application, the various components in the terminal 8 are coupled together through the bus system 84. It is understood that the bus system 84 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 84 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus system 84 .

[0116] The memory 83 in the embodiment of the present application is used to store various types of data to support the operation of the terminal 8. Examples of such data include: any computer program used to operate on the terminal 8.

[0117] It is understood that the memory 83 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a magnetic disk memory or a magnetic tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory 130 described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memories.

[0118] The methods disclosed in the above-mentioned embodiments of the present application can be applied to the processor 82 or implemented by the processor 82. The processor 82 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above-mentioned method can be completed by the hardware integrated logic circuit in the processor 82 or by instructions in the form of software. The above-mentioned processor 82 can be a general-purpose processor, a DSP, or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc. The processor 82 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present application can be directly implemented as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 83. The processor 82 reads the program in the memory 83 and completes the steps of the above-mentioned method in combination with its hardware.

[0119] Optionally, when the processor 82 executes the program, it implements the corresponding processes implemented by the terminal in each method of the embodiment of the present application, which will not be described here for the sake of brevity.

[0120] In an exemplary embodiment, the present application also provides a storage medium, namely, a computer storage medium, specifically a computer-readable storage medium, including, for example, a first memory 83 storing a computer program. The computer program can be executed by a processor 82 of the terminal to perform the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0121] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0122] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0123] In addition, all functional units in the embodiments of the present application can be integrated into one processing module, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above-mentioned integrated units can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0124] Those skilled in the art will appreciate that all or part of the steps of the above-mentioned method embodiments may be implemented by hardware associated with program instructions, and the aforementioned program may be stored in a computer-readable storage medium. When the program is executed, the program executes the steps of the above-mentioned method embodiments. The aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0125] It should be noted that the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0126] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A window control method, characterized in that: include: When a first application is running in full-screen mode, when a first multi-finger pinch operation is detected, the first application is switched from the full-screen mode to a floating display mode; wherein, The first application is displayed as a floating window or a floating control in the floating display mode; the floating control represents a minimized state of the floating window; When the first application is displayed as the floating window, when a first multi-finger pinch-out operation is detected, switching the first application to the full-screen mode; In a case where the first application is displayed as the floating window, when a second multi-finger pinch operation is detected, displaying the first application as the floating control; The detecting of the first multi-finger pinch operation includes: when the first application is running in the full-screen mode, detecting a touch operation input by a user through the touch screen of the terminal, and when the number of touch points of the touch operation is greater than or equal to a set number, the sliding distance of each touch point is greater than or equal to a set threshold, and the sliding trend of all the touch points is inward convergence, identifying the touch operation as the first multi-finger pinch operation; The displaying of the first application as the floating control includes: determining a pinch amplitude corresponding to the second multi-finger pinch operation according to a sliding distance of each touch screen point in the second multi-finger pinch operation; When the pinch amplitude corresponding to the second multi-finger pinch operation is greater than a second set value, displaying the first application as a floating control; When the pinch amplitude corresponding to the second multi-finger pinch operation is less than or equal to the second set value, the size of the floating window is reduced, or the second multi-finger pinch operation is not responded to.

2. The method according to claim 1, characterized in that Switching the first application from a full-screen mode to a floating display mode includes: determining a pinch amplitude corresponding to the first multi-finger pinch operation according to a sliding distance of each touch screen point in the first multi-finger pinch operation; Based on the pinching amplitude, the first application is displayed as the floating window or the floating control.

3. The method according to claim 2, characterized in that The displaying the first application as the floating window or the floating control based on the pinch amplitude includes: When the pinch amplitude is less than or equal to a first set value, displaying the first application as the floating window; or When the pinch amplitude is greater than the first set value, the first application is displayed as the floating control.

4. The method according to claim 1, wherein The method further comprises: When the first application is displayed as the floating window, the size of the floating window is adjusted accordingly according to the detected third multi-finger pinch-in operation or the second multi-finger pinch-out operation.

5. The method according to claim 1, wherein The method further comprises: When a set touch operation is detected, the first application is exited from the floating display mode.

6. The method according to claim 5, characterized in that The step of causing the first application to exit the floating display mode includes: Close the first application; or, Switch the first application from the floating display mode to the full-screen mode.

7. A terminal, characterized in that: include: A control unit is configured to, when a first multi-finger pinch operation is detected while a first application is running in full-screen mode, switch the first application from the full-screen mode to a floating display mode; wherein, The first application is displayed as a floating window or a floating control in the floating display mode; the floating control represents a minimized state of the floating window; The control unit is further configured to, when the first application is displayed as the floating window, switch the first application to the full-screen mode when a first multi-finger pinch-out operation is detected; The control unit is specifically configured to detect, when the first application is running in the full-screen mode, a touch operation input by a user through the touch screen of the terminal, and identify the touch operation as the first multi-finger pinch operation when the number of touch points of the touch operation is greater than or equal to a set number, the sliding distance of each touch point is greater than or equal to a set threshold, and the sliding trend of all the touch points is inward convergence; The control unit is also used to, when the first application is displayed as the floating window, determine the pinch amplitude corresponding to the second multi-finger pinch operation based on the sliding distance of each touch screen point in the second multi-finger pinch operation when a second multi-finger pinch operation is detected; when the pinch amplitude corresponding to the second multi-finger pinch operation is greater than a second set value, display the first application as a floating control; when the pinch amplitude corresponding to the second multi-finger pinch operation is less than or equal to the second set value, reduce the size of the floating window, or not respond to the second multi-finger pinch operation.

8. A terminal, characterized in that: include: a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method according to any one of claims 1 to 6.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Page processing method, page processing device and electronic equipment of touch screen display

    CN103777876A

  • Suspension display implementing method and device

    CN104793838A