WO2023029983A1 - 一种控件内容的拖拽方法、电子设备及系统 - Google Patents
一种控件内容的拖拽方法、电子设备及系统 Download PDFInfo
- Publication number
- WO2023029983A1 WO2023029983A1 PCT/CN2022/112820 CN2022112820W WO2023029983A1 WO 2023029983 A1 WO2023029983 A1 WO 2023029983A1 CN 2022112820 W CN2022112820 W CN 2022112820W WO 2023029983 A1 WO2023029983 A1 WO 2023029983A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- window
- dragging
- control
- electronic device
- drag
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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/04883—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04803—Split screen, i.e. subdividing the display area or the window area into separate subareas
Definitions
- the present application relates to the technical field of terminals, and in particular to a method for dragging and dropping control content, electronic equipment and a system.
- users can drag and drop the content of controls in one window to other windows.
- two windows are displayed on the display screen of the mobile phone, which are application window 1 and application window 2 respectively.
- there is a photo in window 1, such as photo A assuming that the user presses and holds photo A, and the application corresponding to application window 1 can detect the long-press event, and then invoke the system interface to start the dragging function.
- the user can perform a drag operation.
- the user drags the photo A to the application window 2
- the user can let go, and the application corresponding to the application window 2 can display the photo A in the application window 2.
- the application corresponding to the window needs to be adapted to the dragging function, and the dragging function is actively triggered by the application. If the application is not adapted to the dragging function, photo A cannot be dragged.
- the present application provides a drag-and-drop method for control content, electronic equipment and a system, which are used to solve the problems in the prior art that a drag-and-drop function needs to be adapted, resulting in a large adaptation workload and poor user experience.
- the present application provides a method for dragging control content, the method includes: a first electronic device displays a first window and a second window, wherein the first window and the second window belong to the same application or different applications.
- the dragging unit in the first electronic device detects a long-press operation on the first control in the first window, and the dragging unit does not belong to the application to which the first window belongs and the application to which the second window belongs, and then the dragging unit responds A drag operation with a long press operation as the drag start operation, transfers the content of the first control from the first window to the second window, and the drag operation is used to drag the content of the first control from the first window to the Second window.
- the user's long-press operation is detected by the drag unit in the electronic device, and the drag function is triggered without application adaptation of the drag function, which can reduce the workload of application adaptation and improve user experience.
- the dragging unit belongs to the operating system of the first electronic device.
- the operating system of the electronic device can be used to drag and drop the content of the control, instead of the application to which the window belongs to detect and trigger the drag function, which can improve user experience.
- the dragging unit belongs to the framework layer of the operating system.
- the drag unit in the first electronic device detects a long press operation on the first control in the first window, including: determining the The long press operation is a long press operation on the first control in the first window.
- the long-press operation is a long-press operation on the first control, that is, it can be determined which control the user long-pressed.
- the method further includes: the dragging unit determines, according to the control type of the first control, that the first control supports a drag function.
- control type can be used to judge whether the control supports the drag function, and when it is determined that the control supports the drag function, the content of the control can be obtained, and then the content of the control can be transmitted to other windows.
- the dragging unit transfers the content of the first control from the first window to the second window, including:
- the dragging unit detects a dragging end operation; the dragging unit determines the first input control in the second window according to the position of the dragging end operation; The content of is used as the input content of the first input control.
- the input control in the second window can be determined according to the position where the dragging operation ends, and then the content of the control can be passed to the second window as the input content of the input control.
- the dragging unit determines the first input control in the second window according to the position where the dragging operation ends, including:
- the dragging unit determines the window where the dragging operation ends as the second window according to the position where the dragging operation ends; the dragging unit uses the control in the input state in the second window as the second window An input control, or an input control in the second window that is closest to the position where the dragging operation ends is used as the first input control.
- the dragging unit in the electronic device can first determine the window where the dragging operation is completed according to the position where the dragging operation is completed, and then determine the input control of the content of the control in the window where the dragging operation is completed.
- the method before transferring the content of the first control from the first window to the second window, the method further includes: judging whether the application to which the first window belongs The operation of transferring the content of the first control from the first window to the second window. If the application has started the operation of transferring the content of the first control from the first window to the second window, the dragging unit does not perform the drag function; if the application has not started, the content of the first control is transferred from the first window to the second window. window operation, the dragging unit triggers the dragging function to perform the operation of transferring the content of the first control from the first window to the second window.
- the method further includes: judging whether the first input control listens to a dragging end event. If the first input control listens to the drag end event, the drag unit does not execute the step of passing the content of the first control to the second window; if the first input control does not monitor the drag end event, the drag unit executes the The step of passing the content of the first control to the second window.
- the present application also provides a method for dragging control content, which is applied to a system composed of a first electronic device and a second electronic device, and the method includes:
- the first electronic device displays a first window and a second window, wherein the first window is an application window of the first electronic device, and the second window is an application window projected from the second electronic device to the first electronic device;
- the first electronic The device detects a drag-and-drop end operation of a drag-and-drop operation, and the drag-and-drop operation is used to drag the content of the first control of the first window from the first window to the second window;
- the first electronic device sends the drag and drop operation to the second electronic device
- the drag end event, the drag end event includes the position of the drag end operation and the content of the first control;
- the second drag unit in the second electronic device receives the drag end event sent by the first electronic device, and the second drag The unit does not belong to the application to which the second window belongs;
- the second dragging unit transfers the content of the first control to the second window according to the position where the dragging operation ends.
- the second dragging unit transfers the content of the first control to the second window according to the position where the dragging operation ends, including:
- the second dragging unit determines the first input control in the second window according to the position where the dragging operation ends, and uses the content of the first control as an input of the first input control.
- the first electronic device before the first electronic device detects the end operation of the drag operation, the first electronic device further includes: the first drag unit in the first electronic device detects a long press on the first control Operation, the dragging unit does not belong to the application to which the first window belongs. The first dragging unit responds to the dragging operation with the long press operation as the dragging start operation, and acquires the information of the first control. content.
- the first drag unit belongs to the operating system of the first electronic device
- the second drag unit belongs to the operating system of the second electronic device.
- the first drag unit in the first electronic device detects a long press operation on the first control, including:
- the first drag unit in the first electronic device determines, according to the position of the long press operation, that the long press operation is a long press operation on the first control in the first window.
- the method further includes :
- the first dragging unit determines that the first widget supports a dragging function according to the widget type of the first widget.
- the second dragging unit determines the first input control in the second window according to the position where the dragging operation ends, including:
- the second dragging unit determines, according to the position where the dragging ends, that the window where the dragging ends is located as the second window; the second dragging unit takes the control in the input state in the second window as the first input control; or use the control closest to the position where the dragging operation ends in the second window as the first input control.
- the present application also provides a method for dragging control content, which is applied to a first electronic device, and the method includes: the first electronic device displays a first window and a second window, wherein the first window is the The application window of the first electronic device, the second window is the application window projected by the second electronic device to the first electronic device; the first electronic device detects the dragging end operation of the drag operation, and the The drag operation is used to drag the content of the first control of the first window from the first window to the second window; the first electronic device sends a drag end event to the second electronic device to making the second dragging unit in the second electronic device transmit the content of the first control to the second window according to the position of the dragging end operation, and the dragging end event includes the dragging end operation The position and content of the first control.
- the method before the first electronic device detects a dragging end operation of the dragging operation, the method further includes:
- the first dragging unit in the first electronic device detects a long press operation on the first control, and the dragging unit does not belong to the application to which the first window belongs; the first dragging unit responds with the The long press operation is the drag operation of the drag start operation, and the content of the first control is acquired.
- the first dragging unit belongs to the operating system of the first electronic device.
- the first drag unit in the first electronic device detects a long press operation on the first control, including:
- the first drag unit in the first electronic device determines, according to the position of the long press operation, that the long press operation is a long press operation on the first control in the first window.
- the method After the first dragging unit in the first electronic device detects a long press operation on the first control and before detecting a dragging end operation of a dragging operation, the method also includes:
- the first dragging unit determines that the first widget supports a dragging function according to the widget type of the first widget.
- the present application also provides a dragging method for widget content, which is applied to a second electronic device, and the method includes: the second dragging unit in the second electronic device receives the dragging and dropping method sent by the first electronic device An end event, the drag end event includes the position of the drag end operation and the content of the first control; the second drag unit does not belong to the application to which the second window belongs; the second drag The dragging unit transfers the content of the first control to the second window according to the position where the dragging operation ends.
- the second dragging unit transfers the content of the first control to the second window according to the position where the dragging operation ends, including:
- the second dragging unit determines the first input control in the second window according to the position where the dragging operation ends, and uses the content of the first control as an input of the first input control.
- the second drag unit belongs to the operating system of the second electronic device.
- the second dragging unit determines the first input control in the second window according to the position where the dragging operation ends, including:
- the second dragging unit determines the window where the dragging operation ends as the second window according to the position where the dragging operation ends; the second dragging unit uses the control in the input state in the second window as the second window.
- An input control; or a control in the second window that is closest to the position where the dragging operation ends is used as the first input control.
- the present application also provides a method for dragging widget content, which is applied to a system composed of a first electronic device and a second electronic device, and the method includes:
- the first electronic device displays a first window and a second window, wherein the first window is an application window projected by the second electronic device onto the first electronic device, and the second window is an application window of the first electronic device;
- the device detects a long press operation on the first window, and sends a long press event to the second electronic device, and the long press event includes the coordinates of the long press operation;
- the second drag unit in the second electronic device receives the long press event, and Determine the first control in the first window according to the coordinates of the long press operation, and obtain the content of the first control, the second dragging unit does not belong to the application to which the first window belongs;
- the second dragging unit sends the first electronic device to the first electronic device Content of a control;
- the first electronic device transmits the content of the first control to the second window when detecting the end operation of the drag operation, and the drag operation is used to drag the content of the first control from the first window to the second window.
- the first electronic device transmits the content of the first control to the second window when detecting a dragging end operation of the dragging operation, including:
- the first dragging unit in the first electronic device transmits the content of the first control to the second window when detecting the dragging end operation of the dragging operation, and the first dragging unit does not belong to The application to which the second window belongs.
- the first dragging unit belongs to the operating system of the first electronic device
- the second dragging unit belongs to the operating system of the second electronic device.
- the method before the second drag unit in the second electronic device obtains the content of the first control, the method further includes:
- the second dragging unit determines that the first widget supports a dragging function according to the widget type of the first widget.
- the first dragging unit in the first electronic device transmits the content of the first control to the second window when a dragging end operation of the dragging operation is detected, including :
- the first dragging unit determines the first input control in the second window according to the position where the dragging operation ends;
- the first dragging unit uses the content of the first control as the input content of the first input control.
- the first dragging unit determines the first input control in the second window according to the position where the dragging operation ends, including:
- the first dragging unit determines that the window where the dragging operation ends is the second window according to the position where the dragging operation ends; As the first input control, or the control in the second window that is closest to the position where the dragging operation ends is used as the first input control.
- the present application further provides a method for dragging control content, which is applied to a first electronic device, and the method includes: the first electronic device displays a first window and a second window, wherein the first window is the first window The second electronic device projects the screen to the application window on the first electronic device, and the second window is the application window of the first electronic device; the first electronic device detects a long press operation on the first window, And send a long press event to the second electronic device, the long press event includes the coordinates of the long press operation; the first electronic device receives the content of the first control sent by the second electronic device, and detects the drag When the operation of dragging ends, the content of the first control is transferred to the second window, and the drag operation is used to drag the content of the first control from the first window to the second window. Two windows.
- the first electronic device transmits the content of the first control to the second window when detecting a dragging end operation of the dragging operation, including:
- the first dragging unit in the first electronic device transmits the content of the first control to the second window when detecting the dragging end operation of the dragging operation, and the first dragging unit does not belong to The application to which the second window belongs.
- the first dragging unit belongs to the operating system of the first electronic device.
- the first dragging unit in the first electronic device transmits the content of the first control to the second window when detecting a dragging end operation of the dragging operation, including:
- the first dragging unit determines the first input control in the second window according to the position where the dragging operation ends; the first dragging unit uses the content of the first control as the input content of the first input control .
- the first dragging unit determines the first input control in the second window according to the position where the dragging operation ends, including:
- the first dragging unit determines that the window where the dragging operation is completed is the second window according to the position where the dragging operation ends; the first dragging unit uses the control in the input state in the second window as the second window. An input control, or the control in the second window that is closest to the position where the dragging operation ends is used as the first input control.
- the present application further provides a method for dragging control content, which is applied to a second electronic device, and the method includes: the second drag unit in the second electronic device receives a long press event, and the long press event includes The coordinates of the long press operation; determine the first control in the first window according to the coordinates of the long press operation, and obtain the content of the first control, and the second drag unit does not belong to the first control An application to which a window belongs; the second dragging unit sends the content of the first control to the first electronic device, so that the first electronic device will The content of the first control is passed to the second window.
- the second drag unit belongs to the operating system of the second electronic device.
- the method before the second drag unit in the second electronic device obtains the content of the first control, the method further includes:
- the second dragging unit determines that the first widget supports a dragging function according to the widget type of the first widget.
- the present application also provides a dragging method for widget content, the method comprising: the second electronic device projects the first window and the second window to the first electronic device; the dragging unit of the second electronic device receives The long press event sent by the first electronic device, the long press event includes the coordinates of the long press operation on the first window displayed on the first electronic device, and the drag unit does not belong to the application to which the first window belongs and the second window For the application they belong to, the first window and the second window belong to the same application or different applications; the second electronic device determines the first control of the first window according to the coordinates of the long press operation, and obtains the content of the first control; the drag unit receives the second A drag end event sent by an electronic device, where the drag end event includes a position of a drag end operation of a drag operation, and the drag operation is used to drag the content of the first control from the first window Dragging to the second window, the dragging start operation of the dragging operation is the long press operation; the dragging unit transfers the content of the first control
- the dragging unit belongs to the operating system of the second electronic device.
- the dragging unit belongs to the framework layer of the operating system.
- the method before the second electronic device obtains the content of the first control, the method further includes:
- the dragging unit determines that the first widget supports a dragging function according to the widget type of the first widget.
- the dragging unit transfers the content of the first control to the second window according to the coordinates at which the dragging operation ends, including:
- the dragging unit determines the first input control in the second window according to the position where the dragging operation ends; the dragging unit uses the content of the first control as the input content of the first input control .
- the dragging unit determines the first input control in the second window according to the position where the dragging operation ends, including:
- the dragging unit determines the window where the dragging operation ends as the second window according to the position where the dragging operation ends; the dragging unit uses the control in the input state in the second window as the second window An input control, or the control in the second window that is closest to the position where the dragging operation ends is used as the first input control.
- the present application provides a drag-and-drop system for control content
- the system includes a first electronic device and a second electronic device; wherein the first electronic device is used to display the first window and the second window, wherein the The first window is the application window of the first electronic device, and the second window is the application window projected from the second electronic device to the first electronic device; the first electronic device is also used to detect When the dragging end operation of the dragging operation is performed, a dragging end event is sent to the second electronic device, and the dragging end event includes the position of the dragging end operation and the content of the first control, and the dragging end event includes the position of the dragging end operation and the content of the first control.
- the drag operation is used to drag the content of the first control of the first window from the first window to the second window; the second drag unit in the second electronic device is used to receive the first electronic In the dragging end event sent by the device, the second dragging unit does not belong to the application to which the second window belongs; the second dragging unit is also used to move the The content of the first control is passed to the second window.
- the present application provides a drag-and-drop system for control content
- the system includes a first electronic device and a second electronic device; wherein the first electronic device is used to display the first window and the second window, wherein the The first window is the application window projected by the second electronic device to the first electronic device, and the second window is the application window of the first electronic device; the first electronic device is also used to detect When a long press operation is performed on the first window, a long press event is sent to the second electronic device, and the long press event includes the coordinates of the long press operation; the second drag in the second electronic device
- the unit is used to receive the long press event, determine the first control in the first window according to the coordinates of the long press operation, and obtain the content of the first control, and the second drag unit does not belong to The application to which the first window belongs; the second dragging unit is used to send the content of the first control to the first electronic device; When the dragging operation ends, the content of the first control is transferred to the second window, and the dragging operation is
- the present application provides an electronic device, which includes a display screen; one or more processors; one or more memories; one or more sensors; program; wherein said one or more computer programs are stored in said one or more memories, said one or more computer programs comprising instructions which, when called for execution by said one or more processors , so that the electronic device executes the method of any possible design of the first aspect, the third aspect, the fourth aspect, the sixth aspect, the seventh aspect, and the eighth aspect. It should be noted that the electronic device may be the first electronic device or the second electronic device.
- the present application also provides an electronic device, the electronic device includes the implementation of the first aspect, the third aspect, the fourth aspect, the sixth aspect, the seventh aspect, the eighth aspect or the first aspect, the third aspect , the modules/units of any one of the possible design methods of the fourth aspect, the sixth aspect, the seventh aspect, and the eighth aspect; these modules/units can be implemented by hardware, or can be implemented by executing corresponding software through hardware.
- the present application also provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on an electronic device, the electronic device executes the first aspect,
- the present application further provides a computer program product, which, when the computer program product runs on the electronic device, causes the electronic device to execute the first aspect, the third aspect, the fourth aspect, and The sixth aspect, the seventh aspect, the eighth aspect and any possible design method of the first aspect, the third aspect, the fourth aspect, the sixth aspect, the seventh aspect, and the eighth aspect.
- FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
- FIG. 2A is a schematic diagram of a software architecture provided by an embodiment of the present application.
- FIG. 2B is a schematic diagram of another software architecture provided by the embodiment of the present application.
- FIG. 3 is a schematic diagram of an application scenario provided by an embodiment of the present application.
- FIG. 4A is a flow chart of a method for dragging and dropping control content provided by an embodiment of the present application
- FIG. 4B is a flow chart of a method for dragging out control content provided by an embodiment of the present application.
- FIG. 4C is an interactive schematic diagram of a method for dragging out control content provided by an embodiment of the present application.
- FIG. 5A is a schematic diagram of a method for receiving control content provided by an embodiment of the present application.
- FIG. 5B is an interaction flowchart of a drag-in process of control content provided by the embodiment of the present application.
- FIG. 6A is a schematic diagram of the user interface provided by the embodiment of the present application.
- FIG. 6B is a schematic diagram of the user interface provided by the embodiment of the present application.
- FIG. 6C is a schematic diagram of the user interface provided by the embodiment of the present application.
- FIG. 7 is a schematic diagram of a user interface provided by an embodiment of the present application.
- FIG. 8A is a flow chart of a method for dragging and dropping control content in a multi-device scenario provided by an embodiment of the present application
- FIG. 8B is an interactive flow chart of a method for receiving widget content provided by an embodiment of the present application.
- FIG. 9 is a schematic diagram of a user interface provided by an embodiment of the present application.
- FIG. 10A is a flow chart of a method for dragging and dropping control content provided by an embodiment of the present application.
- FIG. 10B is a flow chart of a method for dragging out control content provided by an embodiment of the present application.
- FIG. 11 is a flow chart of a method for dragging and dropping control content provided by an embodiment of the present application.
- FIG. 12 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
- the application program (abbreviated as application) involved in the embodiment of the present application is a software program capable of realizing one or more specific functions.
- multiple applications can be installed in an electronic device.
- camera application SMS application
- email application email application
- video application music application
- WeLink etc.
- the applications mentioned below may be the applications installed on the electronic device when it leaves the factory, or the applications downloaded by the user from the network or obtained from other electronic devices during the use of the electronic device.
- the dragging method of the control content provided by the embodiment of the present application can be applied to any electronic device with a display screen, such as a mobile phone, a tablet computer, a wearable device (for example, a watch, a bracelet, a smart helmet, a smart Glasses, etc.), automotive equipment, augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) equipment, notebook computers, ultra-mobile personal computers (ultra-mobile personal computer, UMPC), netbooks, personal digital assistants (personal digital assistant, PDA), etc., which are not limited in the embodiment of the present application.
- exemplary embodiments of electronic devices include, but are not limited to, carrying Or electronic equipment with other operating systems.
- the method for dragging and dropping control content may be applicable to a single electronic device, or may be applicable to multiple electronic devices, such as a scene of multi-screen collaboration.
- it can be applied to the control dragging between different windows on the mobile phone, or the mobile phone can be projected to the laptop, and then applied to the control dragging between the screen projection window and the local window on the laptop.
- different windows on the mobile phone may correspond to different application programs, and may also be different windows of the same application program.
- mobile phone 100 can comprise processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charging management module 140, power management module 141, battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. Wherein, the controller may be the nerve center and command center of the mobile phone 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
- the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transmit data between the mobile phone 100 and peripheral devices.
- the charging management module 140 is configured to receive a charging input from a charger.
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in handset 100 can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the mobile phone 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
- at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
- the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. applied on the mobile phone 100 (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the antenna 1 of the mobile phone 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), the fifth generation (the fifth generation , 5G) mobile communication system, future communication system, such as the sixth generation (6th generation, 6G) system, BT, GNSS, WLAN, NFC, FM and/or IR technology, etc.
- GSM global system for mobile communications
- GPRS general packet radio service
- code division multiple access code division multiple access
- CDMA broadband Code division multiple access
- WCDMA wideband code division multiple access
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- Beidou navigation satellite system beidou navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the display screen 194 is used to display the display interface of the application and the like.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the display screen 194 can be used to simultaneously display multiple application interfaces.
- Camera 193 is used to capture still images or video.
- the camera 193 may include a front camera and a rear camera.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the processor 110 executes various functional applications and data processing of the mobile phone 100 by executing instructions stored in the internal memory 121 .
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the storage program area can store the operating system and software codes of at least one application program (such as iQiyi application, WeChat application, etc.).
- the data storage area can store data (such as images, videos, etc.) generated during the use of the mobile phone 100 .
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, save pictures, videos and other files in the external memory card.
- the mobile phone 100 can realize the audio function through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
- the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
- pressure sensor 180A may be disposed on display screen 194 .
- the gyroscope sensor 180B can be used to determine the motion posture of the mobile phone 100 .
- the angular velocity of the mobile phone 100 about three axes ie, x, y and z axes
- the gyroscope sensor 180B can be used to determine the motion posture of the mobile phone 100 .
- the angular velocity of the cell phone 100 about three axes may be determined by the gyroscope sensor 180B.
- the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the mobile phone 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the mobile phone 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the air pressure sensor 180C is used to measure air pressure.
- the mobile phone 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the mobile phone 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
- the mobile phone 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
- the acceleration sensor 180E can detect the acceleration of the mobile phone 100 in various directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
- the distance sensor 180F is used to measure the distance.
- the mobile phone 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the mobile phone 100 can use the distance sensor 180F for distance measurement to achieve fast focusing.
- Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
- the light emitting diodes may be infrared light emitting diodes.
- the mobile phone 100 emits infrared light through the light emitting diode.
- Cell phone 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the mobile phone 100 .
- the cell phone 100 may determine that there is no object in the vicinity of the cell phone 100 .
- the mobile phone 100 can use the proximity light sensor 180G to detect that the user is holding the mobile phone 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
- the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
- the ambient light sensor 180L is used for sensing ambient light brightness.
- the mobile phone 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile phone 100 is in the pocket to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the mobile phone 100 can use the collected fingerprint features to realize fingerprint unlocking, access to the application lock, take pictures with the fingerprint, answer calls with the fingerprint, and the like.
- the temperature sensor 180J is used to detect temperature.
- the mobile phone 100 uses the temperature detected by the temperature sensor 180J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the mobile phone 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
- the mobile phone 100 when the temperature is lower than another threshold, the mobile phone 100 heats the battery 142 to avoid abnormal shutdown of the mobile phone 100 due to low temperature.
- the mobile phone 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- Touch sensor 180K also known as "touch panel”.
- the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the mobile phone 100 , which is different from the position of the display screen 194 .
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal.
- the keys 190 include a power key, a volume key and the like.
- the key 190 may be a mechanical key. It can also be a touch button.
- the mobile phone 100 can receive key input and generate key signal input related to user settings and function control of the mobile phone 100 .
- the motor 191 can generate a vibrating reminder.
- the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects.
- the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
- the SIM card interface 195 is used for connecting a SIM card. The SIM card can be connected and separated from the mobile phone 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
- the components shown in Figure 1 do not constitute a specific limitation on the mobile phone, and the mobile phone may also include more or fewer components than shown in the figure, or combine some components, or split some components, or different layout of the components.
- the mobile phone 100 shown in FIG. 1 is taken as an example for introduction.
- the software system of the above-mentioned mobile phone 100 may adopt a layered architecture, including an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
- the Android system with layered architecture is taken as an example to illustrate the software structure of the mobile phone 100 .
- the system in the embodiment of the present application may also be the Hongmeng system, which is not limited in the present application.
- FIG. 2A is a block diagram of the software structure of the mobile phone 100 according to the embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
- the Android system is, from top to bottom, an application program layer, an application program framework layer, an Android runtime (Android runtime), a system library, a kernel layer, and a hardware layer.
- the application layer can consist of a series of application packages. As shown in FIG. 2A, browsers, Youku, Tencent Video, maps, iQiyi and other applications can be installed in the application layer.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer may include a layout subsystem module, an intelligent drag and drop management module, a native drag and drop module, an event management module, and a window display management module.
- the application framework layer may also include a display strategy service, a display manager service (DMS), a window manager, a content provider, a view system, a resource manager, a notification manager, and the like.
- DMS display manager service
- the layout subsystem module is responsible for system layout-related work. It can accurately find the corresponding layout control according to the coordinate point long-pressed by the user on the display screen, and can find the specified type of displayed control from the interface, such as an edit box.
- the intelligent drag and drop management module is a newly added module in this application, which is responsible for the management of system-level drag-and-drop related services, such as when to trigger a system-level drag-out event and when to trigger a system-level drag-in event.
- the native drag-and-drop module is responsible for the overall drag-and-drop process, such as the display of dragging interaction icons, process animations, etc.
- the window display management module is responsible for the management of the window display of the system, mainly including the management of window display size, display status, display level, focus management and other content.
- the event management module is responsible for the management and distribution of input events in the system.
- Android runtime includes core library and virtual machine.
- Android runtime is the runtime environment of the Android operating system, responsible for the scheduling and management of the Android operating system.
- the core library includes two parts: one part is the function function that the java language needs to call, and the other part is the core library of the Android operating system.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the media library supports audio and video playback and recording in multiple formats, and supports opening still images in multiple formats.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
- 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is a layer between the hardware and software of an electronic device.
- the kernel layer includes at least a display driver, a sensor driver, a camera driver, an audio driver, etc., and is used to drive hardware in the hardware layer.
- the hardware layer may include various sensors (such as touch sensors, etc.), display screens, cameras, and the like.
- window 1 includes multiple controls, such as control 1 and control 2 .
- the intelligent drag management module can find the type of the control according to the coordinate position of the control that the user long presses, for example, it can call the interface of the layout subsystem to find that the control is control 1, and then judge Whether the control 1 supports the drag function, if the control 1 supports the drag function, extract the content of the control 1, and process the extracted content.
- the intelligent drag-and-drop management module can call the startDragAndDrop() interface of the control object to start the drag-and-drop process, and the native drag-and-drop module can start the drag-and-drop function and execute the drag-and-drop motion effect.
- the user wants to drag control 1 from window 1 to window 2.
- the system can obtain the data in the drag event, and Find the edit box closest to the coordinates of the let go event, and write the data in the drag event, that is, the content of control 1 into the edit box, thereby dragging control 1 from window 1 to window 2.
- FIG. 2B is a schematic diagram of a software architecture in a multi-device collaboration scenario provided by an embodiment of the present application.
- the architecture may include an application layer, an application framework layer, and a driver layer.
- the application program layer on the source device side may include third-party applications and applications related to screen projection management, such as device connection applications.
- the application framework layer may include a layout subsystem, an intelligent drag-and-drop management module, a native drag-and-drop management module, a window display management module, an event management module, a cross-device connection management framework, and a data management layer.
- the driver layer includes a device discovery module, a device authentication module and a device connection module.
- the application layer on the target device side may include third-party applications and applications related to screen projection management, such as device connection applications and screen projection applications.
- the application framework layer may include a cross-device connection management framework, a basic framework (such as event management, window display, window management (DisplayManager)) and a data management layer.
- the driver layer includes a device discovery module, a device authentication module and a device connection module.
- the device connection application is used to manage the connection status between devices and the management of related services
- the screen projection display application is used to display the content of the screen projection window.
- the data management layer is responsible for data management in cross-device scenarios, responsible for transmitting layer data, audio and video data, etc. of the source device to the target device, and the target device transmits the anti-control event back to the source device to complete the event process.
- the driver layer provides capabilities such as device discovery, device authentication, and device connection. It should be understood that the function realization of the intelligent drag and drop management module, the native drag and drop module, the window display management module and the event management module can refer to the introduction in FIG. 2A , and will not be repeated here.
- the electronic device 2 may display a local window (for example, denoted as: local window 1) and a screen-casting window (for example, denoted as: screen-casting window 2 ).
- a local window for example, denoted as: local window 1
- a screen-casting window for example, denoted as: screen-casting window 2 .
- the electronic device 2 can convert the coordinate system of the source device and the target device, and send the long press event and the converted position coordinates of the control 1 to the electronic device 1 .
- the event management module of the electronic device 1 can notify the event to the smart drag management module, and the smart drag management module sends it to the layout subsystem according to the position coordinates of the control 1, and the layout subsystem Find the control identifier according to the position coordinates of the control 1, and notify the intelligent drag and drop management module of the found control identifier. Then, the intelligent drag management module of the electronic device 1 judges whether the control corresponding to the control identifier supports the drag function, and if it supports the drag function, the intelligent drag management module obtains the content of the control 1 .
- the intelligent drag management module of the electronic device 1 can send the content of the control 1 to the electronic device 2, and the electronic device 2 can call the startDragAndDrop() interface of the control object to start the drag-out process, and the native drag module can start the drag
- the function executes the drag animation. Since the receiving window is a local window on the electronic device 2, the receiving process of the control is the same as the receiving process in the single-device scenario. Please refer to the detailed description in FIG. 2A , which will not be repeated here.
- At least one of the following embodiments includes one or more; wherein, a plurality means greater than or equal to two.
- terms such as “first” and “second” are only used for the purpose of distinguishing description.
- FIG. 3 it is a schematic diagram of an application scenario provided by the embodiment of the present application.
- electronic device 1 can be interconnected with other multiple electronic devices (for example, electronic device 2) based on the communication network, and then electronic device 1 can project the content on its own display screen to the On the electronic device 2 , or the electronic device 2 can project and display the content on its own display screen to the electronic device 1 .
- electronic device 2 can project the content on its own display screen to the electronic device 1 .
- the communication network may be a local area network, such as a Wi-Fi hotspot network, a wireless fidelity-peer to peer (Wi-Fi P2P) network, a Bluetooth network, a zigbee network, or an NFC network.
- the multiple electronic devices may also establish wireless connections based on a mobile network, for example, the mobile network includes mobile networks established based on 2G, 3G, 4G, 5G and subsequent standard protocols.
- the plurality of electronic devices can also establish a connection with at least one server through a mobile network, and each device transmits data, and/or, messages, and/or, information, and/or, through the server signaling, and/or, instructions.
- the multiple electronic devices may also be connected through data lines.
- the multi-device application scenario in this embodiment of the present application may be applicable to a same-source screen projection scenario or a heterogeneous-source screen projection scenario, which is not specifically limited.
- devices in a multi-device scenario may be referred to as “source device” (or: second electronic device) and “target device” (or: first electronic device).
- FIG. 4A it is a flowchart of a method for dragging and dropping control content provided by the embodiment of the present application.
- the method may include the following steps:
- S41 The target device displays the first window and the second window.
- At least one window can be displayed on the electronic device.
- the two windows displayed on the display screen of a single device may be recorded as "the first window" and "the second window".
- the first window and the second window can be different windows of the same application program, and can also be windows of different application programs, which is not limited in this application.
- more windows can also be displayed on the display screen, which is not specifically limited in this application.
- the drag unit in the target device does not belong to the application to which the first window belongs and the application to which the second window belongs.
- the drag unit in the electronic device may belong to the operating system of the electronic device.
- the dragging unit may belong to the framework layer of the operating system.
- the dragging unit may also be a system application, which is not limited in this application.
- the drag unit in the target device responds to the drag operation with the long press operation as the drag start operation, and transfers the content of the first control from the first window to the second window.
- the drag operation is used to drag the content of the first control from the first window to the second window.
- FIG. 4B it is a flowchart of a method for dragging out control content provided by the embodiment of the present application.
- the method may include the following steps:
- S401 The electronic device displays a first window and a second window.
- S402 The drag unit in the electronic device receives a first trigger event.
- the first trigger event may be a user's long press event on a certain control in any window.
- the first trigger event may be a user's long press event on a picture.
- the first trigger event (or long press event) may include the coordinates of the long pressed control.
- the drag unit in the electronic device responds to the first trigger event, and determines whether the first control in the first window supports the drag function. If the first control supports the drag function, continue to execute S404, and if the first control does not support the drag function, then end without performing the following steps.
- control supporting the drag function can be understood as the drag unit in the electronic device can obtain the content of the control, so that the content of the control can be transmitted to other windows through the drag unit.
- the control to be dragged by the user may be referred to as "the first control" below. It should be understood that the first control may be a picture control, a text control or an edit box control, etc., which is not limited in this application.
- the drag unit in the electronic device when it detects the first trigger event, it can call the layout subsystem module to find the control corresponding to the coordinate according to the coordinate long pressed by the user, and then determine whether the control supports the drag function .
- the coordinates of the controls in the window may be stored in the system.
- the coordinates of the controls in the application window may refer to Table 1 below.
- window control control type coordinate window 1 control 1 Type A (X1, Y1) window 1 control 2 Type B (X2, Y2) window 2 control 3 Type A (X3, Y3) window 2 control 4 Type B (X4, Y4) window 2 control 5 Type C (X5, Y5)
- control 1 in window 1 and control 3 in window 2 may be controls of the same type (for example, type A).
- type A for example, type A
- Table 1 is only a schematic illustration, which is not limited in the present application.
- the application can configure whether the control supports the drag function. For example, the application can set a flag for the control in the window. For example, the control with the flag 1 can be set to support the drag function, and the control with the flag It is a control that does not support the drag and drop function.
- the system may set whether the control supports the dragging function.
- the system can set the control type as image to support the drag and drop function, and set the control type as text box to not support the drag and drop function. It should be noted that, for the same control, whether the system and application configurations support the drag-and-drop function may be the same, or may be different.
- the drag and drop function is supported, which is not limited in this application.
- the application configuration may determine whether to support the drag-and-drop function. For example, if the picture-type control configured by the application supports the drag function, but the picture-type control set by the system does not support the drag-and-drop function, then it can be determined that the picture-type control is a control that supports the drag-and-drop function.
- a whitelist and/or a blacklist may be stored in the system, wherein the whitelist may include control types that support the drag-and-drop function, and the blacklist may include control types that do not support the drag-and-drop function.
- the embodiment of the present application does not limit the priorities of the above two different setting modes, and the specific choice of application configuration or system configuration can be determined according to product policies.
- the picture-type control configured by the application supports the drag-and-drop function
- the picture-type control set by the system does not support the drag-and-drop function, but the product policy requires that the application configuration be selected.
- the priority of the application is higher than that of the system.
- S404 The drag unit in the electronic device acquires the content of the first control.
- the dragging unit of the electronic device may obtain the content of the dragged first control, for example, when the first control is a picture, the content of the picture and the screenshot of the picture may be obtained.
- Table 2 is only a schematic description, and there is no specific limitation on the method of extracting control content of other control types in this application.
- the extracted content needs to be format-converted, so that the format-converted picture can be displayed in the target window later.
- the mobile phone may extract content corresponding to the picture and a snapshot of the picture.
- the extracted content and the snapshot of the picture can be converted in format, for example, converted to JPG format. Of course, it can also be converted into other formats, which is not limited in this application.
- S405 The electronic device executes a dragging motion effect in response to a user's dragging operation on the first control.
- the user can perform a drag operation on the content of the first control, and the electronic device can detect a drag event, which can include drag data, such as It may include the content of the control (for displaying to the target window), the snapshot (or called: screenshot, for realizing the dragging effect), and the coordinates of the snapshot.
- a drag event which can include drag data, such as It may include the content of the control (for displaying to the target window), the snapshot (or called: screenshot, for realizing the dragging effect), and the coordinates of the snapshot.
- the user when the first control supports the drag function, the user can drag and drop the content of the first control.
- the electronic device can call the startDragAndDrop() interface of the control object to trigger the drag function.
- the native drag function of the electronic device The dragging module can respond to the user's dragging operation and perform dragging animation.
- the dragging unit of the electronic device can also determine whether the application to which the first window belongs has started to transfer the content of the first control to the second window.
- the dragging unit is an intelligent dragging module in the software architecture diagram shown in FIG. 2A as an example, and the above dragging process is introduced.
- FIG. 4C it is an interactive schematic diagram of a method for dragging out control content provided by the embodiment of the present application. Referring to FIG. 4C, the method may include:
- Step 1 The intelligent drag and drop management module of the electronic device receives a user's long press event.
- the intelligent drag management module can receive the user's long press event, and then call the layout subsystem to find the location coordinates of the long press by the user. Which control is the control.
- Step 2 The intelligent drag and drop management module of the electronic device judges whether the control long-pressed by the user supports drag and drop.
- the intelligent drag and drop management module can determine whether the control supports drag and drop according to the type of the control. If the control supports dragging, proceed to step 3.
- Step 3 The intelligent drag-and-drop management module of the electronic device obtains the content of the control.
- Step 4 The native dragging module of the electronic device responds to the user's dragging operation, and executes the dragging motion effect.
- S501 The drag unit in the electronic device detects a second trigger event.
- the second triggering event here may be an event that the user drags the first control from the first window to the second window and releases it in the second window.
- the second trigger event may include the drag data and the coordinates of the position of releasing the hand.
- the native dragging module can respond to the user's dragging operation, execute the dragging function, and execute the dragging motion effect, when the user drags the first control to the second window, the user can let go, at this time
- the native drag-and-drop module can detect the release event, and notify the intelligent drag-and-drop management module of the release event.
- the drag unit in the electronic device responds to a second trigger event, and determines in the second window the first input control that receives the content of the first control.
- the smart drag management module of the electronic device can respond to the let go event, call the interface of the window management module, and determine which window is the window that the user let go of according to the position coordinates of the let go, and then the smart drag management module can call
- the interface of the layout subsystem looks for the corresponding input control in the receiving window (ie, the second window).
- the input control may be an edit control
- the edit control is a rectangular control window, which is generally used to enable the user to input and edit text in a dialog box. The process of finding and determining the input control will be described in detail below.
- the drag unit detects the second trigger event, it can be judged whether the first input control has listened to the drag end event, and if the first input control has listened to the drag end event, this In the method of the embodiment of the application, if the first input control does not monitor the drag end event, execute the method of the embodiment of the application.
- S503 The drag unit in the electronic device uses the content of the first control as input content of the first input control.
- the dragging unit in the electronic device finds the first input control in the second window, it can use the content of the first control as the input content of the first input control, thereby realizing the Content is passed from the first window to the second window.
- the drag unit may display the content of the first control on the first input control.
- the second window is a chat window
- the first input control is an edit control of the chat window
- the content of the first control can be directly displayed in the edit control, and after the user clicks the "send" button, the content sent to the communication peer.
- the content of the first control may not be displayed in the edit control, but directly sent to the communication peer as the input content of the edit control.
- FIG. 5B it is an interactive flow chart of a process of dragging in control content provided by the embodiment of the present application.
- the method may include the following steps:
- Step 1 The native dragging module of the electronic device receives the dragging and dropping event, and sends the dragging and dropping event to the intelligent dragging and dropping management module.
- the drag-and-drop event may also be recorded as: a drag-and-drop event
- the release operation may also be recorded as: a drag-and-drop operation.
- Step 2 The intelligent drag-and-drop management module of the electronic device invokes the window management module, and searches for the window to be let go according to the position coordinates of the let go.
- Step 3 The intelligent drag-and-drop management module of the electronic device invokes the layout subsystem to search for input controls in the window.
- Step 4 The intelligent drag-and-drop management module of the electronic device obtains the drag-and-drop data, and calls the layout subsystem to fill the drag-and-drop data into the input control.
- the drag data includes the content of the control.
- the dragging unit (that is, the intelligent dragging management module in FIG. 5B ) can use the control in the input state in the second window as the first input control, or use the control in the second window and the dragging end The input control whose operating position is the closest is used as the first input control.
- the edit box receiving the first control may be marked as "the first edit box".
- the first edit box can be determined in the following way:
- the first edit box may be the edit box closest to the coordinates of the position where the user let go of the hand in the second window.
- the smart dragging module of the electronic device can call the interface of the window management module, obtain the window where the user is in according to the position coordinates of the user's release, and then call the interface of the layout subsystem to traverse the visible controls in the second window, Look for the corresponding edit control.
- the first edit box may be an edit box currently in an input state in the second window.
- the edit box currently in the input state may be an edit box being edited, such as an edit box on a chat interface, for example, may be a rectangular box where a user is editing a message.
- an edit box on a chat interface for example, may be a rectangular box where a user is editing a message.
- the second window is the window where the chat interface shown in the figure is located, at this time, the user can input the content of the message to be sent in the rectangular box 61 through the keyboard, and the rectangular box 61 can be understood as is an edit box in the input state, therefore, the rectangular box 61 can be used as the first edit box.
- mode 1 there may be a priority between mode 1 and mode 2, for example, the priority of mode 2 is higher than that of mode 1, that is, the electronic device can first search for the edit box currently in the input state as the first edit box , if not found, select the edit box closest to the release point as the first edit box.
- the first edit box is the edit box corresponding to the position where the user lets go.
- the position where the user let go is an example outside the edit box.
- the The edit box corresponding to the position where the user lets go is used as the first edit box.
- the first edit box may be the edit control 2 .
- the following takes a specific application scenario as an example to introduce the process of dragging out and dragging in the content of the above controls.
- two windows are displayed on the mobile phone, such as a first window and a second window.
- the first window and the second window are windows corresponding to different applications, such as the interface 600 shown in FIG. 6C, which includes the application window 601 of Taobao (a shopping application) and WeChat (a social Application window 602 of class application).
- the application window 601 of Taobao includes a slidable picture 603 .
- the user can long press the picture that he wants to drag in the slidable picture 603, such as long pressing the picture on the current page, and then the smart drag on the mobile phone
- the drag and drop management module can receive the long press event, and check whether the long pressed control supports dragging according to the location coordinates of the long press. Assuming that the picture is a control that supports dragging, the native dragging module can respond to the user's dragging operation, drag the picture 603 out of the application window 601 of Taobao, and drag the picture 603 to the application window 602 of WeChat.
- the mobile phone can find the first edit box in the application window 602 of WeChat, for example, it can be the current
- the edit box 611 is in the input state, and the dragged picture 603 is displayed in the edit box 611.
- the following describes the drag and drop scenario under multiple devices.
- it may include dragging the content of the control from the projection window to the local window, dragging the content of the control from the local window to the projection window, and dragging the content of the control from the projection window to the projection window scene.
- the two devices in the multi-device scenario may be referred to as “source device” and "target device”.
- the mobile phone can be the “source device”
- the tablet computer can be the “target device”
- the local window of the tablet computer is recorded as the "first window”
- the projection window of the mobile phone is recorded as the "second window” .
- Scenario 1 Drag and drop the content of the control from the local window to the projection window
- the laptop computer may include window 1 and window 2 .
- window 1 may be a local window of a notebook computer, such as a window of a Taobao application
- window 2 may be a screen projection window of a mobile phone, such as a window of a WeChat application.
- the specific implementation of dragging the content of the control can refer to the introduction of the embodiment shown in Figure 4B, which will not be repeated here Repeat.
- the screen projection window is a window actually running on the mobile phone (that is, the source device)
- the screen projection window needs to do cross-device processing when receiving the dragged control content .
- FIG. 8A it is a flowchart of a method for dragging and dropping control content in a multi-device scenario provided by the embodiment of the present application.
- the method may include the following steps:
- S81 The target device displays the first window and the second window.
- S82 The target device detects a dragging end operation of the dragging operation.
- the drag operation is used to drag the content of the first control of the first window from the first window to the second window.
- the dragging end event includes the position of the dragging end operation and the content of the first control.
- the drag unit in the source device receives a drag end event sent by the target device.
- the drag unit in the source device does not belong to the application to which the second window belongs.
- the drag unit in the source device may belong to the operating system of the source device, for example, may belong to the framework layer or system application of the operating system.
- the dragging unit in the source device transmits the content of the first control to the second window according to the position where the dragging operation ends.
- FIG. 8B it is an interactive flow chart of a control content receiving method provided in the embodiment of the present application.
- the method may include the following steps:
- the source device and the target device can establish a connection in advance to realize the screen projection function.
- the source device and the target device may establish a wireless connection through Wi-Fi, Bluetooth, etc., or may also establish a wired connection, which is not limited in this application.
- the process of implementing screen projection can refer to the implementation of the existing technology, and will not be repeated here.
- S801 The target device detects a third trigger event.
- the third trigger event may be a drag-and-drop event in which the user drags the control content to the second window of the target device.
- the third trigger event may include drag data (for example, the content of the control) and the coordinates of the position where the user let go.
- S802 The target device sends the third trigger event to the source device.
- the screen-casting APP on the target device can detect the drag-and-release event, and then transmit the drag-and-release event to the source device through the data channel, and the source device continues to process.
- the dragging unit in the source device determines the first input control in the second window according to the position where the dragging operation ends.
- the drag unit in the source device uses the content of the first control as input content of the first input control.
- the source device after the source device receives the third trigger event, it can determine which window corresponds to the coordinates of the user's hand release position according to the coordinates of the user's hand release position, and then determine in the second window the window that receives the content of the first control The first input control.
- This process is the same as the implementation process of S502 and S503 in the embodiment shown in FIG. 5A .
- S502 and S503 For details, refer to the detailed description in the embodiment shown in FIG. 5A , which will not be repeated here.
- the source device sends the updated content of the second window to the target device, so that the target device displays the updated content of the second window.
- the updated content of the second window includes the content of the first control.
- the projection display application can monitor the drag event in real time, and transmit the coordinates of the controls in the drag event to the source device in real time through a cross-device channel.
- the source device determines the window where the user releases the hand according to the coordinates of the control when the user releases the hand, and then searches for the input control in the window where the user releases the hand.
- Scenario 2 Drag and drop the content of the control from the projection window to the local window
- a laptop computer may include window 1 and window 2 .
- window 1 may be a local window of a notebook computer, such as a window of a WeChat application
- window 2 may be a screen projection window of a mobile phone, such as a window of a Taobao application.
- window 2 is a screen-casting window, that is, the window actually running on the mobile phone, it is necessary to do cross-device when dragging the content of the control. processing.
- FIG. 10A it is a flow chart of a method for dragging and dropping control content provided by the embodiment of the present application.
- the method may include the following steps:
- the target device displays a first window and a second window.
- S102 The target device detects a long press operation on the first window.
- the long press event includes coordinates of the long press operation.
- the drag unit in the source device receives the long press event, and determines the first control in the first window according to the coordinates of the long press operation.
- S106 The drag unit in the source device sends the content of the first control to the target device.
- the target device transmits the content of the first control to the second window when detecting a drag-and-drop end operation of the drag-and-drop operation.
- FIG. 10B it is a flowchart of a method for dragging out control content provided by the embodiment of the present application.
- the method may include the following steps:
- S1001 The target device receives a fourth trigger event.
- the fourth trigger event may be a long press event of the user on the first control on the second window of the target device.
- the long press event may include the coordinates of the long press position of the user.
- the coordinates of the user's long press position are the coordinates on the display on the source device, and the display screen sizes of the source device and the target device may be different. Therefore, the Convert the coordinates on the target device to the coordinates on the display on the source device to obtain the coordinates corresponding to the long-pressed position of the user on the target device. It should be understood that the coordinates of the user's long-press position included in the fourth trigger event refer to the coordinates on the display on the source device.
- S1002 The target device sends a fourth trigger event to the source device.
- the user's long press event on the target device can be sent to the event management module of the source device through a cross-device data transmission channel, and then the event management module will The long press event is sent to the smart drag and drop management module of the source device.
- S1003 The drag unit in the source device judges whether the first control supports the drag function, if the first control supports the drag function, continue to execute S1004, and if the first control does not support the drag function, end the step.
- steps S1003-S1005 is similar to that of S403-S405 in the embodiment shown in FIG. 4B .
- steps S1003-S1005 are similar to that of S403-S405 in the embodiment shown in FIG. 4B .
- steps S1003-S1005 are similar to that of S403-S405 in the embodiment shown in FIG. 4B .
- steps S1003-S1005 are similar to that of steps S1003-S1005 in the embodiment shown in FIG. 4B .
- the content of the first control can be dragged out from the screen projection window, and then the target device can respond to the user's dragging operation on the content of the first control, and execute the dragging motion effect.
- the user performs a drag action to drag the content of the first control to the local window of the target device and then lets go, for the local window, cross-device receiving is not involved.
- the above receiving method is the same, for details, please refer to the detailed introduction in the embodiment shown in FIG. 5A and FIG. 5B , and details will not be repeated here.
- Scenario 3 Drag and drop the content of the control from the screen projection window to the screen projection window
- window 1 and window 2 are both screen projection windows, and window 1 and window 2 can be the source device to project its entire screen to the target device. You can also cast the screen of the source device to the window on the target device. If the two windows are projected as a whole, the source device will perform the dragging effect, and the target device will only be used for displaying the effect; if the two windows are projected separately, the target device will perform the dragging effect .
- the target device is mainly used to display the screen projection window. Therefore, the following mainly introduces the steps performed by the source device.
- FIG. 11 it is a flowchart of a method for dragging and dropping control content provided by the embodiment of the present application.
- the method may include the following steps:
- S1101 The source device projects the first window and the second window to the target device.
- the drag unit of the source device receives a long press event sent by the target device.
- the long press event includes the coordinates of the long press operation on the first window displayed on the target device, the drag unit does not belong to the application to which the first window belongs and the application to which the second window belongs, and the first window and the second window The windows belong to the same application or different applications.
- the source device determines the first control of the first window according to the coordinates of the long press operation, and acquires the content of the first control.
- S1104 The drag unit of the source device receives a drag end event sent by the target device.
- the drag end event includes the position of the drag end operation of the drag operation, the drag operation is used to drag the content of the first control from the first window to the second window, and the drag operation of the drag operation
- the initial operation is a long press operation.
- S1105 The dragging unit of the source device transfers the content of the first control to the second window according to the position where the dragging operation ends.
- the dragging unit in the electronic device can be used to drag and drop the control content between two screen projection windows, without the application adaptation drag function, which can reduce the workload of application adaptation and improve user experience.
- the method provided in the embodiments of the present application is introduced from the perspective of an electronic device serving as an execution subject.
- the electronic device may include a hardware structure and/or a software module, and realize the above-mentioned functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
- the electronic device may be an electronic device with a display screen.
- the electronic device 1200 includes: a display screen 1201; one or more processors 1202; one or more memory 1203; one or more sensors 1204 (not shown in the figure), a plurality of applications 1205 (not shown in the figure); and one or more computer programs 1206 (not shown in the figure), the above-mentioned components can be connected through one or more communication buses 1207 .
- the electronic device shown in FIG. 12 may be applicable to the source device (second electronic device) in the foregoing embodiments, and may also be applicable to the target device (first electronic device) in the foregoing embodiments.
- the display screen 1201 is used for displaying a display interface of an application in the electronic device, or displaying a dragging motion effect.
- One or more computer programs are stored in the memory 1203, and the one or more computer programs include instructions; the processor 1202 invokes the instructions stored in the memory 1203, so that the electronic device 1200 can drag and drop the control content of the above-mentioned embodiment method.
- the display screen is used to display the first window and the second window; the processor is used to realize the function of the dragging unit (or the first dragging unit, the second dragging unit), and is also used to control the display screen to display first window and second window.
- the instruction includes an instruction of the operating system, and the instruction of the operating system includes an instruction for realizing the function of the drag unit (or the first drag unit, or the second drag unit).
- the electronic device 1200 when the instruction is invoked and executed by the processor 1202, the electronic device 1200 is made to perform the following steps: detecting a long press operation on the first control in the first window, the dragging The drag unit does not belong to the application to which the first window belongs and the application to which the second window belongs, and the first window and the second window belong to the same application or different applications;
- the drag operation of the initial operation is to transfer the content of the first control from the first window to the second window, and the drag operation is used to transfer the content of the first control from the first window to the second window. window dragged to the second window.
- the processor 1202 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement Or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application.
- a general purpose processor may be a microprocessor or any conventional processor or the like.
- the steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
- the software module may be located in the memory 1203, and the processor 1202 reads the program instructions in the memory 1203, and completes the steps of the above method in combination with its hardware.
- the memory 1203 may be a non-volatile memory, such as a hard disk (hard disk drive, HDD) or a solid-state drive (solid-state drive, SSD), etc., and may also be a volatile memory (volatile memory), For example RAM.
- the memory may also be, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
- the memory in the embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, and is used for storing instructions and/or data.
- the present application further provides a drag-and-drop system for widget content, and the system includes a first electronic device and a second electronic device.
- the first electronic device is used to display the first window and the second window, wherein the first window is the application window of the first electronic device, and the second window is the application window projected by the second electronic device to the first electronic device ;
- the first electronic device is further configured to send a drag end event to the second electronic device when a drag end operation of the drag operation is detected, and the drag end event includes the position of the drag end operation and the The content of the first control, the drag operation is used to drag the content of the first control of the first window from the first window to the second window; the second drag in the second electronic device
- the unit is used to receive the drag end event sent by the first electronic device, and the second drag unit does not belong to the application to which the second window belongs; the second drag unit is also used to The content of the first control is transferred to the second window at the position where the dragging ends.
- the present application also provides a drag-and-drop system for widget content, and the system includes a first electronic device and a second electronic device.
- the first electronic device is used to display the first window and the second window, wherein the first window is an application window projected by the second electronic device onto the first electronic device, and the second window is an application window of the first electronic device ;
- the first electronic device is also used to send a long press event to the second electronic device when a long press operation on the first window is detected, and the long press event includes the coordinates of the long press operation; in the second electronic device
- the second dragging unit is used to receive the long press event, and determine the first control in the first window according to the coordinates of the long press operation, and obtain the content of the first control, the second The dragging unit does not belong to the application to which the first window belongs; the second dragging unit is used to send the content of the first control to the first electronic device; When the dragging operation ends, the content of the first control is transferred to the second window, and the dragging operation
- the present application also provides a computer storage medium, where a computer program is stored, and when the computer program is executed by a computer, the computer executes the method provided by the above embodiments.
- Embodiments of the present application further provide a computer program product, including instructions, which, when run on a computer, cause the computer to execute the method provided in the above embodiments.
- Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by instructions. These instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine such that execution of the instructions by the processor of the computer or other programmable data processing device produces a Means for specifying functions in one or more steps of a flowchart and/or one or more blocks of a block diagram.
- These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
- the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请提供一种控件内容的拖拽方法、电子设备及系统。该方法包括:第一电子设备显示第一窗口和第二窗口;第一电子设备中的拖拽单元检测到对第一窗口中的第一控件的长按操作,该拖拽单元不属于第一窗口所属的应用和第二窗口所属的应用,第一窗口和第二窗口属于同一应用或不同应用;拖拽单元响应以长按操作为拖拽起始操作的拖拽操作,将第一控件的内容从第一窗口传给第二窗口。通过本申请的方法,可以实现利用电子设备中的拖拽单元将控件内容从一个窗口拖拽到另一个窗口,无需应用适配拖拽功能,能够减少应用适配的工作量,并且提升用户体验。
Description
相关申请的交叉引用
本申请要求在2021年08月31日提交中国专利局、申请号为202111015143.6、申请名称为“一种控件内容的拖拽方法、电子设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及终端技术领域,尤其涉及一种控件内容的拖拽方法、电子设备及系统。
为了更好的满足用户的使用需求,近年来电子设备的屏幕也越来越大,使得电子设备的显示屏上可以同时显示多个应用窗口。
目前,用户可以将一个窗口内的控件内容拖拽到其它的窗口。比如,手机的显示屏上显示了两个窗口,分别为应用窗口1和应用窗口2。其中,窗口1中有一张照片,比如照片A,假设用户长按照片A,此时应用窗口1对应的应用可检测到该长按事件,然后调用系统接口启动拖拽功能。接着,用户可执行拖拽操作,当用户将照片A拖动到应用窗口2后,用户可松手,应用窗口2对应的应用可将照片A显示在应用窗口2中。
在上述拖拽方法中,需要窗口对应的应用适配拖拽功能,并且是由应用主动触发拖拽功能,如果应用没有适配拖拽功能,则不能对照片A进行拖拽。
发明内容
本申请提供一种控件内容的拖拽方法、电子设备及系统,用以解决现有技术中需要应用适配拖拽功能导致适配工作量较大,且用户体验不佳的问题。
第一方面,本申请提供一种控件内容的拖拽方法,该方法包括:第一电子设备显示第一窗口和第二窗口,其中,第一窗口和第二窗口属于同一应用或不同应用。第一电子设备中的拖拽单元检测到对第一窗口中的第一控件的长按操作,该拖拽单元不属于第一窗口所属的应用和第二窗口所属的应用,然后拖拽单元响应以长按操作为拖拽起始操作的拖拽操作,将第一控件的内容从第一窗口传给第二窗口,该拖拽操作用于将第一控件的内容从第一窗口拖拽到第二窗口。
上述技术方案中,通过电子设备中的拖拽单元检测用户的长按操作,并触发拖拽功能,无需应用适配拖拽功能,能够减少应用适配的工作量,并且能够提升用户体验。
在一种可能的设计中,所述拖拽单元属于所述第一电子设备的操作系统。通过上述技术方案,可以利用电子设备的操作系统实现对控件内容的拖拽,而不是由窗口所属的应用检测并触发拖拽功能,能够提升用户体验。
在一种可能的设计中,所述拖拽单元属于所述操作系统的框架层。
在一种可能的设计中,所述第一电子设备中的拖拽单元检测到对所述第一窗口中的第一控件的长按操作,包括:根据所述长按操作的位置确定所述长按操作为对所述第一窗口 中的所述第一控件的长按操作。
通过上述技术方案,可通过长按操作的位置确定长按操作是对第一控件的长按操作,即能够确定出用户长按的控件是哪个控件。
在一种可能的设计中,所述第一电子设备中的拖拽单元检测到对所述第一窗口中的第一控件的长按操作之后,将所述第一控件的内容从所述第一窗口传给所述第二窗口之前,所述方法还包括:所述拖拽单元根据所述第一控件的控件类型确定所述第一控件支持拖拽功能。
通过上述技术方案,可利用控件类型判断控件是否支持拖拽功能,当确定控件支持拖拽功能时,能够获取到控件的内容,然后将控件的内容传输给其它窗口。
在一种可能的设计中,所述拖拽单元将所述第一控件的内容从所述第一窗口传给所述第二窗口,包括:
所述拖拽单元检测到拖拽结束操作;所述拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件;所述拖拽单元将所述第一控件的内容作为所述第一输入控件的输入内容。
通过上述技术方案,可以根据拖拽结束操作的位置确定第二窗口中的输入控件,进而将控件的内容作为输入控件的输入内容传给第二窗口。
在一种可能的设计中,所述拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,包括:
所述拖拽单元根据所述拖拽结束操作的位置确定所述拖拽结束操作所在的窗口为第二窗口;所述拖拽单元将所述第二窗口中处于输入状态的控件作为所述第一输入控件,或者将所述第二窗口中与所述拖拽结束操作的位置距离最近的输入控件作为所述第一输入控件。
通过上述技术方案,电子设备中的拖拽单元可以首先根据拖拽结束操作的位置确定拖拽结束操作所在的窗口,然后在拖拽结束操作所在的窗口中确定控件的内容的输入控件。
在一种可能的设计中,将所述第一控件的内容从所述第一窗口传给所述第二窗口之前所述方法还包括:判断所述第一窗口所属的应用是否已启动将所述第一控件的内容从所述第一窗口传给所述第二窗口的操作。若应用已启动将第一控件的内容从第一窗口传给第二窗口的操作,则拖拽单元不执行拖拽功能,若应用没有启动将第一控件的内容从第一窗口传输给第二窗口的操作,则拖拽单元触发拖拽功能,执行将第一控件的内容从第一窗口传到第二窗口的操作。
在一种可能的设计中,所述拖拽单元检测到拖拽结束操作之后,所述方法还包括:判断所述第一输入控件是否监听了拖拽结束事件。若第一输入控件监听了拖拽结束事件,则拖拽单元不执行将第一控件的内容传给第二窗口的步骤;若第一输入控件没有监听拖拽结束事件,则拖拽单元执行将第一控件的内容传给第二窗口的步骤。
第二方面,本申请还提供一种控件内容的拖拽方法,应用于包括第一电子设备和第二电子设备组成的系统,该方法包括:
第一电子设备显示第一窗口和第二窗口,其中,第一窗口为第一电子设备的应用窗口,第二窗口为第二电子设备投屏到第一电子设备上的应用窗口;第一电子设备检测到拖拽操作的拖拽结束操作,该拖拽操作用于将第一窗口的第一控件的内容从第一窗口拖拽到第二窗口;第一电子设备向第二电子设备发送拖拽结束事件,拖拽结束事件包括拖拽结束操作 的位置和第一控件的内容;第二电子设备中的第二拖拽单元接收第一电子设备发送的拖拽结束事件,该第二拖拽单元不属于第二窗口所属的应用;第二拖拽单元根据拖拽结束操作的位置将第一控件的内容传给第二窗口。
通过上述技术方案,可以实现投屏场景下,从电子设备的本地窗口中将控件内容拖拽到投屏窗口。并且,利用电子设备中的拖拽单元完成控件内容的接收,无需应用适配拖拽功能,可以通过系统触发控件内容的拖拽功能,实现控件内容的拖出和拖入,能够减少应用适配的工作量。
在一种可能的设计中,第二拖拽单元根据所述拖拽结束操作的位置将所述第一控件的内容传给所述第二窗口,包括:
第二拖拽单元根据拖拽结束操作的位置确定第二窗口中的第一输入控件,并将第一控件的内容作为所述第一输入控件的输入。
在一种可能的设计中,第一电子设备检测到拖拽操作的拖拽结束操作之前还包括:所述第一电子设备中的第一拖拽单元检测到对所述第一控件的长按操作,所述拖拽单元不属于所述第一窗口所属的应用述第一拖拽单元响应以所述长按操作为拖拽起始操作的所述拖拽操作,获取所述第一控件的内容。
在一种可能的设计中,第一拖拽单元属于第一电子设备的操作系统,第二拖拽单元属于第二电子设备的操作系统。
在一种可能的设计中,第一电子设备中的第一拖拽单元检测到对所述第一控件的长按操作,包括:
第一电子设备中的第一拖拽单元根据所述长按操作的位置,确定所述长按操作为对所述第一窗口中的所述第一控件的长按操作。
在一种可能的设计中,第一电子设备中的第一拖拽单元检测到对所述第一控件的长按操作之后,检测到拖拽操作的拖拽结束操作之前,所述方法还包括:
第一拖拽单元根据所述第一控件的控件类型确定所述第一控件支持拖拽功能。
在一种可能的设计中,第二拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,包括:
第二拖拽单元根据所述拖拽结束操作的位置确定拖拽结束操作所在的窗口为第二窗口;第二拖拽单元将所述第二窗口中处于输入状态的控件作为所述第一输入控件;或者将所述第二窗口中与所述拖拽结束操作的位置距离最近的控件作为所述第一输入控件。
第三方面,本申请还提供一种控件内容的拖拽方法,应用于第一电子设备,该方法包括:第一电子设备显示第一窗口和第二窗口,其中,所述第一窗口为所述第一电子设备的应用窗口,所述第二窗口为第二电子设备投屏到所述第一电子设备上的应用窗口;第一电子设备检测到拖拽操作的拖拽结束操作,所述拖拽操作用于将所述第一窗口的第一控件的内容从所述第一窗口拖拽到所述第二窗口;第一电子设备向所述第二电子设备发送拖拽结束事件,以使所述第二电子设备中的第二拖拽单元根据拖拽结束操作的位置将所述第一控件的内容传给所述第二窗口,所述拖拽结束事件包括所述拖拽结束操作的位置和所述第一控件的内容。
在一种可能的设计中,第一电子设备检测到拖拽操作的拖拽结束操作之前,所述方法还包括:
第一电子设备中的第一拖拽单元检测到对所述第一控件的长按操作,所述拖拽单元不 属于所述第一窗口所属的应用;所述第一拖拽单元响应以所述长按操作为拖拽起始操作的所述拖拽操作,获取所述第一控件的内容。
在一种可能的设计中,所述第一拖拽单元属于所述第一电子设备的操作系统。
在一种可能的设计中,所述第一电子设备中的第一拖拽单元检测到对所述第一控件的长按操作,包括:
所述第一电子设备中的第一拖拽单元根据所述长按操作的位置,确定所述长按操作为对所述第一窗口中的所述第一控件的长按操作。
在一种可能的设计中,所述第一电子设备中的第一拖拽单元检测到对所述第一控件的长按操作之后,检测到拖拽操作的拖拽结束操作之前,所述方法还包括:
第一拖拽单元根据所述第一控件的控件类型确定所述第一控件支持拖拽功能。
第四方面,本申请还提供一种控件内容的拖拽方法,应用于第二电子设备,该方法包括:第二电子设备中的第二拖拽单元接收所述第一电子设备发送的拖拽结束事件,所述拖拽结束事件包括所述拖拽结束操作的位置和所述第一控件的内容;所述第二拖拽单元不属于所述第二窗口所属的应用;所述第二拖拽单元根据所述拖拽结束操作的位置将所述第一控件的内容传给所述第二窗口。
在一种可能的设计中,第二拖拽单元根据所述拖拽结束操作的位置将所述第一控件的内容传给所述第二窗口,包括:
第二拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,并将所述第一控件的内容作为所述第一输入控件的输入。
在一种可能的设计中,第二拖拽单元属于所述第二电子设备的操作系统。
在一种可能的设计中,第二拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,包括:
第二拖拽单元根据所述拖拽结束操作的位置确定拖拽结束操作所在的窗口为第二窗口;所述第二拖拽单元将所述第二窗口中处于输入状态的控件作为所述第一输入控件;或者将所述第二窗口中与所述拖拽结束操作的位置距离最近的控件作为所述第一输入控件。
第五方面,本申请还提供一种控件内容的拖拽方法,应用于包括第一电子设备和第二电子设备组成的系统,该方法包括:
第一电子设备显示第一窗口和第二窗口,其中,第一窗口为第二电子设备投屏到第一电子设备上的应用窗口,第二窗口为第一电子设备的应用窗口;第一电子设备检测到对第一窗口的长按操作,并向第二电子设备发送长按事件,长按事件包括长按操作的坐标;第二电子设备中的第二拖拽单元接收长按事件,并根据长按操作的坐标确定第一窗口中的第一控件,并获取第一控件的内容,第二拖拽单元不属于第一窗口所属的应用;第二拖拽单元向第一电子设备发送第一控件的内容;第一电子设备在检测到拖拽操作的拖拽结束操作时将第一控件的内容传给第二窗口,拖拽操作用于将第一控件的内容从第一窗口拖拽到第二窗口。
通过上述技术方案,可以实现在投屏场景下,将投屏窗口中的控件内容拖拽到本地窗口,不需要应用适配拖拽功能,可以通过系统触发控件内容的拖拽功能,实现控件内容的拖出和拖入,能够减少应用适配的工作量。
在一种可能的设计中,所述第一电子设备在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,包括:
所述第一电子设备中的第一拖拽单元在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,所述第一拖拽单元不属于所述第二窗口所属的应用。
在一种可能的设计中,所述第一拖拽单元属于所述第一电子设备的操作系统,所述第二拖拽单元属于所述第二电子设备的操作系统。
在一种可能的设计中,所述第二电子设备中的第二拖拽单元获取所述第一控件的内容之前,所述方法还包括:
所述第二拖拽单元根据所述第一控件的控件类型确定所述第一控件支持拖拽功能。
在一种可能的设计中,所述第一电子设备中的第一拖拽单元在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,包括:
所述第一拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件;
所述第一拖拽单元将所述第一控件的内容作为所述第一输入控件的输入内容。
在一种可能的设计中,所述第一拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,包括:
所述第一拖拽单元根据所述拖拽结束操作的位置确定所述拖拽结束操作所在的窗口为第二窗口;所述第一拖拽单元将所述第二窗口中处于输入状态的控件作为所述第一输入控件,或者将所述第二窗口中与所述拖拽结束操作的位置距离最近的控件作为所述第一输入控件。
第六方面,本申请还提供一种控件内容的拖拽方法,应用于第一电子设备,该方法包括:第一电子设备显示第一窗口和第二窗口,其中,所述第一窗口为第二电子设备投屏到所述第一电子设备上的应用窗口,所述第二窗口为所述第一电子设备的应用窗口;第一电子设备检测到对所述第一窗口的长按操作,并向所述第二电子设备发送长按事件,所述长按事件包括所述长按操作的坐标;第一电子设备接收第二电子设备发送的第一控件的内容,并在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,所述拖拽操作用于将所述第一控件的内容从所述第一窗口拖拽到所述第二窗口。
在一种可能的设计中,所述第一电子设备在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,包括:
所述第一电子设备中的第一拖拽单元在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,所述第一拖拽单元不属于所述第二窗口所属的应用。
在一种可能的设计中,第一拖拽单元属于所述第一电子设备的操作系统。
在一种可能的设计中,第一电子设备中的第一拖拽单元在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,包括:
第一拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件;第一拖拽单元将所述第一控件的内容作为所述第一输入控件的输入内容。
在一种可能的设计中,所述第一拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,包括:
第一拖拽单元根据所述拖拽结束操作的位置确定所述拖拽结束操作所在的窗口为第二窗口;第一拖拽单元将所述第二窗口中处于输入状态的控件作为所述第一输入控件,或者将所述第二窗口中与所述拖拽结束操作的位置距离最近的控件作为所述第一输入控件。
第七方面,本申请还提供一种控件内容的拖拽方法,应用于第二电子设备,该方法包 括:第二电子设备中的第二拖拽单元接收长按事件,所述长按事件包括所述长按操作的坐标;根据所述长按操作的坐标确定所述第一窗口中的第一控件,并获取所述第一控件的内容,所述第二拖拽单元不属于所述第一窗口所属的应用;所述第二拖拽单元向所述第一电子设备发送所述第一控件的内容,以使所述第一电子设备在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口。
在一种可能的设计中,第二拖拽单元属于所述第二电子设备的操作系统。
在一种可能的设计中,第二电子设备中的第二拖拽单元获取所述第一控件的内容之前,所述方法还包括:
第二拖拽单元根据所述第一控件的控件类型确定所述第一控件支持拖拽功能。
第八方面,本申请还提供一种控件内容的拖拽方法,该方法包括:第二电子设备将第一窗口和第二窗口投屏到第一电子设备;第二电子设备的拖拽单元接收第一电子设备发送的长按事件,长按事件包括对第一电子设备上显示的第一窗口的长按操作的坐标,该拖拽单元不属于第一窗口所属的应用和所述第二窗口所属的应用,第一窗口和第二窗口属于同一应用或不同应用;第二电子设备根据长按操作的坐标确定第一窗口的第一控件,并获取第一控件的内容;拖拽单元接收第一电子设备发送的拖拽结束事件,所述拖拽结束事件包括拖拽操作的拖拽结束操作的位置,所述拖拽操作用于将所述第一控件的内容从所述第一窗口拖拽到所述第二窗口,所述拖拽操作的拖拽起始操作为所述长按操作;拖拽单元根据所述拖拽结束操作的位置将第一控件的内容传给第二窗口。
通过上述技术方案,可以实现投屏场景下,两个投屏窗口之间的控件内容的拖拽,不需要应用适配拖拽功能,可以通过系统触发控件内容的拖拽功能,实现控件内容的拖出和拖入,能够减少应用适配的工作量。
在一种可能的设计中,所述拖拽单元属于所述第二电子设备的操作系统。
在一种可能的设计中,所述拖拽单元属于所述操作系统的框架层。
在一种可能的设计中,所述第二电子设备获取所述第一控件的内容之前,所述方法还包括:
所述拖拽单元根据所述第一控件的控件类型确定所述第一控件支持拖拽功能。
在一种可能的设计中,所述拖拽单元根据所述拖拽结束操作的坐标将所述第一控件的内容传给所述第二窗口,包括:
所述拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件;所述拖拽单元将所述第一控件的内容作为所述第一输入控件的输入内容。
在一种可能的设计中,所述拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,包括:
所述拖拽单元根据所述拖拽结束操作的位置确定所述拖拽结束操作所在的窗口为第二窗口;所述拖拽单元将所述第二窗口中处于输入状态的控件作为所述第一输入控件,或者将所述第二窗口中与所述拖拽结束操作的位置距离最近的控件作为所述第一输入控件。
第九方面,本申请提供一种控件内容的拖拽系统,该系统包括第一电子设备和第二电子设备;其中,第一电子设备用于显示第一窗口和第二窗口,其中,所述第一窗口为所述第一电子设备的应用窗口,所述第二窗口为第二电子设备投屏到所述第一电子设备上的应用窗口;所述第一电子设备还用于在检测到拖拽操作的拖拽结束操作时,向所述第二电子设备发送拖拽结束事件,所述拖拽结束事件包括所述拖拽结束操作的位置和所述第一控件 的内容,所述拖拽操作用于将所述第一窗口的第一控件的内容从所述第一窗口拖拽到所述第二窗口;第二电子设备中的第二拖拽单元用于接收所述第一电子设备发送的所述拖拽结束事件,所述第二拖拽单元不属于所述第二窗口所属的应用;所述第二拖拽单元还用于根据所述拖拽结束操作的位置将所述第一控件的内容传给所述第二窗口。
第十方面,本申请提供一种控件内容的拖拽系统,该系统包括第一电子设备和第二电子设备;其中,第一电子设备用于显示第一窗口和第二窗口,其中,所述第一窗口为第二电子设备投屏到所述第一电子设备上的应用窗口,所述第二窗口为所述第一电子设备的应用窗口;所述第一电子设备还用于在检测到对所述第一窗口的长按操作时,向所述第二电子设备发送长按事件,所述长按事件包括所述长按操作的坐标;所述第二电子设备中的第二拖拽单元用于接收所述长按事件,并根据所述长按操作的坐标确定所述第一窗口中的第一控件,并获取所述第一控件的内容,所述第二拖拽单元不属于所述第一窗口所属的应用;所述第二拖拽单元用于向所述第一电子设备发送所述第一控件的内容;所述第一电子设备用于在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,所述拖拽操作用于将所述第一控件的内容从所述第一窗口拖拽到所述第二窗口。
第十一方面,本申请提供一种电子设备,所述电子设备包括显示屏;一个或多个处理器;一个或多个存储器;一个或多个传感器;多个应用;以及一个或多个计算机程序;其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器调用执行时,使得所述电子设备执行上述第一方面、第三方面、第四方面、第六方面、第七方面、第八方面任一可能设计的方法。需要说明的是,该电子设备可以为第一电子设备,也可以为第二电子设备。
第十二方面,本申请还提供一种电子设备,该电子设备包括执行第一方面、第三方面、第四方面、第六方面、第七方面、第八方面或者第一方面、第三方面、第四方面、第六方面、第七方面、第八方面的任意一种可能的设计的方法的模块/单元;这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。
第十三方面,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在电子设备上运行时,使得所述电子设备执行第一方面、第三方面、第四方面、第六方面、第七方面、第八方面及其第一方面、第三方面、第四方面、第六方面、第七方面、第八方面任一可能设计的方法。
第十四方面,本申请还提供一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行本申请实施例第一方面、第三方面、第四方面、第六方面、第七方面、第八方面及其第一方面、第三方面、第四方面、第六方面、第七方面、第八方面任一可能设计的方法。
上述第二方面至第十四方面中的各个方面以及各个方面可能达到的技术效果请参照上述针对第一方面中的各种可能方案可以达到的技术效果说明,这里不再重复赘述。
图1为本申请实施例提供的一种电子设备的结构示意图;
图2A为本申请实施例提供的一种软件架构示意图;
图2B为本申请实施例提供的另一种软件架构示意图;
图3为本申请实施例提供的一种应用场景示意图;
图4A为本申请实施例提供的一种控件内容的拖拽方法流程图;
图4B为本申请实施例提供的一种控件内容的拖出方法流程图;
图4C为本申请实施例提供的一种控件内容的拖出方法交互示意图;
图5A为本申请实施例提供的一种控件内容的接收方法示意图;
图5B为本申请实施例提供的一种控件内容的拖入过程交互流程图;
图6A为本申请实施例提供的用户界面示意图;
图6B为本申请实施例提供的用户界面示意图;
图6C为本申请实施例提供的用户界面示意图;
图7为本申请实施例提供的用户界面示意图;
图8A为本申请实施例提供的一种应用于多设备场景下的控件内容的拖拽方法流程图;
图8B为本申请实施例提供的一种控件内容接收方法交互流程图;
图9为本申请实施例提供的一种用户界面示意图;
图10A为本申请实施例提供的一种控件内容的拖拽方法流程图;
图10B为本申请实施例提供的一种控件内容的拖出方法流程图;
图11为本申请实施例提供的一种控件内容的拖拽方法流程图;
图12为本申请实施例提供的另一种电子设备的结构示意图。
下面将结合本申请以下实施例中的附图,对本申请实施例中的技术方案进行详尽描述。
本申请实施例涉及的应用程序(简称应用)为能够实现某项或多项特定功能的软件程序。通常,电子设备中可以安装多个应用。比如,相机应用、短信应用、邮箱应用、视频应用、音乐应用、WeLink等。下文中提到的应用,可以是电子设备出厂时已安装的应用,也可以是用户在使用电子设备的过程中从网络下载或其他电子设备获取的应用。
需要说明的是,本申请实施例提供的控件内容的拖拽方法,可以适用于具有显示屏的任何电子设备,诸如手机、平板电脑、可穿戴设备(例如,手表、手环、智能头盔,智能眼镜等)、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等,本申请实施例不作限定。并且,电子设备的示例性实施例包括但不限于搭载
或者其它操作系统的电子设备。
应理解,本申请实施例提供的控件内容的拖拽方法可以适用于单一电子设备,也可以适用于多个电子设备,比如多屏协同的场景。示例性的,可以应用于手机上的不同窗口之间的控件拖拽,也可以将手机投屏到笔记本电脑上,然后应用于投屏窗口与笔记本电脑上的本地窗口之间的控件拖拽。其中,手机上的不同窗口可以对应不同的应用程序,也可以为同一应用程序的不同窗口。
下面以手机为例,介绍电子设备的结构。
如图1所示,手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达 191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为手机100充电,也可以用于手机100与外围设备之间传输数据。充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。
手机100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在手机100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多 个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,手机100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),第五代(the fifth generation,5G)移动通信系统,未来通信系统,如第六代(6th generation,6G)系统等,BT,GNSS,WLAN,NFC,FM和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
显示屏194用于显示应用的显示界面等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。在本申请实施例中,显示屏194可用于同时显示多个应用界面。
摄像头193用于捕获静态图像或视频。摄像头193可以包括前置摄像头和后置摄像头。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,以及至少一个应用程序(例如爱奇艺应用,微信应用等)的软件代码等。存储数据区可存储手机100使用过程中所产生的数据(例如图像、视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。陀螺仪传感器180B可以用于确定手机100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定手机100围绕三个轴(即,x,y和z轴)的角速度。
陀螺仪传感器180B可以用于确定手机100的运动姿态。在一些实施例中,可以通过 陀螺仪传感器180B确定手机100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测手机100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消手机100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,手机100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。磁传感器180D包括霍尔传感器。手机100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当手机100是翻盖机时,手机100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。加速度传感器180E可检测手机100在各个方向上(一般为三轴)加速度的大小。当手机100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。手机100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,手机100可以利用距离传感器180F测距以实现快速对焦。接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。手机100通过发光二极管向外发射红外光。手机100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定手机100附近有物体。当检测到不充分的反射光时,手机100可以确定手机100附近没有物体。手机100可以利用接近光传感器180G检测用户手持手机100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。手机100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测手机100是否在口袋里,以防误触。指纹传感器180H用于采集指纹。手机100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,手机100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,手机100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,手机100对电池142加热,以避免低温导致手机100异常关机。在其他一些实施例中,当温度低于又一阈值时,手机100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。手机100可以接收按键输入,产生与手机100的用户设置以及功能控制有关的键信号输入。 马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和手机100的接触和分离。
可以理解的是,图1所示的部件并不构成对手机的具体限定,手机还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。以下的实施例中,以图1所示的手机100为例进行介绍。
上述手机100的软件系统可以采用分层架构,包括事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明手机100的软件结构。应理解,本申请实施例中的系统也可以为鸿蒙系统,本申请对此不作限定。
以下结合不同场景对电子设备的软件结构进行介绍。首先介绍单设备场景下的软件结构。图2A是本申请实施例的手机100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,Android系统从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)、系统库、内核层以及硬件层。
应用程序层可以包括一系列应用程序包。如图2A所示,应用程序层内可以安装浏览器,优酷,腾讯视频,地图,爱奇艺等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2A所示,应用程序框架层可以包括布局子系统模块、智能拖拽管理模块、原生拖拽模块、事件管理模块、窗口显示管理模块。当然,应用程序框架层中还可以包括显示策略服务、显示管理服务(display manager service,DMS)、窗口管理器,内容提供器,视图系统,资源管理器,通知管理器等。
其中,布局子系统模块负责系统布局相关工作,可以根据用户在显示屏上长按的坐标点精准找到对应的布局控件,并且能够从界面中找到指定类型的正在显示的控件,比如编辑框。
智能拖拽管理模块,为本申请中新增的模块,负责系统级拖拽相关业务的管理,比如何时触发系统级的拖出事件,何时触发系统级的拖入事件。
原生拖拽模块,负责整体拖拽的流程,比如拖动交互图标的显示,过程动效等。
窗口显示管理模块,负责系统的窗口显示的管理,主要包括对窗口显示的大小、显示状态、显示层级、焦点管理等内容的管理。
事件管理模块,负责系统中输入事件的管理和分发。
Android runtime包括核心库和虚拟机。Android runtime是Android操作系统的运行时环境,负责Android操作系统的调度和管理。
其中,核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是Android操作系统的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种格式的音频、视频的回放和录制,以及支持打开多种格式的静态图像等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。
内核层是电子设备的硬件和软件之间的层。内核层至少包含显示驱动,传感器驱动、摄像头驱动,音频驱动等,用于驱动硬件层中的硬件。
硬件层可以包括各类传感器(例如触摸传感器等)、显示屏、摄像头等。
在本申请实施例中,手机100上可显示两个窗口,比如窗口1和窗口2。其中,窗口1中包括多个控件,比如控件1、控件2。当用户在窗口1中长按控件1时,智能拖拽管理模块可根据用户长按的控件的坐标位置查找到控件的类型,比如可以调用布局子系统的接口查找到控件为控件1,然后判断控件1是否支持拖拽功能,如果控件1支持拖拽功能,则提取控件1的内容,并对提取出的内容进行处理。接着,智能拖拽管理模块可调用控件对象的startDragAndDrop()接口启动拖拽的拖出流程,原生拖拽模块可启动拖拽功能并执行拖拽动效。假设用户要将控件1从窗口1拖拽到窗口2,对于接收窗口即窗口2而言,当拖拽事件到达窗口2时,用户可松手,此时系统可获取拖拽事件中的数据,并寻找与松手事件坐标最近的编辑框,将拖拽事件中的数据,即控件1的内容写入编辑框,从而将控件1从窗口1拖拽到窗口2。
图2B所示为本申请实施例提供的一种多设备协同场景下的软件架构示意图。参阅图2B所示,该架构可包括应用程序层、应用程序框架层、驱动层。其中,源设备侧的应用程序层可包括三方应用、投屏管理相关的应用,比如设备连接应用。应用程序框架层可包括布局子系统、智能拖拽管理模块、原生拖拽管理模块、窗口显示管理模块、事件管理模块、跨设备连接管理框架以及数据管理层。驱动层包括设备发现模块、设备认证模块以及设备连接模块。
目标设备侧的应用程序层可包括三方应用、投屏管理相关的应用,比如设备连接应用、投屏显示应用。应用程序框架层可包括跨设备连接管理框架、基础框架(比如事件管理、窗口显示、窗口管理(DisplayManager))以及数据管理层。驱动层包括设备发现模块、设备认证模块以及设备连接模块。
其中,设备连接应用用于管理跨设备之间的连接状态及相关业务的管理,投屏显示应用用于显示投屏窗口的内容。数据管理层负责跨设备场景下的数据管理,负责将源设备的图层数据、音视频数据等传输给目标设备,目标设备将反控事件反传给源设备完成事件流程。驱动层提供设备的发现、设备的认证、设备的连接等能力。应理解,智能拖拽管理模块、原生拖拽模块、窗口显示管理模块以及事件管理模块的功能实现可参阅图2A中的介绍,此处不再赘述。
在一些实施例中,当电子设备1投屏显示到电子设备2时,电子设备2上可显示本地窗口,(比如记为:本地窗口1)和投屏窗口(比如记为:投屏窗口2)。假设用户要将本 地窗口1内的控件1拖拽到投屏窗口2,其具体拖拽过程与单设备场景下的拖拽过程完全相同,可参阅图2A的详细描述,此处不再重复赘述。
在另一些实施例中,当电子设备2上显示本地窗口1和投屏窗口2时,假设用户要将投屏窗口2内的控件1拖拽到本地窗口1,则用户可在电子设备2上触发长按事件,电子设备2可进行源设备和目标设备的坐标系转换,并将该长按事件和转换后的控件1的位置坐标发送给电子设备1。相应的,电子设备1的事件管理模块在接收到长按事件之后,可将该事件通知给智能拖拽管理模块,智能拖拽管理模块根据控件1的位置坐标发送给布局子系统,布局子系统根据控件1的位置坐标查找控件标识,并将查找到的控件标识通知给智能拖拽管理模块。然后,电子设备1的智能拖拽管理模块判断控件标识对应的控件是否支持拖拽功能,若支持拖拽功能,则智能拖拽管理模块获取控件1的内容。然后电子设备1的智能拖拽管理模块可将控件1的内容发送给电子设备2,电子设备2可调用控件对象的startDragAndDrop()接口启动拖拽的拖出流程,原生拖拽模块可启动拖拽功能执行拖拽动效。由于接收窗口为电子设备2上的本地窗口,控件的接收过程与单设备场景下的接收过程相同,可参阅图2A中的详细描述,此处不再重复赘述。
以下实施例以应用在图1所示的手机100所示的架构中为例进行描述。
此外,下述实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的。
当本申请实施例应用在多设备场景时,如图3所示,为本申请实施例提供的一种应用场景示意图。参阅图3所示,在该场景下,电子设备1可基于通信网络与其它的多个电子设备(比如,电子设备2)互联,然后电子设备1可以将自身显示屏上的内容投屏显示到电子设备2上,或者电子设备2可以将自身显示屏上的内容投屏显示到电子设备1上。示例性的,该通信网络可以是局域网,比如可以是Wi-Fi热点网络、无线保真点对点(wireless fidelity-peer to peer,Wi-Fi P2P)网络、蓝牙网络、zigbee网络或NFC网络等。作为一种可能的实现方式,该多个电子设备之间还可以是基于移动网络建立无线连接,例如该移动网络包括基于2G,3G,4G,5G以及后续的标准协议建立的移动网络。作为一种可能的实现方式,该多个电子设备还可以通过移动网络与至少一个服务器建立连接,各个设备之间通过服务器传输数据,和/或,消息,和/或,信息,和/或,信令,和/或,指令。作为一种可能的实现方式,该多个电子设备还可以通过数据线进行连接。
需要说明的是,本申请实施例中的多设备应用场景可以适用于同源投屏场景,也可以适用于异源投屏场景,对此不做具体限定。
下面分别针对单设备和多设备下的不同拖拽场景进行介绍。为了描述方便,本申请实施例中可将多设备场景下的设备分别称为“源设备”(或者称为:第二电子设备)和“目标设备”(或者称为:第一电子设备)。
首先介绍单设备下的拖拽场景。
如图4A所示,为本申请实施例提供的一种控件内容的拖拽方法流程图,参阅图4A所示,该方法可包括如下步骤:
S41:目标设备显示第一窗口和第二窗口。
对于单设备而言,电子设备上可显示至少一个窗口。为了描述方便,可将单设备的显示屏上显示的两个窗口记为“第一窗口”和“第二窗口”。其中,第一窗口和第二窗口可以为 同一应用程序的不同窗口,也可以为不同应用程序的窗口,本申请对此不做限定。当然,显示屏上还可以显示更多窗口,本申请不做具体限定。
S42:目标设备中的拖拽单元检测到对第一窗口中的第一控件的长按操作。
其中,目标设备中的拖拽单元不属于第一窗口所属的应用和第二窗口所属的应用。在具体实现时,电子设备中的拖拽单元可以属于电子设备的操作系统。示例性的,拖拽单元可以属于操作系统的框架层,当然,拖拽单元还可以为系统应用,本申请对此不做限定。
S43:目标设备中的拖拽单元响应以长按操作为拖拽起始操作的拖拽操作,将第一控件的内容从第一窗口传给第二窗口。
其中,拖拽操作用于将第一控件的内容从第一窗口拖拽到第二窗口。
以下对图4A所示实施例中的控件内容的拖出和控件内容的拖入过程分别进行介绍。
如图4B所示,为本申请实施例提供的一种控件内容的拖出方法流程图,参阅图4B所示,该方法可包括如下步骤:
应理解,图4B所示实施例中的电子设备相当于图4A所示实施例中的目标设备。
S401:电子设备显示第一窗口和第二窗口。
S402:电子设备中的拖拽单元接收到第一触发事件。
其中,第一触发事件可以为用户在任意一个窗口内对某个控件的长按事件。比如,第一触发事件可以为用户对图片的长按事件。该第一触发事件(或者说长按事件)中可以包括长按的控件的坐标。
S403:电子设备中的拖拽单元响应第一触发事件,判断第一窗口内的第一控件是否支持拖拽功能。若第一控件支持拖拽功能,则继续执行S404,若第一控件不支持拖拽功能,则结束,不执行下述步骤。
需要说明的是,控件支持拖拽功能可以理解为电子设备中的拖拽单元可以获取到控件的内容,从而可以通过拖拽单元将控件的内容传输给其它窗口。
为了描述方便,以下可将用户要拖拽的控件记为“第一控件”。应理解,该第一控件可以为图片控件,也可以为文本控件或者编辑框控件等,本申请对此不做限定。
在本申请实施例中,电子设备中的拖拽单元在检测到第一触发事件时,可根据用户长按的坐标调用布局子系统模块查找坐标对应的控件,然后判断该控件是否支持拖拽功能。应理解,系统中可保存有窗口内的控件的坐标,示例性的,应用窗口内的控件的坐标可参阅下述表1所示。
表1
| 窗口 | 控件 | 控件类型 | 坐标 |
| 窗口1 | 控件1 | 类型A | (X1,Y1) |
| 窗口1 | 控件2 | 类型B | (X2,Y2) |
| 窗口2 | 控件3 | 类型A | (X3,Y3) |
| 窗口2 | 控件4 | 类型B | (X4,Y4) |
| 窗口2 | 控件5 | 类型C | (X5,Y5) |
应理解,在不同窗口中,可能存在同一类型的控件,例如窗口1中的控件1和窗口2中的控件3可以为同一类型(比如,类型A)的控件。上述表1仅是一种示意性说明,本申请对此不做限定。
在一些实施例中,可以由应用来配置控件是否支持拖拽功能,比如应用可以为窗口内 的控件设置标志,例如可以设置标志为1的控件为支持拖拽功能的控件,标志为2的控件为不支持拖拽功能的控件。
在另一些实施例中,可以由系统来设置控件是否支持拖拽功能。比如,系统可以设置控件类型为图片的控件支持拖拽功能,设置控件类型为文本框的控件不支持拖拽功能等。需要说明的是,对于同一控件来说,系统和应用配置的是否支持拖拽功能可能相同,也可能不同,比如,应用配置的图片类型的控件支持拖拽功能,系统设置的图片类型的控件不支持拖拽功能,本申请对此不做限定。
作为一种可能的实现方式,对于同一控件而言,如果系统和应用配置的是否支持拖拽功能不同,则可以以应用配置的是否支持拖拽功能为准。比如,应用配置的图片类型的控件支持拖拽功能,系统设置的图片类型的控件不支持拖拽功能,则此时可以判定图片类型的控件为支持拖拽功能的控件。
应理解,应用或者系统可以配置所有的控件都支持拖拽功能,当然也可以配置部分控件支持拖拽功能。示例性的,系统中可以保存有白名单和/或黑名单,其中,白名单中可以包括支持拖拽功能的控件类型,黑名单中可以包括不支持拖拽功能的控件类型。
需要说明的是,本申请实施例中并不限定上述两种不同的设置方式的优先级,具体选择应用配置的还是选择系统配置的可以根据产品策略来决定。比如,应用配置的图片类型的控件支持拖拽功能,系统设置的图片类型的控件不支持拖拽功能,但产品策略中要求选择应用配置的,此时应用的优先级高于系统的优先级。
S404:电子设备中的拖拽单元获取第一控件的内容。
在本申请实施例中,电子设备的拖拽单元可获取拖拽的第一控件的内容,比如第一控件为图片时,可以获取图片的内容以及图片的截图。
下面介绍几种不同控件类型的控件内容提取方式。参阅表2所示,为本申请实施例提供的几种控件类型的控件内容获取方式。
表2
应理解,上述表2仅是一种示意性说明,本申请中对于其它控件类型的控件内容提取方式不做具体限定。对于图片控件来说,在提取到控件中的内容之后,需要将提取到的内容进行格式转换,以便后续将格式转换之后的图片显示在目标窗口。比如,当第一控件为图片时,手机可提取该图片对应的内容和图片的快照。并且,可将提取到的内容和图片的快照进行格式转换,比如可转换为JPG格式。当然,还可以转换为其它的格式,本申请对此不做限定。
S405:电子设备响应用户对第一控件的拖拽操作,执行拖拽动效。
在本申请实施例中,若第一控件支持拖拽,用户可对第一控件的内容进行拖拽操作,则电子设备可检测到拖拽事件,该拖拽事件中可包括拖拽数据,比如可包括控件的内容(用于显示到目标窗口)、快照(或者称为:截图,用于实现拖拽动效)、快照的坐标。
在一些实施例中,当第一控件支持拖拽功能,用户可对第一控件的内容进行拖拽,此 时电子设备可调用控件对象的startDragAndDrop()接口触发拖拽功能,电子设备的原生拖拽模块可响应用户的拖拽操作,执行拖拽动效。
作为一种可能的实现方式,在将第一控件的内容从第一窗口传给第二窗口之前,电子设备的拖拽单元还可以判断第一窗口所属的应用是否已经启动将第一控件的内容从第一窗口传给第二窗口的操作。如果第一窗口所属的应用已启动将第一控件的内容从第一窗口传给第二窗口的操作,如,该第一控件已调用startDragAndDrop()接口,则说明第一窗口所属的应用适配了拖拽功能,则此时不执行系统拖拽的实现步骤。如果第一窗口所属的应用没有启动将第一控件的内容从第一窗口传输给第二窗口的操作,则按照本申请实施例的方法执行拖拽。
作为一种示例,以拖拽单元为图2A所示软件架构图中的智能拖拽模块为例,对上述拖出过程进行介绍。如图4C所示,为本申请实施例提供的一种控件内容的拖出方法交互示意图,参阅图4C所示,该方法可包括:
步骤1:电子设备的智能拖拽管理模块接收到用户的长按事件。
本申请实施例中,当用户在电子设备上触发长按事件之后,智能拖拽管理模块可接收到用户的长按事件,然后可调用布局子系统,根据用户长按的位置坐标查找长按的控件具体为哪个控件。
步骤2:电子设备的智能拖拽管理模块判断用户长按的控件是否支持拖拽。
在一些实施例中,智能拖拽管理模块可根据控件的类型判断该控件是否支持拖拽。若控件支持拖拽,则继续执行步骤3。
步骤3:电子设备的智能拖拽管理模块获取控件的内容。
步骤4:电子设备的原生拖拽模块响应用户的拖拽操作,执行拖拽动效。
应理解,图4C所示实施例的具体实现可参阅图4B中的详细介绍,此处不再重复赘述。
下面继续介绍窗口接收控件内容的过程,对于单设备而言,如图5A所示,可包括如下步骤:
S501:电子设备中的拖拽单元检测到第二触发事件。
这里的第二触发事件可以为用户将第一控件从第一窗口拖拽到第二窗口内,并且在第二窗口内松手的事件。其中,该第二触发事件中可包括拖拽数据以及松手位置的坐标。
在一些实施例中,原生拖拽模块可响应用户的拖拽操作,执行拖拽功能,并且执行拖拽动效,当用户将第一控件拖拽到第二窗口时,用户可松手,此时原生拖拽模块可检测到该松手事件,并将该松手事件通知给智能拖拽管理模块。
S502:电子设备中的拖拽单元响应第二触发事件,在第二窗口内确定接收第一控件的内容的第一输入控件。
在一些实施例中,电子设备的智能拖拽管理模块可响应该松手事件,调用窗口管理模块的接口,并根据用户松手的位置坐标确定松手的窗口为哪个窗口,然后智能拖拽管理模块可调用布局子系统的接口在接收窗口(即,第二窗口)中寻找相应的输入控件。示例性的,输入控件可以为编辑控件,编辑控件是一个矩形控件窗口,通常用于在对话框中使用户能够输入和编辑文本。对于输入控件的查找确定过程将在下文详细描述。
作为一种可能的实现方式,在拖拽单元检测到第二触发事件之后,可判断第一输入控件是否监听了拖拽结束事件,若第一输入控件监听了拖拽结束事件,则不执行本申请实施例的方法,若第一输入控件没有监听拖拽结束事件,则执行本申请实施例的方法。
S503:电子设备中的拖拽单元将第一控件的内容作为第一输入控件的输入内容。
在本申请实施例中,电子设备中的拖拽单元在第二窗口中查找到第一输入控件之后,可将第一控件的内容作为第一输入控件的输入内容,从而实现将第一控件的内容从第一窗口传到第二窗口。
作为一种可能的实现方式,拖拽单元在确定出第一输入控件之后,可将第一控件的内容显示在第一输入控件。例如,第二窗口为聊天窗口,第一输入控件为该聊天窗口的编辑控件,可以将该第一控件的内容直接显示在该编辑控件中,并在用户点击“发送”按钮后,将该内容发送给通信对端。当然,也可以不将该第一控件的内容显示在该编辑控件中,而是直接作为编辑控件的输入内容发送给通信对端。
以拖拽单元包括图2A所示的智能拖拽模块、原生拖拽模块为例,对上述控件内容的拖入过程进行介绍。如图5B所示,为本申请实施例提供的一种控件内容的拖入过程交互流程图,参阅图5B所示,该方法可包括如下步骤:
步骤1:电子设备的原生拖拽模块接收到拖拽松手事件,并将该拖拽松手事件发送给智能拖拽管理模块。
其中,拖拽松手事件也可以记为:拖拽结束事件,松手操作也可以记为:拖拽结束操作。
步骤2:电子设备的智能拖拽管理模块调用窗口管理模块,根据松手的位置坐标查找松手的窗口。
步骤3:电子设备的智能拖拽管理模块调用布局子系统,在窗口中查找输入控件。
步骤4:电子设备的智能拖拽管理模块获取拖拽数据,并调用布局子系统将拖拽数据填入输入控件中。其中,拖拽数据中包括控件的内容。
应理解,图5B所示实施例的步骤的具体实现过程可参阅图5A中的详细介绍,此处不再赘述。
在本申请一些实施例中,拖拽单元(即图5B中的智能拖拽管理模块)可以将第二窗口中处于输入状态的控件作为第一输入控件,或者将第二窗口中与拖拽结束操作的位置距离最近的输入控件作为第一输入控件。
下面以编辑框为例介绍如何确定输入控件的过程。由于第二窗口内的编辑框可能有多个,在本申请中为了描述方便,可将接收第一控件的编辑框记为“第一编辑框”。在本申请实施例中,第一编辑框可以通过如下方式确定:
方式1:在一些实施例中,第一编辑框可以为第二窗口内距离用户松手的位置坐标最近的编辑框。具体来说,电子设备的智能拖拽模块可调用窗口管理模块的接口,根据用户松手的位置坐标获取用户松手时所处的窗口,然后调用布局子系统的接口遍历第二窗口中的可见控件,寻找相应的编辑控件。
示例性的,如图6A所示,假设第二窗口上有多个编辑控件,例如图6A所示的编辑控件1、编辑控件2,用户松手的位置为位置A,电子设备可分别计算出从位置A到编辑控件1、编辑控件2的距离。比如,从位置A到编辑控件1的距离为X1,从位置B到编辑控件2的距离为X2。然后确定与位置A最近的编辑控件,比如编辑控件1距离位置A最近(X2>X1),那么第一编辑框即为编辑控件1。
方式2:在另一些实施例中,第一编辑框可以为第二窗口内当前正处于输入状态的编辑框。
应理解,当前正处于输入状态的编辑框可以为正在编辑的编辑框,比如聊天界面的编辑框,例如可以为用户正在编辑消息的矩形框。示例性的,如图6B所示,假设第二窗口为图中所示的聊天界面所在的窗口,此时用户可通过键盘在矩形框61内输入要发送的消息内容,可以将矩形框61理解为正处于输入状态的编辑框,因此,可将矩形框61作为第一编辑框。
需要说明的是,方式1和方式2之间可存在优先级,比如方式2的优先级高于方式1的优先级,即电子设备可以先查找当前正处于输入状态的编辑框作为第一编辑框,如果没有找到,则选择距离松手点最近的编辑框作为第一编辑框。
方式3:第一编辑框为用户松手的位置对应的编辑框。
在方式1和方式2中,用户松手的位置均为编辑框之外的示例,在本申请实施例中,作为又一种可能的实现方式,如果用户松手的位置在编辑框内,则可以将用户松手的位置对应的编辑框作为第一编辑框。举例来说,比如用户松手的位置在图6A所示的编辑控件2中,则第一编辑框可以为编辑控件2。
下面以具体应用场景为例对上述控件的内容拖出和拖入的过程进行介绍。假设手机上显示两个窗口,比如第一窗口和第二窗口。其中,第一窗口和第二窗口为不同应用程序对应的窗口,例如图6C所示的界面600,该界面600中包括淘宝(一种购物类应用程序)的应用窗口601和微信(一种社交类应用程序)的应用窗口602。其中,淘宝的应用窗口601中包括可滑动的图片603。比如用户想要将图片603拖拽到微信的应用窗口602中,则用户在可滑动的图片603中长按想要拖拽的图片,比如可长按当前页面的图片,然后手机上的智能拖拽管理模块可接收到该长按事件,并根据长按的位置坐标查找长按的控件是否支持拖拽。假设图片为支持拖拽的控件,此时原生拖拽模块可响应用户的拖拽操作,将图片603从淘宝的应用窗口601拖出,并且可将图片603拖拽到微信的应用窗口602。当用户将图片603拖拽到微信的应用窗口602之后,比如可在界面610中所示的手指所在位置处松手,然后手机可在微信的应用窗口602中查找第一编辑框,比如可以为当前正处于输入状态的编辑框611,并将拖拽的图片603显示到编辑框611中。
通过上述实施例,可以实现在单设备场景下不同窗口之间的控件内容的拖拽,该方法不需要应用适配拖拽功能,可以通过系统触发控件内容的拖拽功能,实现控件内容的拖出和拖入,能够减少应用适配的工作量。
以下介绍多设备下的拖拽场景。在多设备场景下,具体可包括从投屏窗口将控件内容拖拽到本地窗口的场景、从本地窗口将控件内容拖拽到投屏窗口以及从投屏窗口将控件内容拖拽到投屏窗口的场景。
以下为了描述方便,可将多设备场景下的两个设备称为“源设备”和“目标设备”。以手机和平板电脑为例,手机可以为“源设备”,平板电脑可以为“目标设备”,平板电脑的本地窗口记为“第一窗口”,手机的投屏窗口记为“第二窗口”。
场景1:从本地窗口将控件内容拖拽到投屏窗口
假设将手机的显示屏投屏显示到笔记本电脑上,如图7所示,笔记本电脑上可包括窗口1和窗口2。其中,窗口1可以为笔记本电脑的本地窗口,比如淘宝应用的窗口,窗口2为手机的投屏窗口,比如可以为微信应用的窗口。当用户想要将窗口1中的控件,比如图片拖拽到窗口2中,由于窗口1为本地窗口,控件内容拖出的具体实现方式可参阅图4B 所示实施例的介绍,此处不再重复赘述。
当用户从本地窗口将控件内容拖出之后,由于投屏窗口为实际运行在手机(即源设备)上的窗口,因此,投屏窗口在接收拖拽的控件内容时,需要做跨设备的处理。
如图8A所示,为本申请实施例提供的一种应用于多设备场景下的控件内容的拖拽方法流程图,参阅图8A所示,该方法可包括如下步骤:
S81:目标设备显示第一窗口和第二窗口。
S82:目标设备检测到拖拽操作的拖拽结束操作。
该拖拽操作用于将第一窗口的第一控件的内容从第一窗口拖拽到第二窗口。
S83:目标设备向源设备发送拖拽结束事件。
其中,拖拽结束事件包括拖拽结束操作的位置和第一控件的内容。
S84:源设备中的拖拽单元接收目标设备发送的拖拽结束事件。
源设备中的拖拽单元不属于第二窗口所属的应用。作为一种示例,源设备中的拖拽单元可以属于源设备的操作系统,比如可以属于操作系统的框架层或者系统应用。
S85:源设备中的拖拽单元根据拖拽结束操作的位置将第一控件的内容传给第二窗口。
下面对该场景下控件内容的拖入过程进行介绍。示例性的,如图8B所示,为本申请实施例提供的一种控件内容接收方法交互流程图,参阅图8B所示,该方法可包括如下步骤:
需要说明的是,在下述步骤执行之前,源设备与目标设备可预先建立连接,实现投屏功能。其中,源设备与目标设备可通过Wi-Fi、蓝牙等建立无线连接,或者也可以建立有线连接,本申请对此不做限定。对于源设备与目标设备建立连接关系,实现投屏的过程可参阅现有技术的实现,此处不做过多赘述。
S801:目标设备检测到第三触发事件。
其中,第三触发事件可以为用户将控件内容拖拽到目标设备的第二窗口上的拖拽松手事件。该第三触发事件中可包括拖拽数据(比如,控件的内容)以及用户松手位置的坐标。
S802:目标设备将第三触发事件发送给源设备。
在一些实施例中,目标设备上的投屏显示APP可检测到拖拽松手事件,然后可通过数据通道将拖拽松手事件传输给源设备,由源设备继续进行处理。
S803:源设备中的拖拽单元根据拖拽结束操作的位置确定第二窗口中的第一输入控件。
S804:源设备中的拖拽单元将第一控件的内容作为第一输入控件的输入内容。
在一些实施例中,源设备接收到第三触发事件之后,可根据用户松手的位置坐标确定用户松手位置的坐标对应的窗口为哪个窗口,然后在第二窗口中确定接收第一控件的内容的第一输入控件。该过程与图5A所示实施例中的S502、S503的实现过程相同,具体可参阅图5A所示实施例中的详细描述,此处不再赘述。
由于第二窗口为源设备投屏到目标设备的窗口,因此在S804之后,源设备会将第二窗口更新后的内容发送给目标设备,以使目标设备显示第二窗口更新后的内容。应理解,在第二窗口更新后的内容中包括第一控件的内容。
需要说明的是,与单设备场景不同的是,在多设备场景下,投屏显示应用可以实时监听拖拽事件,并将拖拽事件中控件的坐标通过跨设备通道实时地传输给源设备,源设备再根据用户松手时控件的坐标确定松手的窗口,进而在松手的窗口内查找输入控件。
场景2:从投屏窗口将控件内容拖拽到本地窗口
如图9所示,假设笔记本电脑上可包括窗口1和窗口2。其中,窗口1可以为笔记本电脑的本地窗口,比如微信应用的窗口,窗口2为手机的投屏窗口,比如可以为淘宝应用的窗口。当用户想要将窗口2中的控件,比如图片拖拽到窗口1时,由于窗口2为投屏窗口,即实际运行在手机上的窗口,因此,在将控件内容拖出时需要做跨设备的处理。
如图10A所示,为本申请实施例提供的一种控件内容的拖拽方法流程图。参阅图10A所示,该方法可包括如下步骤:
S101:目标设备显示第一窗口和第二窗口。
S102:目标设备检测到对第一窗口的长按操作。
S103:目标设备向源设备发送长按事件。
所述长按事件包括所述长按操作的坐标。
S104:源设备中的拖拽单元接收长按事件,根据长按操作的坐标确定第一窗口中的第一控件。
S105:源设备中的拖拽单元获取第一控件的内容。
S106:源设备中的拖拽单元向目标设备发送第一控件的内容。
S107:目标设备在检测到拖拽操作的拖拽结束操作时将第一控件的内容传给第二窗口。
下面对该场景下的控件内容的拖出过程进行介绍。示例性的,如图10B所示,为本申请实施例提供的一种控件内容的拖出方法流程图,参阅图10B所示,该方法可包括如下步骤:
S1001:目标设备接收到第四触发事件。
其中,第四触发事件可以为用户在目标设备的第二窗口上对第一控件的长按事件。该长按事件中可包括用户长按位置的坐标。
本申请实施例中,由于长按事件是在投屏窗口上触发的,用户长按位置的坐标为源设备上的display上的坐标,源设备和目标设备的显示屏大小可能不同,因此,可将目标设备上的坐标与源设备上的display上的坐标进行转换,即得到用户长按的位置在目标设备上对应的坐标。应理解,第四触发事件中包括的用户长按位置的坐标指的是在源设备上的display上的坐标。
S1002:目标设备将第四触发事件发送给源设备。
在一些实施例中,当用户在目标设备上触发长按事件之后,可以通过跨设备的数据传输通道将用户在目标设备上的长按事件发送给源设备的事件管理模块,然后事件管理模块将长按事件发送给源设备的智能拖拽管理模块。
S1003:源设备中的拖拽单元判断第一控件是否支持拖拽功能,若第一控件支持拖拽功能,则继续执行S1004,若第一控件不支持拖拽,则结束步骤。
S1004:源设备中的拖拽单元获取第一控件的内容。
S1005:源设备中的拖拽单元向目标设备发送第一控件的内容。
应理解,步骤S1003~S1005的具体实现过程与图4B所示实施例的S403~S405类似,具体可参阅图4B所示实施例中的相关介绍,此处不再重复赘述。
通过上述过程,可将第一控件的内容从投屏窗口拖出,然后目标设备可响应用户对第一控件的内容的拖拽操作,执行拖拽动效。当用户执行拖拽动作将第一控件的内容拖拽到目标设备的本地窗口后松手,对于本地窗口而言,不涉及跨设备的接收,因此,本地窗口接收控件内容的具体实现过程与单设备上接收方法相同,具体可参阅图5A、图5B所示实 施例中的详细介绍,此处不再赘述。
基于上述实施例的介绍可知,在多设备场景下,可以实现在投屏窗口和本地窗口之间的控件内容的拖拽(包括控件内容的拖出和控件内容的拖入)。通过本申请的方法,无需应用适配拖拽功能,系统级的拖拽方法可以减少应用适配的工作量。
场景3:从投屏窗口将控件内容拖拽到投屏窗口
针对这种场景,目标设备上可显示两个投屏窗口,比如窗口1和窗口2均为投屏窗口,且窗口1和窗口2可以为源设备将自身的显示屏整体投屏显示到目标设备上的窗口,也可以为源设备分别投屏显示到目标设备上的窗口。如果两个窗口是整体投屏的窗口,则由源设备执行拖拽动效,目标设备仅用于显示动效;如果两个窗口是分别投屏的窗口,则由目标设备执行拖拽动效。
应理解,当两个窗口都是投屏窗口时,不管是控件内容的拖出还是拖入都会涉及到跨设备的传递。在该场景下目标设备主要用于显示投屏窗口,因此,以下主要对源设备执行的步骤进行介绍。
如图11所示,为本申请实施例提供的一种控件内容的拖拽方法流程图,参阅图11所示,该方法可包括如下步骤:
S1101:源设备将第一窗口和第二窗口投屏到目标设备。
S1102:源设备的拖拽单元接收目标设备发送的长按事件。
其中,长按事件包括对目标设备上显示的第一窗口的长按操作的坐标,所述拖拽单元不属于第一窗口所属的应用和第二窗口所属的应用,且第一窗口和第二窗口属于同一应用或不同应用。
S1103:源设备根据长按操作的坐标确定第一窗口的第一控件,并获取第一控件的内容。
S1104:源设备的拖拽单元接收目标设备发送的拖拽结束事件。
其中,拖拽结束事件包括拖拽操作的拖拽结束操作的位置,所述拖拽操作用于将第一控件的内容从第一窗口拖拽到第二窗口,所述拖拽操作的拖拽起始操作为长按操作。
S1105:源设备的拖拽单元根据拖拽结束操作的位置将第一控件的内容传给第二窗口。
应理解,S1102、S1103、S1105的具体实现过程可参阅前述实施例中的详细介绍,在此不再重复赘述。
通过上述方法,可以利用电子设备中的拖拽单元实现两个投屏窗口之间的控件内容的拖拽,无需应用适配拖拽功能,能够减少应用适配的工作量,并且提升用户体验。
上述本申请提供的实施例中,从电子设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
如图12所示,本申请另外一些实施例公开了一种电子设备,该电子设备可以是具有显示屏的电子设备。参阅图12所示,所述电子设备1200包括:显示屏1201;一个或多个处理器1202;一个或多个存储器1203;一个或多个传感器1204(图中未示出)、多个应用1205(图中未示出);以及一个或多个计算机程序1206(图中未示出),上述各器件可以通 过一个或多个通信总线1207连接。
需要说明的是,图12所示的电子设备可以适用于前述实施例中的源设备(第二电子设备),也可以适用于前述实施例中的目标设备(第一电子设备)。
其中,显示屏1201用于显示电子设备中的应用的显示界面,或者显示拖拽动效。存储器1203中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令;处理器1202调用存储器1203中存储的所述指令,使得电子设备1200可以上述实施例的控件内容的拖拽方法。示例性的,显示屏用于显示第一窗口和第二窗口;处理器用于实现拖拽单元(或者第一拖拽单元、第二拖拽单元)的功能,还用于控制所述显示屏显示第一窗口和第二窗口。其中,所述指令包括操作系统的指令,操作系统的指令包括用于实现拖拽单元(或者第一拖拽单元、第二拖拽单元)的功能的指令。
示例性的,当所述指令被所述处理器1202调用执行时,使得所述电子设备1200执行下述步骤:检测到对所述第一窗口中的第一控件的长按操作,所述拖拽单元不属于所述第一窗口所属的应用和所述第二窗口所属的应用,所述第一窗口和所述第二窗口属于同一应用或不同应用;响应以所述长按操作为拖拽起始操作的拖拽操作,将所述第一控件的内容从所述第一窗口传给所述第二窗口,所述拖拽操作用于将所述第一控件的内容从所述第一窗口拖拽到所述第二窗口。
在本申请实施例中,处理器1202可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储器1203中,处理器1202读取存储器1203中的程序指令,结合其硬件完成上述方法的步骤。
在本申请实施例中,存储器1203可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如RAM。存储器还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储指令和/或数据。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
基于以上实施例,本申请还提供了一种控件内容的拖拽系统,该系统包括第一电子设备和第二电子设备。其中,第一电子设备用于显示第一窗口和第二窗口,其中,第一窗口为第一电子设备的应用窗口,第二窗口为第二电子设备投屏到第一电子设备上的应用窗口;第一电子设备还用于在检测到拖拽操作的拖拽结束操作时,向第二电子设备发送拖拽结束事件,所述拖拽结束事件包括所述拖拽结束操作的位置和所述第一控件的内容,所述拖拽操作用于将所述第一窗口的第一控件的内容从所述第一窗口拖拽到所述第二窗口;第二电子设备中的第二拖拽单元用于接收所述第一电子设备发送的所述拖拽结束事件,所述第二拖拽单元不属于所述第二窗口所属的应用;所述第二拖拽单元还用于根据所述拖拽结束操作的位置将所述第一控件的内容传给所述第二窗口。
基于以上实施例,本申请还提供了一种控件内容的拖拽系统,该系统包括第一电子设 备和第二电子设备。其中,第一电子设备用于显示第一窗口和第二窗口,其中,第一窗口为第二电子设备投屏到第一电子设备上的应用窗口,第二窗口为第一电子设备的应用窗口;第一电子设备还用于在检测到对第一窗口的长按操作时,向第二电子设备发送长按事件,所述长按事件包括所述长按操作的坐标;第二电子设备中的第二拖拽单元用于接收所述长按事件,并根据所述长按操作的坐标确定所述第一窗口中的第一控件,并获取所述第一控件的内容,所述第二拖拽单元不属于所述第一窗口所属的应用;第二拖拽单元用于向第一电子设备发送所述第一控件的内容;第一电子设备还用于在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,所述拖拽操作用于将所述第一控件的内容从所述第一窗口拖拽到所述第二窗口。
基于以上实施例,本申请还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得所述计算机执行以上实施例提供的方法。
本申请实施例中还提供一种计算机程序产品,包括指令,当其在计算机上运行时,使得计算机执行以上实施例提供的方法。
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
Claims (30)
- 一种控件内容的拖拽方法,其特征在于,包括:第一电子设备显示第一窗口和第二窗口;所述第一电子设备中的拖拽单元检测到对所述第一窗口中的第一控件的长按操作,所述拖拽单元不属于所述第一窗口所属的应用和所述第二窗口所属的应用,所述第一窗口和所述第二窗口属于同一应用或不同应用;所述拖拽单元响应以所述长按操作为拖拽起始操作的拖拽操作,将所述第一控件的内容从所述第一窗口传给所述第二窗口,所述拖拽操作用于将所述第一控件的内容从所述第一窗口拖拽到所述第二窗口。
- 如权利要求1所述的方法,其特征在于,所述拖拽单元属于所述第一电子设备的操作系统。
- 如权利要求1或2所述的方法,其特征在于,所述拖拽单元属于所述操作系统的框架层。
- 如权利要求1-3任一项所述的方法,其特征在于,所述第一电子设备中的拖拽单元检测到对所述第一窗口中的第一控件的长按操作,包括:根据所述长按操作的位置确定所述长按操作为对所述第一窗口中的所述第一控件的长按操作。
- 如权利要求1-4任一项所述的方法,其特征在于,所述第一电子设备中的拖拽单元检测到对所述第一窗口中的第一控件的长按操作之后,将所述第一控件的内容从所述第一窗口传给所述第二窗口之前,所述方法还包括:所述拖拽单元根据所述第一控件的控件类型确定所述第一控件支持拖拽功能。
- 如权利要求1所述的方法,其特征在于,所述拖拽单元将所述第一控件的内容从所述第一窗口传给所述第二窗口,包括:所述拖拽单元检测到拖拽结束操作;所述拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件;所述拖拽单元将所述第一控件的内容作为所述第一输入控件的输入内容。
- 如权利要求6所述的方法,其特征在于,所述拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,包括:所述拖拽单元根据所述拖拽结束操作的位置确定所述拖拽结束操作所在的窗口为第二窗口;所述拖拽单元将所述第二窗口中处于输入状态的控件作为所述第一输入控件,或者将所述第二窗口中与所述拖拽结束操作的位置距离最近的输入控件作为所述第一输入控件。
- 一种控件内容的拖拽方法,其特征在于,应用于包括第一电子设备和第二电子设备组成的系统,所述方法包括:所述第一电子设备显示第一窗口和第二窗口,其中,所述第一窗口为所述第一电子设备的应用窗口,所述第二窗口为第二电子设备投屏到所述第一电子设备上的应用窗口;所述第一电子设备检测到拖拽操作的拖拽结束操作,所述拖拽操作用于将所述第一窗口的第一控件的内容从所述第一窗口拖拽到所述第二窗口;所述第一电子设备向所述第二电子设备发送拖拽结束事件,所述拖拽结束事件包括所 述拖拽结束操作的位置和所述第一控件的内容;第二电子设备中的第二拖拽单元接收所述第一电子设备发送的所述拖拽结束事件,所述第二拖拽单元不属于所述第二窗口所属的应用;所述第二拖拽单元根据所述拖拽结束操作的位置将所述第一控件的内容传给所述第二窗口。
- 如权利要求8所述的方法,其特征在于,所述第二拖拽单元根据所述拖拽结束操作的位置将所述第一控件的内容传给所述第二窗口,包括:所述第二拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,并将所述第一控件的内容作为所述第一输入控件的输入。
- 如权利要求8或9所述的方法,其特征在于,所述第一电子设备检测到拖拽操作的拖拽结束操作之前,所述方法还包括:所述第一电子设备中的第一拖拽单元检测到对所述第一控件的长按操作,所述拖拽单元不属于所述第一窗口所属的应用;所述第一拖拽单元响应以所述长按操作为拖拽起始操作的所述拖拽操作,获取所述第一控件的内容。
- 如权利要求10所述的方法,其特征在于,所述第一拖拽单元属于所述第一电子设备的操作系统,所述第二拖拽单元属于所述第二电子设备的操作系统。
- 如权利要求10所述的方法,其特征在于,所述第一电子设备中的第一拖拽单元检测到对所述第一控件的长按操作,包括:所述第一电子设备中的第一拖拽单元根据所述长按操作的位置,确定所述长按操作为对所述第一窗口中的所述第一控件的长按操作。
- 如权利要求10所述的方法,其特征在于,所述第一电子设备中的第一拖拽单元检测到对所述第一控件的长按操作之后,检测到拖拽操作的拖拽结束操作之前,所述方法还包括:所述第一拖拽单元根据所述第一控件的控件类型确定所述第一控件支持拖拽功能。
- 如权利要求9所述的方法,其特征在于,所述第二拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,包括:所述第二拖拽单元根据所述拖拽结束操作的位置确定拖拽结束操作所在的窗口为第二窗口;所述第二拖拽单元将所述第二窗口中处于输入状态的控件作为所述第一输入控件;或者将所述第二窗口中与所述拖拽结束操作的位置距离最近的控件作为所述第一输入控件。
- 一种控件内容的拖拽方法,其特征在于,应用于包括第一电子设备和第二电子设备组成的系统,所述方法包括:第一电子设备显示第一窗口和第二窗口,其中,所述第一窗口为第二电子设备投屏到所述第一电子设备上的应用窗口,所述第二窗口为所述第一电子设备的应用窗口;所述第一电子设备检测到对所述第一窗口的长按操作,并向所述第二电子设备发送长按事件,所述长按事件包括所述长按操作的坐标;所述第二电子设备中的第二拖拽单元接收所述长按事件,并根据所述长按操作的坐标确定所述第一窗口中的第一控件,并获取所述第一控件的内容,所述第二拖拽单元不属于所述第一窗口所属的应用;所述第二拖拽单元向所述第一电子设备发送所述第一控件的内容;所述第一电子设备在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,所述拖拽操作用于将所述第一控件的内容从所述第一窗口拖拽到所述第二窗口。
- 如权利要求15所述的方法,其特征在于,所述第一电子设备在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,包括:所述第一电子设备中的第一拖拽单元在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,所述第一拖拽单元不属于所述第二窗口所属的应用。
- 如权利要求16所述的方法,其特征在于,所述第一拖拽单元属于所述第一电子设备的操作系统,所述第二拖拽单元属于所述第二电子设备的操作系统。
- 如权利要求15或16所述的方法,其特征在于,所述第二电子设备中的第二拖拽单元获取所述第一控件的内容之前,所述方法还包括:所述第二拖拽单元根据所述第一控件的控件类型确定所述第一控件支持拖拽功能。
- 如权利要求16所述的方法,其特征在于,所述第一电子设备中的第一拖拽单元在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,包括:所述第一拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件;所述第一拖拽单元将所述第一控件的内容作为所述第一输入控件的输入内容。
- 如权利要求19所述的方法,其特征在于,所述第一拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,包括:所述第一拖拽单元根据所述拖拽结束操作的位置确定所述拖拽结束操作所在的窗口为第二窗口;所述第一拖拽单元将所述第二窗口中处于输入状态的控件作为所述第一输入控件,或者将所述第二窗口中与所述拖拽结束操作的位置距离最近的控件作为所述第一输入控件。
- 一种控件内容的拖拽方法,其特征在于,包括:第二电子设备将第一窗口和第二窗口投屏到第一电子设备;所述第二电子设备的拖拽单元接收所述第一电子设备发送的长按事件,所述长按事件包括对所述第一电子设备上显示的所述第一窗口的长按操作的坐标,所述拖拽单元不属于所述第一窗口所属的应用和所述第二窗口所属的应用,所述第一窗口和所述第二窗口属于同一应用或不同应用;所述第二电子设备根据所述长按操作的坐标确定所述第一窗口的第一控件,并获取所述第一控件的内容;所述拖拽单元接收所述第一电子设备发送的拖拽结束事件,所述拖拽结束事件包括拖拽操作的拖拽结束操作的位置,所述拖拽操作用于将所述第一控件的内容从所述第一窗口拖拽到所述第二窗口,所述拖拽操作的拖拽起始操作为所述长按操作;所述拖拽单元根据所述拖拽结束操作的位置将所述第一控件的内容传给所述第二窗口。
- 如权利要求21所述的方法,其特征在于,所述拖拽单元属于所述第二电子设备的操作系统。
- 如权利要求21或22所述的方法,其特征在于,所述拖拽单元属于所述操作系统的 框架层。
- 如权利要求21所述的方法,其特征在于,所述第二电子设备获取所述第一控件的内容之前,所述方法还包括:所述拖拽单元根据所述第一控件的控件类型确定所述第一控件支持拖拽功能。
- 如权利要求21所述的方法,其特征在于,所述拖拽单元根据所述拖拽结束操作的坐标将所述第一控件的内容传给所述第二窗口,包括:所述拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件;所述拖拽单元将所述第一控件的内容作为所述第一输入控件的输入内容。
- 如权利要求25所述的方法,其特征在于,所述拖拽单元根据所述拖拽结束操作的位置确定所述第二窗口中的第一输入控件,包括:所述拖拽单元根据所述拖拽结束操作的位置确定所述拖拽结束操作所在的窗口为第二窗口;所述拖拽单元将所述第二窗口中处于输入状态的控件作为所述第一输入控件,或者将所述第二窗口中与所述拖拽结束操作的位置距离最近的控件作为所述第一输入控件。
- 一种控件内容的拖拽系统,其特征在于,所述系统包括第一电子设备和第二电子设备;其中,所述第一电子设备用于显示第一窗口和第二窗口,其中,所述第一窗口为所述第一电子设备的应用窗口,所述第二窗口为第二电子设备投屏到所述第一电子设备上的应用窗口;所述第一电子设备还用于在检测到拖拽操作的拖拽结束操作时,向所述第二电子设备发送拖拽结束事件,所述拖拽结束事件包括所述拖拽结束操作的位置和所述第一控件的内容,所述拖拽操作用于将所述第一窗口的第一控件的内容从所述第一窗口拖拽到所述第二窗口;第二电子设备中的第二拖拽单元用于接收所述第一电子设备发送的所述拖拽结束事件,所述第二拖拽单元不属于所述第二窗口所属的应用;所述第二拖拽单元还用于根据所述拖拽结束操作的位置将所述第一控件的内容传给所述第二窗口。
- 一种控件内容的拖拽系统,其特征在于,所述系统包括第一电子设备和第二电子设备;其中,第一电子设备用于显示第一窗口和第二窗口,其中,所述第一窗口为第二电子设备投屏到所述第一电子设备上的应用窗口,所述第二窗口为所述第一电子设备的应用窗口;所述第一电子设备还用于在检测到对所述第一窗口的长按操作时,向所述第二电子设备发送长按事件,所述长按事件包括所述长按操作的坐标;所述第二电子设备中的第二拖拽单元用于接收所述长按事件,并根据所述长按操作的坐标确定所述第一窗口中的第一控件,并获取所述第一控件的内容,所述第二拖拽单元不属于所述第一窗口所属的应用;所述第二拖拽单元用于向所述第一电子设备发送所述第一控件的内容;所述第一电子设备还用于在检测到拖拽操作的拖拽结束操作时将所述第一控件的内容传给所述第二窗口,所述拖拽操作用于将所述第一控件的内容从所述第一窗口拖拽到所述第二窗口。
- 一种电子设备,其特征在于,所述电子设备包括显示屏;处理器;存储器;一个或 多个应用;以及计算机程序;其中,所述计算机程序被存储在所述存储器中,所述计算机程序包括指令,当所述指令被所述处理器调用执行时,使得所述电子设备执行如权利要求1至7任一项所述的方法,或21-26任一项所述的方法。
- 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1至7任一项所述的方法,或21-26任一项所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP22863123.0A EP4369166A4 (en) | 2021-08-31 | 2022-08-16 | METHOD AND SYSTEM FOR SLIDING ORDER CONTENT, AND ELECTRONIC DEVICE |
| US18/586,516 US20240192844A1 (en) | 2021-08-31 | 2024-02-25 | Control content drag method and system, and electronic device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111015143.6A CN115729431A (zh) | 2021-08-31 | 2021-08-31 | 一种控件内容的拖拽方法、电子设备及系统 |
| CN202111015143.6 | 2021-08-31 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US18/586,516 Continuation US20240192844A1 (en) | 2021-08-31 | 2024-02-25 | Control content drag method and system, and electronic device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023029983A1 true WO2023029983A1 (zh) | 2023-03-09 |
Family
ID=85291535
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/112820 Ceased WO2023029983A1 (zh) | 2021-08-31 | 2022-08-16 | 一种控件内容的拖拽方法、电子设备及系统 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20240192844A1 (zh) |
| EP (1) | EP4369166A4 (zh) |
| CN (1) | CN115729431A (zh) |
| WO (1) | WO2023029983A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116974446A (zh) * | 2023-09-18 | 2023-10-31 | 荣耀终端有限公司 | 一种动画效果的显示方法及装置 |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119002782A (zh) * | 2023-05-19 | 2024-11-22 | 华为技术有限公司 | 一种数据传输方法、系统及相关装置 |
| CN119148912A (zh) * | 2023-06-15 | 2024-12-17 | 华为技术有限公司 | 窗口控制方法及电子设备 |
| CN119620906A (zh) * | 2023-09-06 | 2025-03-14 | 荣耀终端股份有限公司 | 文本拖拽方法及相关装置 |
| CN119620898A (zh) * | 2023-09-06 | 2025-03-14 | 荣耀终端股份有限公司 | 图片拖拽方法及相关装置 |
| CN119718149A (zh) * | 2023-09-28 | 2025-03-28 | 华为技术有限公司 | 一种数据拖拽方法、电子设备及存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107066172A (zh) * | 2017-02-16 | 2017-08-18 | 北京小米移动软件有限公司 | 移动终端的文件传输方法及装置 |
| CN110618970A (zh) * | 2019-09-12 | 2019-12-27 | 联想(北京)有限公司 | 文件传输方法和电子设备 |
| CN112631535A (zh) * | 2020-12-22 | 2021-04-09 | 努比亚技术有限公司 | 一种投屏反向控制方法及装置、移动终端、存储介质 |
| WO2021129186A1 (zh) * | 2019-12-24 | 2021-07-01 | 华为技术有限公司 | 一种文件处理方法、电子设备、系统和存储介质 |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100031170A1 (en) * | 2008-07-29 | 2010-02-04 | Vittorio Carullo | Method and System for Managing Metadata Variables in a Content Management System |
| US20120260203A1 (en) * | 2011-04-08 | 2012-10-11 | International Business Machines Corporation | Adaptive drag and drop zone |
| US20140006967A1 (en) * | 2012-06-29 | 2014-01-02 | Suresh Arumugam | Cross-application transfers of user interface objects |
| KR102319286B1 (ko) * | 2014-08-13 | 2021-10-29 | 삼성전자 주식회사 | 드래그 앤 드롭 처리 방법 및 장치 |
| DK179657B1 (en) * | 2016-06-12 | 2019-03-13 | Apple Inc. | Devices, methods and graphical user interfaces for providing haptic feedback |
| US10705713B2 (en) * | 2017-05-16 | 2020-07-07 | Apple Inc. | Drag and drop for touchscreen devices |
| US11349976B2 (en) * | 2019-09-12 | 2022-05-31 | Lenovo (Beijing) Co., Ltd. | Information processing method, file transmission method, electronic apparatus, and computing apparatus |
| CN112527221A (zh) * | 2019-09-18 | 2021-03-19 | 华为技术有限公司 | 一种数据传输的方法及相关设备 |
-
2021
- 2021-08-31 CN CN202111015143.6A patent/CN115729431A/zh active Pending
-
2022
- 2022-08-16 WO PCT/CN2022/112820 patent/WO2023029983A1/zh not_active Ceased
- 2022-08-16 EP EP22863123.0A patent/EP4369166A4/en active Pending
-
2024
- 2024-02-25 US US18/586,516 patent/US20240192844A1/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107066172A (zh) * | 2017-02-16 | 2017-08-18 | 北京小米移动软件有限公司 | 移动终端的文件传输方法及装置 |
| CN110618970A (zh) * | 2019-09-12 | 2019-12-27 | 联想(北京)有限公司 | 文件传输方法和电子设备 |
| WO2021129186A1 (zh) * | 2019-12-24 | 2021-07-01 | 华为技术有限公司 | 一种文件处理方法、电子设备、系统和存储介质 |
| CN112631535A (zh) * | 2020-12-22 | 2021-04-09 | 努比亚技术有限公司 | 一种投屏反向控制方法及装置、移动终端、存储介质 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116974446A (zh) * | 2023-09-18 | 2023-10-31 | 荣耀终端有限公司 | 一种动画效果的显示方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115729431A (zh) | 2023-03-03 |
| US20240192844A1 (en) | 2024-06-13 |
| EP4369166A4 (en) | 2024-11-20 |
| EP4369166A1 (en) | 2024-05-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12085987B2 (en) | Display method and electronic device | |
| CN114006625B (zh) | 一种分屏显示方法与电子设备 | |
| CN110471639B (zh) | 显示方法及相关装置 | |
| CN114356195B (zh) | 一种文件传输的方法及相关设备 | |
| CN116360725B (zh) | 显示交互系统、显示方法及设备 | |
| EP4369166A1 (en) | Control content dragging method and system, and electronic device | |
| WO2021052147A1 (zh) | 一种数据传输的方法及相关设备 | |
| WO2021063074A1 (zh) | 一种分屏显示方法与电子设备 | |
| CN110825301A (zh) | 一种界面切换方法及电子设备 | |
| EP4099669A1 (en) | Method for creating application shortcuts, electronic device, and system | |
| WO2021063090A1 (zh) | 一种建立应用组合的方法与电子设备 | |
| US20230236714A1 (en) | Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device | |
| WO2019072178A1 (zh) | 一种通知处理方法及电子设备 | |
| US20230367571A1 (en) | Distributed application processing method and apparatus | |
| WO2021036770A1 (zh) | 一种分屏处理方法及终端设备 | |
| WO2022089208A1 (zh) | 一种文件拖拽方法及电子设备 | |
| CN116156044A (zh) | 设备协同方法及相关装置 | |
| WO2022179405A1 (zh) | 一种投屏显示方法及电子设备 | |
| WO2022268009A1 (zh) | 一种屏幕共享的方法及相关设备 | |
| WO2024001972A1 (zh) | 交互方法及相关设备 | |
| WO2025067441A1 (zh) | 一种数据拖拽方法、电子设备及存储介质 | |
| EP4539443A1 (en) | Message sharing method and related device | |
| JP7807569B2 (ja) | デバイスコラボレーション方法 | |
| WO2024046237A1 (zh) | 一种应用热启动方法及电子设备 | |
| WO2023045876A1 (zh) | 应用程序安装方法及相关设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22863123 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2022863123 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2022863123 Country of ref document: EP Effective date: 20240208 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
