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

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

Info

Publication number
CN113190319B
CN113190319B CN202110491610.6A CN202110491610A CN113190319B CN 113190319 B CN113190319 B CN 113190319B CN 202110491610 A CN202110491610 A CN 202110491610A CN 113190319 B CN113190319 B CN 113190319B
Authority
CN
China
Prior art keywords
floating window
touch instruction
floating
instruction
touch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110491610.6A
Other languages
Chinese (zh)
Other versions
CN113190319A (en
Inventor
莫博宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110491610.6A priority Critical patent/CN113190319B/en
Publication of CN113190319A publication Critical patent/CN113190319A/en
Application granted granted Critical
Publication of CN113190319B publication Critical patent/CN113190319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

The application discloses a floating window control method, a floating window control device, electronic equipment and a storage medium. The method comprises the following steps: receiving a first touch instruction in a first area of a first floating window; the first area is the bottom area of the first floating window; and controlling the first floating window according to the received first touch instruction.

Description

Floating window control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a floating window control method, a device, an electronic apparatus, and a storage medium.
Background
In the related art, a user has certain difficulty in controlling the floating window on the large-screen electronic equipment, so that the convenience of controlling the floating window is reduced.
Disclosure of Invention
In view of the above, embodiments of the present application provide a floating window control method, apparatus, electronic device and storage medium, so as to at least solve the problems of difficulty and low convenience in floating window control in the related art.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a floating window control method, which comprises the following steps:
receiving a first touch instruction in a first area of a first floating window; the first area is the bottom area of the first floating window;
and controlling the first floating window according to the received first touch instruction.
In the above scheme, the method further comprises:
loading a first operation object in the first area;
the receiving the first touch instruction at the first area of the first floating window includes:
and receiving a first touch instruction of the first operation object.
In the above aspect, the first operation object includes at least one of:
operating a button;
an operation bar.
In the above scheme, the first touch instruction is a drag instruction, and the controlling the first floating window according to the received first touch instruction includes:
and controlling the first floating window to move from the starting point position of the first dragging track to the end point position of the first dragging track according to the first dragging track corresponding to the first touch instruction.
In the above aspect, the first touch instruction is a pressing instruction, and the controlling the first floating window according to the received first touch instruction includes:
and triggering the first floating window to change the operation mode under the condition that the pressing time of the first touch instruction is longer than a set threshold value.
In the above solution, the changed operation mode is an editable mode, and the method further includes:
and receiving a second touch instruction, and controlling the display state of the first floating window according to the second touch instruction.
In the above scheme, the second touch instruction is a sliding instruction; the controlling the display state of the first floating window according to the second touch instruction includes:
according to the sliding direction of the second touch instruction, one of the following operations is correspondingly performed on the first floating window:
closing the first floating window;
and switching the first floating window to a full-screen display mode.
And switching the first floating window to background operation.
The embodiment of the application also provides a floating window control device, which comprises:
the receiving unit is used for receiving a first touch instruction in a first area of the first floating window; the first area is the bottom area of the first floating window;
and the control unit is used for controlling the first floating window according to the received first touch instruction.
The embodiment of the application also provides electronic equipment, which comprises: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute the steps of any of the methods described above when the computer program is run.
In the embodiment of the application, the control of the floating window is realized by receiving the touch control instruction in the bottom area of the floating window, so that the convenience of controlling the floating window can be improved, the control operation of the floating window is simplified, and the display effect of the floating window is further improved.
Drawings
FIG. 1 is a schematic flow chart of a floating window control method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a first operation object according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a first operation object according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating movement of a first floating window according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating controlling a first floating window in different sliding directions according to a second touch command according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a floating window control device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware composition structure of an electronic device according to an embodiment of the present application.
Detailed Description
The application will be described in further detail with reference to the accompanying drawings and specific examples.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The technical schemes described in the embodiments of the present application may be arbitrarily combined without any collision.
In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence.
The application will be described in further detail with reference to the accompanying drawings and specific examples.
An embodiment of the present application provides a floating window control method, and fig. 1 is a schematic flow chart of the floating window control method according to the embodiment of the present application, as shown in fig. 1, where the method includes:
s101: receiving a first touch instruction in a first area of a first floating window; the first region is a bottom region of the first floating window.
Here, the first area of the first floating window is set to be an area for receiving the touch instruction, wherein the first area refers to a bottom area of the first floating window, when a user controls the first floating window, the first touch instruction needs to be sent to the first floating window in the first area of the first floating window, so that the first floating window can receive the first touch instruction, and when the first touch instruction is generated in other areas except the first area of the first floating window, the first floating window cannot receive the first touch instruction, and therefore the first floating window cannot be controlled through the first touch instruction. In practical applications, the first floating window may be a window floating on other application interfaces, for example, the content of an application is displayed in a first floating window manner, where the size of the first floating window is generally smaller than that of the screen, and compared with the case that an operation space is set outside the first floating window, a region for receiving a touch instruction is set inside the first floating window, so that the display effect of the first floating window can be improved, and for a large-screen electronic device, a region for receiving the touch instruction by the first floating window is set at the bottom region of the first floating window, so that the first region is easier to fall into a single-hand operation region of a user, and thus the user can operate the floating window in the large-screen electronic device through the first region more easily, and the operation convenience of the floating window is improved.
S102: and controlling the first floating window according to the received first touch instruction.
Here, the first touch instruction is used for realizing control of the first floating window, when the first touch instruction can be successfully received, the control of the first floating window is realized according to the received first touch instruction, in practical application, different operations such as moving, closing and the like of the first floating window can be realized through the first touch instruction, and the control of the first floating window by a user according to requirements is facilitated.
In an embodiment, the method further comprises:
loading a first operation object in the first area;
the receiving the first touch instruction at the first area of the first floating window includes:
and receiving a first touch instruction of the first operation object.
Here, the first operation object is loaded in the first area, where the first operation object refers to an object that is manipulated in a process of controlling the first floating window by a user, the user may perform corresponding operation on the first operation object to control the first floating window, receive a first touch instruction on the first operation object, and further control the first floating window through the first touch instruction received by the first operation object. In practical application, when a user needs to control a first floating window, a first touch instruction is initiated to a first operation object in a first area, for example, a touch instruction for realizing movement of the first floating window is initiated to the first operation object, so that control of the first floating window is realized, the touch instruction for controlling the first floating window can be accurately identified, the control effect on the first floating window can be improved, and an input area for initiating the first touch instruction to the first floating window can be indicated to the user through the first operation object in the first area, so that control efficiency of the user on the floating window can be improved.
In an embodiment, the first operation object includes at least one of:
operating a button;
an operation bar.
Here, the operation buttons are loaded in the first area, and the operation buttons can correspond to different control instructions of the first floating window, so that a user can send out first touch control instructions to the operation buttons to control the first floating window, as shown in fig. 2, fig. 2 shows a schematic diagram of the first operation object as the operation buttons, when the user needs to control the first floating window, the user can send out first touch control instructions to the operation buttons, and the operation buttons receive the first touch control instructions, so that corresponding control to the first floating window is completed. In practical application, the first operation object may also be an operation strip, as shown in fig. 3, fig. 3 shows that the first operation object is a schematic diagram of the operation strip, in fig. 3, a user sends a first touch instruction to the operation strip to control the first floating window, for example, when the user needs to close the first floating window, sends a first touch instruction for closing the first floating window to the operation strip, and the operation strip is responsible for receiving the first touch instruction sent by the user, so that the first floating window can close the first floating window according to the first touch instruction. Through loading operating button or operation strip in first region, can make the operation area of first floating window succinct more to be favorable to improving the display effect in first floating window.
In an embodiment, the first touch instruction is a drag instruction, and the controlling the first floating window according to the received first touch instruction includes:
and controlling the first floating window to move from the starting point position of the first dragging track to the end point position of the first dragging track according to the first dragging track corresponding to the first touch instruction.
Here, the first area may receive different types of first touch instructions, and when the first touch instruction received by the first area is a drag instruction, drag processing can be implemented on the first floating window, where a moving path of the first floating window coincides with a first drag track corresponding to the first touch instruction, as shown in fig. 4, fig. 4 shows a moving schematic diagram of the first floating window, where the first floating window may be moved by a starting point position of the first drag track, that is, an initial position of the first floating window, following the first drag track, and finally the first floating window may stay at an end point position of the first drag track, that is, a final target position of the first floating window, so that movement of the first floating window may be implemented, and the first floating window may be moved to a position required by a user.
In an embodiment, the first touch instruction is a pressing instruction, and the controlling the first floating window according to the received first touch instruction includes:
and triggering the first floating window to change the operation mode under the condition that the pressing time of the first touch instruction is longer than a set threshold value.
Here, when the first touch instruction received by the first area is a pressing instruction, the pressing duration of the current first touch instruction is determined, and when the pressing duration of the first touch instruction is very short, it can be considered that the user selects the first floating window through the first touch instruction, or an error operation occurs, and when the pressing duration of the first touch instruction exceeds a set threshold, for example, when the pressing duration of the first touch instruction exceeds 0.5 seconds, the first floating window can be triggered to change the operation mode, for example, the first floating window can be converted from the operation mode to other states such as the editing mode, so that different control on the first floating window can be realized according to different touch instructions, the control effect of the first floating window can be improved, and the operation mode of the first floating window can be changed, so that the user can control the first floating window more variously.
In an embodiment, the changed operation mode is an editable mode, and the method further comprises:
and receiving a second touch instruction, and controlling the display state of the first floating window according to the second touch instruction.
Here, when the operation mode of the first floating window after being changed is an editable mode, it indicates that the first floating window is in an editing state, and when the first floating window is in the editable mode, a user waits for a further instruction of the user to complete the editing of the first floating window, and the first area can receive a second touch instruction sent by the user, and control the display state of the first floating window according to the second touch instruction, where the display state of the first floating window refers to a change of display content or display size of the first floating window, and the second touch instruction may be an instruction for closing the first floating window, or other instructions capable of changing the original display state of the first floating window. In practical application, the second touch instruction can be directly initiated based on the first touch instruction, that is, between the first touch instruction and the second touch instruction, the user keeps touching the first area, after the user enters the editable mode through the pressed first touch instruction, the second touch instruction for editing the first floating window is immediately issued, or after the user issues the first touch instruction, a certain time interval elapses, the user touches the first area again to initiate the second touch instruction, that is, the first touch instruction and the second touch instruction are issued to the first area through different gestures at different time points, the user can enter the editable mode through the touch instruction first floating window, and accordingly the user can control the first floating window more variously.
In an embodiment, the second touch instruction is a sliding instruction; the controlling the display state of the first floating window according to the second touch instruction includes:
according to the sliding direction of the second touch instruction, one of the following operations is correspondingly performed on the first floating window:
closing the first floating window;
and switching the first floating window to a full-screen display mode.
And switching the first floating window to background operation.
Here, when the first floating window is in the editable mode, the received second touch instruction is a sliding instruction, the control content of the second floating window by the second touch instruction can be determined according to the sliding direction corresponding to the second touch instruction, wherein the second touch instruction can close the first floating window, or the first floating window is in the full-screen display mode, the first floating window can also be switched to the background operation, as shown in fig. 5, the first floating window is controlled in different sliding directions of the second touch instruction, in fig. 5, the operation strip is responsible for receiving the second touch instruction, when the second touch instruction slides upwards, the first floating window is closed by the second touch instruction sliding upwards, when the second touch instruction slides downwards, the first floating window is switched to the full-screen display mode, when the second touch instruction slides rightwards, the first floating window is switched to the background operation platform, the second floating window is switched to the corresponding sliding platform, and the second floating window can be switched to the right when the second touch instruction slides downwards, so that the two sliding platforms can be applied to realize different sliding directions, and the two sliding instruction can be interpreted.
In the above embodiment, by receiving the touch instruction at the bottom area of the floating window, control of the floating window is achieved, convenience in controlling the floating window can be improved, operation for controlling the floating window is simplified, and display effect of the floating window is further improved
In order to implement the floating window control method according to the embodiment of the present application, the embodiment of the present application further provides a floating window control device, as shown in fig. 6, where the device includes:
a receiving unit 601, configured to receive a first touch instruction in a first area of a first floating window; the first area is the bottom area of the first floating window;
the control unit 602 is configured to control the first floating window according to the received first touch instruction.
In an embodiment, the floating window control device is further configured to:
loading a first operation object in the first area;
the receiving the first touch instruction at the first area of the first floating window includes:
and receiving a first touch instruction of the first operation object.
In an embodiment, the first operation object includes at least one of:
operating a button;
an operation bar.
In an embodiment, the first touch instruction is a drag instruction, and the control unit 602 is further configured to, when controlling the first floating window according to the received first touch instruction:
and controlling the first floating window to move from the starting point position of the first dragging track to the end point position of the first dragging track according to the first dragging track corresponding to the first touch instruction.
In an embodiment, the first touch instruction is a pressing instruction, and the control unit 602 is further configured to, when controlling the first floating window according to the received first touch instruction:
and triggering the first floating window to change the operation mode under the condition that the pressing time of the first touch instruction is longer than a set threshold value.
In an embodiment, the changed operation mode is an editable mode, and the floating window control device is further configured to:
and receiving a second touch instruction, and controlling the display state of the first floating window according to the second touch instruction.
In an embodiment, the second touch instruction is a sliding instruction, and when the control unit 602 controls the display state of the first floating window according to the second touch instruction, the control unit is further configured to:
according to the sliding direction of the second touch instruction, one of the following operations is correspondingly performed on the first floating window:
closing the first floating window;
and switching the first floating window to a full-screen display mode.
And switching the first floating window to background operation.
In practical application, the receiving unit 601 and the control unit 602 may be implemented by a processor in the floating window control device. Of course, the processor needs to execute the program stored in the memory to realize the functions of the program modules.
It should be noted that, in the floating window control device provided in the embodiment of fig. 6, only the division of the program modules is used for illustration, and in practical application, the process allocation may be performed by different program modules according to needs, i.e. the internal structure of the device is divided into different program modules to complete all or part of the processes described above. In addition, the floating window control device and the floating window control method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not repeated herein.
Based on the hardware implementation of the program module, and in order to implement the method of the embodiment of the present application, the embodiment of the present application further provides an electronic device, and fig. 7 is a schematic diagram of a hardware composition structure of the electronic device of the embodiment of the present application, as shown in fig. 7, where the electronic device includes:
a communication interface 1 capable of information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment and is used for executing the floating window control method provided by one or more technical schemes when running the computer program. And the computer program is stored on the memory 3.
Of course, in practice, the various components in the electronic device are coupled together by a bus system 4. It will be appreciated that the bus system 4 is used to enable connected communications between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. But for clarity of illustration the various buses are labeled as bus system 4 in fig. 7.
The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory 3 described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiment of the present application may be applied to the processor 2 or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 2 or by instructions in the form of software. The processor 2 described above may be a general purpose processor, DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps and logic blocks disclosed in embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the application can be directly embodied in the hardware of the decoding processor or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium in the memory 3 and the processor 2 reads the program in the memory 3 to perform the steps of the method described above in connection with its hardware.
The corresponding flow in each method of the embodiments of the present application is implemented when the processor 2 executes the program, and for brevity, will not be described in detail herein.
In an exemplary embodiment, the present application also provides a storage medium, i.e. a computer storage medium, in particular a computer readable storage medium, for example comprising a memory 3 storing a computer program executable by the processor 2 for performing the steps of the method described above. The computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, terminal and method may be implemented in other manners. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Alternatively, the above-described integrated units of the present application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. A floating window control method, comprising:
receiving a first touch instruction in a first area of a first floating window; the first area is the bottom area of the first floating window; the first floating window is used for displaying the content of one application;
controlling the first floating window according to the received first touch instruction;
the receiving, at the first area of the first floating window, a first touch instruction includes: loading a first operation object in the first area according to a preset gesture; receiving a first touch instruction of the first operation object;
the first touch instruction is a pressing instruction, and the controlling the first floating window according to the received first touch instruction includes: triggering the first floating window to change an operation mode under the condition that the pressing time of the first touch instruction is longer than a set threshold value;
the changed operation mode is an editable mode, and the method further comprises:
receiving a second touch instruction, and controlling the display state of the first floating window according to the second touch instruction;
the receiving the second touch instruction, and controlling the display state of the first floating window according to the second touch instruction includes: when the second touch instruction slides rightwards, the first floating window is switched to background operation according to the second touch instruction, and floating windows corresponding to other applications are switched to foreground display, so that switching among the floating windows of different applications is realized.
2. The floating window control method according to claim 1, the first operation object comprising at least one of:
operating a button;
an operation bar.
3. The floating window control method according to claim 1, wherein the first touch command is a drag command, and the controlling the first floating window according to the received first touch command includes:
and controlling the first floating window to move from the starting point position of the first dragging track to the end point position of the first dragging track according to the first dragging track corresponding to the first touch instruction.
4. The floating window control method according to claim 1, wherein the second touch instruction is a sliding instruction; the controlling the display state of the first floating window according to the second touch instruction includes:
according to the sliding direction of the second touch instruction, one of the following operations is correspondingly performed on the first floating window:
closing the first floating window;
switching the first floating window to a full-screen display mode;
and switching the first floating window to background operation.
5. A floating window control device, characterized by comprising:
the receiving unit is used for receiving a first touch instruction in a first area of the first floating window; the first area is the bottom area of the first floating window; the first floating window is used for displaying the content of one application;
the control unit is used for controlling the first floating window according to the received first touch instruction;
the receiving unit is specifically configured to load a first operation object in the first area according to a preset gesture; receiving a first touch instruction of the first operation object;
the control unit is further configured to, when controlling the first floating window according to the received first touch instruction: triggering the first floating window to change an operation mode under the condition that the pressing time of the first touch instruction is longer than a set threshold value;
the changed operation mode is an editable mode, and the control unit is further used for receiving a second touch instruction and controlling the display state of the first floating window according to the second touch instruction;
the control unit is specifically configured to switch the first floating window to background operation according to the second touch instruction when the second touch instruction slides rightward, and switch floating windows corresponding to other applications to foreground display, so as to realize switching among floating windows of different applications.
6. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any of claims 1 to 4 when the computer program is run.
7. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method according to any of claims 1 to 4.
CN202110491610.6A 2021-05-06 2021-05-06 Floating window control method and device, electronic equipment and storage medium Active CN113190319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110491610.6A CN113190319B (en) 2021-05-06 2021-05-06 Floating window control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110491610.6A CN113190319B (en) 2021-05-06 2021-05-06 Floating window control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113190319A CN113190319A (en) 2021-07-30
CN113190319B true CN113190319B (en) 2023-10-17

Family

ID=76983919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110491610.6A Active CN113190319B (en) 2021-05-06 2021-05-06 Floating window control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113190319B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571803A (en) * 2013-10-29 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
CN106980441A (en) * 2017-03-29 2017-07-25 杭州弗凡科技有限公司 The suspension windows exchange method and vehicle mounted guidance terminal of vehicle mounted guidance terminal
CN109753256A (en) * 2018-03-29 2019-05-14 北京字节跳动网络技术有限公司 A kind of layout method, device and the equipment on window control column
CN110336923A (en) * 2019-07-16 2019-10-15 网易(杭州)网络有限公司 A kind of switching method of play mode, device, electronic equipment and storage medium
CN111158562A (en) * 2019-12-10 2020-05-15 维沃移动通信有限公司 False touch prevention method and electronic equipment
CN111273810A (en) * 2020-01-09 2020-06-12 RealMe重庆移动通信有限公司 Device control method, device, storage medium and electronic device
CN111562876A (en) * 2020-04-17 2020-08-21 深圳传音控股股份有限公司 Virtual keyboard setting method, equipment and storage medium
CN111966252A (en) * 2020-05-14 2020-11-20 华为技术有限公司 Application window display method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8307307B2 (en) * 2006-05-25 2012-11-06 Research In Motion Limited Method for prompting user confirmation
US9916072B2 (en) * 2013-02-20 2018-03-13 Lg Electronics Inc. Application and notification window display management in a mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571803A (en) * 2013-10-29 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
CN106980441A (en) * 2017-03-29 2017-07-25 杭州弗凡科技有限公司 The suspension windows exchange method and vehicle mounted guidance terminal of vehicle mounted guidance terminal
CN109753256A (en) * 2018-03-29 2019-05-14 北京字节跳动网络技术有限公司 A kind of layout method, device and the equipment on window control column
CN110336923A (en) * 2019-07-16 2019-10-15 网易(杭州)网络有限公司 A kind of switching method of play mode, device, electronic equipment and storage medium
CN111158562A (en) * 2019-12-10 2020-05-15 维沃移动通信有限公司 False touch prevention method and electronic equipment
CN111273810A (en) * 2020-01-09 2020-06-12 RealMe重庆移动通信有限公司 Device control method, device, storage medium and electronic device
CN111562876A (en) * 2020-04-17 2020-08-21 深圳传音控股股份有限公司 Virtual keyboard setting method, equipment and storage medium
CN111966252A (en) * 2020-05-14 2020-11-20 华为技术有限公司 Application window display method and electronic equipment

Also Published As

Publication number Publication date
CN113190319A (en) 2021-07-30

Similar Documents

Publication Publication Date Title
US20210011598A1 (en) Touch Operation Processing Method and Terminal Device
CN106990931B (en) Display method for terminal and terminal
WO2019041779A1 (en) Terminal interface switching, moving and gesture processing method and device and terminal
CN104778001A (en) Picture control method and picture control system
WO2016141807A1 (en) Method for displaying plurality of application windows on mobile terminal, and system thereof
CN105144061A (en) Screen control method and electronic device thereof
CN110196674B (en) Terminal interaction method, device, medium and terminal
WO2014134939A1 (en) Method, apparatus and computer readable storage medium for displaying sidebar information
EP2615536A2 (en) Apparatus and method for zooming touch screen in electronic device
CN104881207A (en) Display method and terminal
CN105094550A (en) Movement operation method and device for desktop icons
US20230091771A1 (en) Device Control Method, Storage Medium, and Non-Transitory Computer-Readable Electronic Device
CN105446641A (en) Touch screen icon one-hand operating method and system and mobile terminal
CN105045481A (en) Operation method and terminal
CN105204714A (en) Method for switching application interface and terminal
CN113190319B (en) Floating window control method and device, electronic equipment and storage medium
CN110088719B (en) Display method of mobile equipment and mobile equipment
CN110795015A (en) Operation prompting method, device, equipment and storage medium
CN112836156A (en) Page switching method and device, electronic equipment and computer readable storage medium
CN104765542A (en) Control method and terminal of display interface
CN114153535B (en) Method, apparatus, medium and program product for jumping pages on an open page
CN115469816A (en) Read-write switching method, device and equipment of memory and storage medium
CN105808302A (en) Smart card multi-application processing method, device and system
CN111399737B (en) Navigation bar control method and device, readable storage medium and electronic equipment
US10545661B2 (en) Touch screen device allowing selective input of free line, and method of supporting selective input of free line in touch screen device

Legal Events

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