WO2021068405A1 - 元素传递方法、装置、设备及存储介质 - Google Patents

元素传递方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2021068405A1
WO2021068405A1 PCT/CN2019/125533 CN2019125533W WO2021068405A1 WO 2021068405 A1 WO2021068405 A1 WO 2021068405A1 CN 2019125533 W CN2019125533 W CN 2019125533W WO 2021068405 A1 WO2021068405 A1 WO 2021068405A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
touch operation
display
transfer
condition
Prior art date
Application number
PCT/CN2019/125533
Other languages
English (en)
French (fr)
Inventor
黄腾霄
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2021068405A1 publication Critical patent/WO2021068405A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • This application relates to the technical field of electronic whiteboards, for example, to an element transfer method, device, equipment, and storage medium.
  • the whiteboard software has a dual-screen mode.
  • the two display screens can display different content, that is, the two display screens can perform different functions.
  • one display screen is used to display courseware and the other display screen is used to write blackboard writing.
  • the related technology has the following problem: when the user needs to explain and introduce some elements of the display, the element needs to be created in the writing screen, and then the explanation is carried out by writing, zooming the element, and so on. At this time, the process of creating elements will increase the workload of the user, and the similarity between the created elements and the displayed elements cannot be guaranteed.
  • This application provides an element transfer method, device, equipment, and storage medium to solve the technical problem of the inability to quickly and accurately display elements appearing on one screen on the other screen in the dual-screen mode in related technologies.
  • this application provides an element transfer method, including:
  • the element is displayed on the second screen, and the element in the first screen is deleted, so as to realize the transfer of the element to the second screen.
  • the displaying the element on the second screen includes:
  • the element is displayed at the first display position of the second screen, and the second display size of the element is equal to the first display size of the element in the first screen before the first touch operation is received by the element.
  • the boundary between the first display position and the second screen is a fixed distance, and the boundary is a horizontal boundary pointed by the first touch operation and/or a vertical boundary pointed by the first touch operation; or ,
  • the first display position and the second display position are the same, and the second display position is the display position of the element on the first screen before the element receives the first touch operation or when it is confirmed that the element transfer condition is satisfied.
  • the method further includes:
  • the element In response to the received second touch operation, the element is adjusted to an activated state, the element can be triggered to perform an element transfer event in the activated state, and the second touch operation acts on the first screen Said element in.
  • the method further includes:
  • the activation state of the element is cancelled, and the third touch operation acts on the first screen.
  • the element does not meet the element transfer condition, and the element is restored to an original state, where the original state is the display state of the element on the first screen before the first touch operation is received.
  • the adjusting the first display size of the element during the moving process further includes:
  • this application also provides an element transfer method, including:
  • the element transfer condition includes: a trigger condition and/or a reception condition, the trigger condition is applied to the first screen, and the reception condition is applied to the second screen.
  • the element transfer conditions include: trigger conditions and receiving conditions;
  • the confirming that the element meets the element transfer condition and controlling the element to continue to move includes:
  • the trigger conditions include:
  • the movement speed of the first touch operation reaches a first preset speed
  • the movement distance of the first touch operation reaches a first preset distance
  • the receiving condition is: the second screen activates an element transfer function.
  • the method further includes:
  • the determining whether the second screen satisfies the receiving condition includes:
  • the element shaking parameter is the moving speed of the first touch operation, and the receiving condition is: the moving speed reaches a second preset speed; and/or,
  • the element shaking parameter includes: a first unit vector of the element when the first touch operation starts and a second unit vector of the element when a trigger condition is met, and the receiving condition is: the first unit The vector difference between the vector and the second unit vector is within the first set threshold; and/or,
  • the element shaking parameter includes: the second unit vector and a third unit vector of the element at a set time before the trigger condition is met, and the receiving condition is: the third unit vector and the second unit The vector difference between the vectors is within the second set threshold; and/or,
  • the element shaking parameter includes: the element type of the element, and the receiving condition is: the element type is a preset transfer element type.
  • the creating a copy of the element in the second screen includes:
  • the confirming the first display position of the element on the second screen includes:
  • the boundary is a horizontal boundary or a vertical boundary.
  • the confirming the end of the element movement includes:
  • this application also provides an element transfer device, including:
  • the first touch module is configured to receive a first touch operation on a first screen, and the first touch operation acts on an element displayed on the first screen;
  • the first movement module is used to control the element to move synchronously following the first touch operation
  • the first adjustment module is configured to confirm that the element meets the element transfer condition, control the element to continue to move, and adjust the first display size of the element during the movement;
  • the first transfer module is configured to display the element in the second screen after the movement is completed, and delete the element in the first screen, so as to realize the transfer of the element to the second screen.
  • this application also provides an element transfer device, including:
  • the second touch module is configured to receive a first touch operation on the first screen, and the first touch operation acts on an element displayed on the first screen;
  • An acquiring module configured to acquire the touch track of the first touch operation on the first screen
  • the second movement module is used to control the elements to move synchronously following the touch track
  • the second adjustment module is configured to confirm that the element meets the element transfer condition, control the element to continue to move, and adjust the first display size of the element during the movement;
  • the second transfer module is used to create a copy of the element in the second screen after confirming the end of the element movement, and delete the element in the first screen, so as to realize the transfer to the second screen The element.
  • this application also provides an element transfer device, including:
  • One or more processors are One or more processors;
  • Memory used to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the element transfer method according to the first aspect or the element transfer method according to the second aspect .
  • the present application also provides a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the element transfer method as described in the first aspect or as described in the second aspect is implemented.
  • the element delivery method is implemented.
  • the above element transfer method, device, equipment and storage medium by receiving the first touch operation acting on the element in the first screen, the element is controlled to move synchronously according to the touch trajectory of the first touch operation. If it is confirmed that the element satisfies the element If the transfer condition is passed, the control element continues to move, and after the movement ends, the element is displayed on the second screen and the element in the first screen is deleted, so as to realize the transfer of the element from the first screen to the second screen for display.
  • elements can be transferred between screens through the first touch operation according to the actual display needs of the user, so that the elements appearing on one screen can be displayed on another screen, which not only realizes the fast and accurate elements
  • the display is transferred between the screens, and its implementation is simple, and there is no need to create corresponding elements on the screen, which reduces the workload of the element creation process.
  • the element when the element is displayed on the second screen, the element can be displayed in the corresponding position according to the setting or actual operation, and the amount of calculation is small.
  • the way of element transfer is flexible and convenient. The element transfer is triggered by touch operation, and when the element transfer condition is met, the element can be transferred between screens. Its simple operation can effectively improve the user experience. Description of the drawings
  • FIG. 1 is a flowchart of an element transmission method provided in Embodiment 1 of this application;
  • FIG. 2 is a first schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 3 is a second schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 4 is a third schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 5 is a fourth schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 6 is a flowchart of an element transmission method provided in Embodiment 2 of this application.
  • FIG. 7 is a fifth schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 8 is a sixth schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 9 is a seventh schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 10 is an eighth schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 11 is a ninth schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 12 is a tenth schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 13 is an eleventh schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 14 is a twelfth schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 15 is a thirteenth schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 16 is a flowchart of an element transmission method provided in Embodiment 3 of this application.
  • FIG. 17 is a flowchart of an element transmission method provided in Embodiment 4 of this application.
  • FIG. 18 is a fourteenth schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 19 is a fifteenth schematic diagram of a screen provided by an embodiment of this application.
  • FIG. 21 is a schematic structural diagram of another element transfer device provided in Embodiment 5 of this application.
  • FIG. 22 is a schematic structural diagram of an element transfer device provided in Embodiment 6 of this application.
  • first and second are only used to distinguish one entity or operation or object from another entity or operation or object, and do not necessarily require or imply these entities Or any such actual relationship or sequence exists before the operation or object.
  • first and second of the first touch operation and the second touch operation are used to distinguish two different touch operations.
  • the element transfer method provided in the embodiments of this application can be executed by an element transfer device, which can be implemented by software and/or hardware.
  • the element transfer device can be composed of two or more physical entities, or it can be A physical entity constitutes.
  • the element delivery device can be a smart device such as a computer, a mobile phone, a tablet, or a smart interactive tablet.
  • a smart interactive tablet is used as an element transfer device for exemplary description.
  • the smart interactive tablet can be an integrated device that controls the content displayed on the display tablet through touch technology and realizes human-computer interaction. It integrates a projector, an electronic whiteboard, a screen, a sound, a TV, and a video conference. One or more functions such as a terminal.
  • the smart interactive tablet includes at least one display screen.
  • the smart interactive tablet is configured with two display screens as an example for description.
  • the two display screens may be the same type of display screens or different types of display screens.
  • the two display screens are of the same type as an example, and the two display screens have the same pixel coordinate system.
  • the two display screens can communicate directly or indirectly through the processor (such as the central processing unit) of the smart interactive tablet.
  • the processor can individually control each display screen.
  • Both display screens have a touch function.
  • the display screen can be a capacitive screen, a resistive screen or an electromagnetic screen.
  • the touch operation response of the two display screens is the same. Take the user's touch operation in one display screen as an example.
  • the user can touch the display screen with a finger or a stylus to achieve a touch operation.
  • the smart interactive tablet detects the touch position of the touch operation on the display screen, and determines a response plan according to the display content corresponding to the touch position, and then responds to realize the touch function. For example, it is determined that the corresponding display content is a control of a certain function according to the touch position.
  • the response scheme is to execute the function.
  • the user can perform touch operations on one display screen, or simultaneously perform touch operations on two display screens.
  • the specific method for determining the touch position of the touch operation on the display screen can be set in accordance with the actual situation.
  • the smart interactive tablet can determine the touch position according to the parameter change. It is understandable that in practical applications, users can also implement control operations through keyboards, mice, physical keys, and other methods.
  • At least one type of operating system is installed on the smart interactive tablet, where the operating system includes but is not limited to the Android system, the Linux system, and the Windows system. Each display screen can be individually controlled through the operating system.
  • the smart interactive tablet can install at least one application program based on the operating system.
  • an application program with an electronic whiteboard function is used as an example for description.
  • an electronic whiteboard application is installed in a smart interactive tablet.
  • the application program may be an application program that comes with the operating system, or may be an application program downloaded from a third-party device or server.
  • the element delivery device can also be an electronic whiteboard application.
  • functions such as writing, inserting tables, inserting pictures, inserting multimedia, inserting files (such as PPT, etc.), playing multimedia, inserting graphics, and drawing tables can be realized.
  • the same application program can be opened at the same time, or different application programs can be opened at the same time.
  • the same interface or different interfaces can be displayed on the two display screens after it is started.
  • the application program may have different versions, and at this time, each display screen may display the interface under the corresponding version.
  • the two displays show different functions of the same application.
  • elements can be user-drawn elements, such as drawn graphics, text boxes, tables, handwriting, etc., can also be user-inserted elements, such as inserted graphics, pictures, documents, PPT, etc. .
  • the user can perform control operations on the element, such as adjusting the element position, element size, element color, etc.
  • the element can be a courseware, or an element can be an independent object in the courseware.
  • the user can turn the page, close, delete, etc. of the element.
  • the user can control the pictures individually, or control the pictures to respond synchronously when controlling the courseware.
  • two display screens respectively start different application programs as an example to describe a method for transferring elements under the two display screens.
  • the smart interactive tablet can control the two application programs to run cooperatively, so as to implement the element transfer method provided in the embodiment of the present application.
  • the two applications can also directly communicate with each other, and the specific communication means embodiment is not limited.
  • FIG. 1 is a flowchart of an element transmission method provided in Embodiment 1 of this application.
  • the element delivery method specifically includes:
  • Step 110 Receive a first touch operation on a first screen, where the first touch operation acts on an element displayed on the first screen.
  • elements in any display screen can be transferred and displayed between two display screens, that is, elements in one display screen can be transferred to another display screen for display.
  • the display screen that displays the element before the transfer can be understood as the display screen that initiates the element transfer, which is recorded as the first screen in the embodiment
  • the display screen that displays the element after the transfer can be understood as the display screen that receives the element.
  • different applications are opened on the first screen and the second screen respectively, that is, the user can perform different functions through the first screen and the second screen respectively.
  • the application program corresponding to the first screen has a document display function. At this time, the first screen displays a document display interface for displaying documents.
  • the application corresponding to the second screen has a writing function. At this time, a writing interface is displayed on the second screen for responding to the writing operation.
  • the related operations on the first screen mentioned in the embodiments are all realized by controlling the execution of the application corresponding to the first screen by the smart interactive tablet, and the related operations on the second screen mentioned in the embodiments are all through The smart interactive tablet controls the execution of the application program corresponding to the second screen.
  • At least one element is displayed on the first screen, and the type of the element is not limited in the embodiment.
  • the user can set the touch operation mode by inputting on the first screen to control the elements on the first screen accordingly.
  • the currently received touch operation is recorded as the first touch operation, where the first touch operation is a touch operation for transferring elements between two display screens.
  • the first touch operation can act on at least one element on the first screen.
  • the first touch operation acts on one element as an example.
  • the trigger mode of the first touch operation can be set according to actual conditions. For example, when a touch trajectory meeting a setting requirement is detected on the first screen, it is determined that the first touch operation is received.
  • the setting requirements can be set according to actual conditions, for example, the initial touch position of the touch track is the display position of the element, and the flip direction of the touch track is in the set direction.
  • set the element transfer mode When in the element transfer mode, it is detected that an element on the first screen has received a set operation (such as drag operation, multi-touch operation, single-click operation or long-press operation, etc.) ), it is determined that the first touch operation is received.
  • the example of the trigger mode of the element transfer mode is not limited. For example, if a virtual button for mode switching is set, the display position and display style of the virtual button are not limited in the embodiment. When the virtual button receives a click operation, it switches to the element transfer mode.
  • the element transfer mode is exited.
  • setting the element in the active state when it is detected that the element in the active state receives the setting operation or the touch track meeting the setting requirement, it is determined that the first touch operation is received.
  • the element in the active state means that the element can be transferred and displayed between the display screens.
  • the trigger mode of the activation state can be set according to actual conditions. Generally speaking, the trigger mode of the activation state is different from the trigger mode of the first touch operation.
  • the element acting on the first touch operation is synchronously determined.
  • the presentation state of the element on the first screen can be modified, for example, the element is changed to a floating display, or the element’s status is modified. transparency. At this point, from the user's perspective, this element can be distinguished from other unacted elements.
  • the first screen and the second screen can display multiple types of elements, not all types of elements are suitable for transmission between the first screen and the second screen.
  • the writing track written by the user is not suitable for Transfer between the first screen and the second screen. Therefore, the element type that can be transferred is preset and recorded as the default transfer element type.
  • only elements that meet the preset transfer element type can be transferred between the first screen and the second screen.
  • Step 120 Control the element to move synchronously following the first touch operation.
  • the selected element is controlled to move synchronously following the first touch operation.
  • the current real-time touch position of the first touch operation obtained is used as the latest display position of the selected element on the first screen, and the display position of the element is updated to realize the synchronous movement of the element following the first touch operation .
  • the synchronous movement of the element following the first touch operation can also be understood as the synchronous movement of the element following the touch trajectory of the first touch operation.
  • the touch position of the first touch operation on the first screen is determined in real time, and then the first touch is obtained according to the touch position and the receiving time of the touch position The touch trajectory of the operation.
  • the shaking direction can be understood as the moving direction.
  • the touch track may or may not be displayed on the first screen.
  • the first screen is set not to display the touch track, so as to distinguish the first touch operation from the touch operation for writing.
  • the touch operation for writing can also be recorded as a writing operation.
  • the application corresponding to the first screen has a writing function, if the writing operation is received, the corresponding writing track can be displayed so that the user can clearly write content. It should be noted that due to hardware and/or software limitations, a delay is allowed when the element moves synchronously following the first touch operation.
  • Step 130 Confirm that the element meets the element transfer condition, control the element to continue to move, and adjust the first display size of the element during the moving process.
  • the element transfer condition refers to the restriction condition that can realize the element transfer between the two display screens.
  • the specific content of the element transfer condition can be set according to the actual situation.
  • the setting element transfer condition includes a trigger condition and/or a receiving condition.
  • the trigger condition is applied to the first screen, that is, the trigger condition is a restriction condition set for initiating element transfer.
  • the trigger condition can be set according to the application corresponding to the first screen and/or the first touch operation.
  • the trigger condition is that the application corresponding to the first screen activates the element transfer function
  • the element type of the first touch operation is the preset transfer element type
  • the movement speed of the first touch operation reaches the first preset speed
  • the first The movement distance of the touch operation reaches the first preset distance
  • the swing direction of the first touch operation meets the set direction
  • the movement duration of the first touch operation is greater than the set duration
  • the end of the first touch operation is confirmed, etc.
  • the receiving condition is applied to the second screen, that is, the receiving condition is a restriction condition set for the delivery of the received element.
  • the receiving condition may be set according to the application program corresponding to the second screen and/or the first touch operation.
  • the application corresponding to the second screen can monitor the parameters related to the first touch operation on the first screen, for example, the parameter is the moving speed of the first touch operation, Movement distance, movement duration, element type of the first touch operation, the first unit vector of the element when the first touch operation starts, the second unit vector of the element when the trigger condition is reached, and/or the set time before the trigger condition is reached.
  • the parameter is the moving speed of the first touch operation, Movement distance, movement duration, element type of the first touch operation, the first unit vector of the element when the first touch operation starts, the second unit vector of the element when the trigger condition is reached, and/or the set time before the trigger condition is reached.
  • the receiving condition set according to the first touch operation may be that the element type is the preset transfer element type, the vector difference between the first unit vector and the second unit vector is within the first set threshold, and/or the first The vector difference between the three unit vector and the second unit vector is within the second set threshold and so on.
  • the control element moves synchronously with the first touch operation, it is determined in real time whether the current element transfer condition is met. When it is confirmed that the element transfer condition is satisfied, it means that the element can be transferred and displayed between the two display screens. At this time, the control element continues to move in the first screen. It can be understood that the continued movement of the control element is automatically executed by the application corresponding to the first screen, and has nothing to do with the first touch operation.
  • the control element may move to the set display position.
  • the set display position in the first screen can be set according to actual conditions. For example, the set display position is a position close to the boundary of the second screen in the first screen.
  • the set display position is located at The boundary of the first screen in the moving direction of the first touch operation and pointing to the moving direction is a fixed distance.
  • the set display position is located in the moving direction of the first touch operation, and is a fixed distance from the touch position of the first touch operation when the element transfer condition is satisfied.
  • control element when continuing to move, may continue to move for a set time in the moving direction of the first touch operation when the element transfer condition is met, or the first screen boundary pointed by the control element along the first touch operation Continue to move the set duration, and when the set duration is reached, the element transfer display will be performed. That is, by setting the duration, the trigger moment of element delivery can be determined.
  • the display size of the element on the first screen is adjusted in real time.
  • the display size can be understood as the size of the element in the display screen, which can be determined according to the number of pixels occupied by the element in the display screen. It is understandable that if the display interface where the element is located has its own coordinate system, and the coordinate system and the pixel coordinate system in the display screen are mutually independent coordinate systems, the display size can also be understood as the size of the element in the display interface. It can be determined according to the number of coordinate points occupied by the element in the display interface.
  • the display interface includes but is not limited to canvas, document interface, courseware interface, web page, etc.
  • the display interface can be displayed on the display screen and the touch operation received in the display screen can be associated with the display interface.
  • the current only includes the pixel coordinate system as an example.
  • the display size of the element on the first screen of the first touch operation is recorded as the first display size.
  • the adjustment of the first display size occurs synchronously while the control element continues to move. From the user's point of view, you can see that the size of the element changes simultaneously as the element moves.
  • adjusting the first display size may include enlarging the first display size and/or reducing the first display size.
  • the adjustment method of the first display size can be set according to the actual situation. For example, as the moving duration increases, the first display size is reduced or enlarged proportionally. For another example, as the moving distance increases, the first display size is reduced or enlarged in proportion. For another example, as the moving speed increases, the first display size is reduced or enlarged proportionally.
  • a size threshold can be set.
  • the set size threshold can be set according to actual conditions.
  • the set size threshold may be the minimum size threshold.
  • set The size threshold may be the maximum size threshold.
  • adjusting the first display size is only an optional way for the element transfer display process to be presented on the first screen.
  • the first display size of the element can also be adjusted synchronously.
  • the adjustment method of the first display size may be the same as the adjustment method mentioned above. It can be understood that if the first one-way touch operation controls the element to adjust the first display size to gradually decrease, for example, when the first touch operation moves in the direction of the set display position, the first display size of the element gradually decreases, then When the drag element of the first touch operation moves in a direction opposite to the current direction, the first display size is controlled to gradually increase.
  • the first display size of the adjustable element is gradually reduced to make the element appear on the first screen during the element transfer process The effect of fading away.
  • adjust the first display size to gradually increase, when the element returns to the initial display position, the first display size of the element Adjust to the display size of the element before receiving the first touch operation.
  • the element can be controlled to continue to move synchronously with the first touch operation, and then the element can be controlled to continue until the end of the first touch operation is confirmed mobile. Or, regardless of whether the first touch operation continues to be performed, as long as it is detected that the element transfer condition is met, the element is controlled to continue to move. At this time, the application program corresponding to the first screen stops responding to the first touch operation.
  • Step 140 After the movement is completed, display the element on the second screen, and delete the element in the first screen, so as to realize the transfer of the element to the second screen.
  • the transfer display refers to displaying the element on the second screen and deleting the element on the first screen at the same time, that is, canceling the display of the element on the first screen. At this point, from the perspective of the user, it can be considered that the element is transferred from the first screen to the second screen.
  • the display size of the element is the same as the first display size of the element on the first screen before receiving the first touch operation. At this time, the element displayed in the second screen can be considered as copying the element in the first screen to the second screen.
  • the display size of the element is the default display size of the element, where the default display size refers to the display size of the element when the element is first displayed on the display screen after power on this time.
  • the display position of the element in the second screen is set according to the actual situation. For example, the display position of the element on the first screen before receiving the first touch operation is acquired, and then the element is displayed on the same display position on the second screen. For another example, the display position of the element on the second screen is preset. For another example, the display position of the element on the second screen is calculated according to the touch trajectory of the first touch operation.
  • the display element in the second screen and the deletion element in the first screen can be executed simultaneously or sequentially. Regardless of simultaneous execution or sequential execution, from the user's point of view, it can almost be considered that the elements displayed in the second screen and the elements deleted in the first screen are executed simultaneously. It is understandable that in practical applications, the element may not be deleted on the first screen, that is, when the element is displayed on the second screen, the element on the first screen can be restored to the initial display position. At this time, the two display screens also display this element.
  • the user can continue to control the element through the first touch operation in the second screen, so as to realize the transfer of the element from the second screen to the first screen.
  • the execution process is the same as the process of transferring the display from the first screen to the second screen, and will not be repeated here.
  • first screen and the second screen may also be two windows located in one display screen.
  • Fig. 2 is a first schematic diagram of a screen provided by an embodiment of the application. Referring to FIG. 2, it is the current display interface of the first screen 11 and the second screen 12. The first screen 11 displays an element 13, and the element 13 is in a picture format.
  • FIG. 3 is a second schematic diagram of a screen provided by an embodiment of this application. It is used to show the first touch operation, referring to FIG. 3, the swing direction of the first touch operation is shown by the arrow in FIG. 3.
  • the control element 13 moves in synchronization with the first touch operation (which can also be understood as following the teacher's finger) along the arrow direction. And when the element transfer condition is satisfied, the control element continues to move, and the first display size is simultaneously reduced during the movement.
  • FIG. 4 is a third schematic diagram of a screen provided by an embodiment of the application.
  • FIG. 4 which is the display interface of the first screen 11 and the second screen 12 at a certain moment when the control element continues to move.
  • the first display size of the element is significantly smaller.
  • FIG. 5 is a fourth schematic diagram of a screen provided by an embodiment of the application, which is a display interface of the first screen 11 and the second screen 12 after the transfer display is performed. Referring to FIG.
  • the element 13 is no longer displayed on the first screen 11, and the element 13 is displayed on the second screen 12, so that the element 13 is transferred from the first screen 11 to the second screen 12.
  • the teacher can explain the element 13 in the second screen 12 by writing, moving, zooming, and marking.
  • the above element transfer method by receiving the first touch operation acting on the element in the first screen, the element is controlled to move synchronously according to the first touch operation. If it is confirmed that the element meets the element transfer condition, the control element continues to move and is moving After the end, the element is displayed on the second screen, and the element in the first screen is deleted, so as to realize the transfer of the element from the first screen to the second screen for display.
  • the elements can be transferred between the display screens through the first touch operation according to the actual display needs of the user, that is, the elements appearing in one display screen can be displayed on the other display screen, and it is guaranteed The similarity between the elements after the transfer and the elements before the transfer. It not only realizes the rapid and accurate transfer and display of elements between screens, but also the realization method is simple, without the need to create corresponding elements on the display screen, which reduces the workload of the element creation process and enriches the functionality of the electronic whiteboard.
  • FIG. 6 is a flowchart of an element transmission method provided in Embodiment 2 of this application. This embodiment is embodied on the basis of the above-mentioned embodiment. Referring to FIG. 6, the element transfer method provided in this embodiment specifically includes:
  • Step 210 In response to the received second touch operation, adjust the element to an activated state.
  • the element In the activated state, the element can be triggered to perform an element transfer event, and the second touch operation acts on the The element in the first screen.
  • the activated state is a state in which the element is ready for delivery and display.
  • the element can execute an element delivery event according to the user's first touch operation.
  • the basic state of the element In the basic state, users can perform normal operations on elements. Common operations include but are not limited to zoom, drag, rotate, etc. By setting the activation state, the user can make it clear whether the element can be passed and displayed.
  • the activation state can be achieved through the set touch operation.
  • the touch operation that realizes the active state is recorded as the second touch operation.
  • the second touch operation acts on the element that is expected to be transmitted and displayed.
  • the trigger mode of the second touch operation can be set according to actual conditions, and is different from the trigger mode of the first touch operation and the normal operation.
  • the second touch operation is a long-press operation, a double-click operation, a multi-finger click operation, etc. for the element.
  • a long press operation is taken as an example for description.
  • Set a time length In the basic state, when a touch operation for an element is received, and the touch operation for the element is pressed for longer than the set time length, it is determined that the second touch is received operating.
  • the element is switched from the basic state to the active state.
  • touch operations such as dragging, multi-finger zooming, rotating, etc. occur, it is determined to receive other touch operations and proceed according to other touch operations response. At this time, the element will not enter the active state.
  • the type of the element is obtained, and whether the type is a preset transfer element type is confirmed, and if it is the preset transfer element type, the element is switched from the basic state to the activated state. Otherwise, continue to maintain the element in the basic state.
  • it may further include: in response to the received third touch operation, canceling the activation state of the element, the third touch operation acting on the first screen.
  • the deactivation state can be realized by another set touch operation acting on the first screen.
  • this touch operation is recorded as the third touch operation.
  • the trigger mode of the third touch operation can be set according to actual conditions. For example, after the element is in the activated state, if the long press operation for the element is received again, it is determined that the third touch operation is received. At this time, the duration of the third touch operation and the duration of the second touch operation may be equal or different. For another example, when it is detected that the click operation is received in the screen range outside the activated element in the first screen, it is confirmed that the third touch operation is received.
  • a multi-touch operation such as a multi-point tap operation
  • the third touch operation is received.
  • the element is restored from the activated state to the basic state.
  • the means of distinguishing display can be set according to the actual situation.
  • the activated element is controlled to be displayed in a floating state.
  • the element is displayed in the normal state on the first screen, and the normal state is different from the floating state.
  • the transparency of the element is changed, and the element is displayed in a semi-transparent state, wherein the specific parameters of the transparency can be set according to the actual situation.
  • the border of the element when the element is switched to the active state, the border of the element is thickened to highlight the element. Among them, the thickness of the border line can be set according to the actual situation.
  • the differentiated display of the element when the element is switched from the active state back to the basic state, the differentiated display of the element is cancelled to prompt the element to switch back to the basic state.
  • the element state can also be prompted by means of a prompt box. For example, when the element is switched to the active state, a prompt box will pop up to prompt the user to switch the current element from the basic state to the active state with a text message.
  • the display duration, display position, and display style of the prompt box and text information can be set according to actual conditions.
  • the prompt box is used to prompt the status of the element, the user can also be prompted to trigger the element transfer event through the first touch operation, thereby realizing the transfer display of the element between the display screens.
  • a prompt box will also pop up to prompt the user to switch the current element from the activated state to the basic state with a text message.
  • FIG. 7 is a fifth schematic diagram of a screen provided by an embodiment of this application, which is the current display interface of the first screen 21 and the second screen 22.
  • the element 23 in the first screen 21 is in a basic state. In the basic state, the drag operation on the element 23 will not trigger the element 23 to transfer and display from the first screen 21 to the second screen 22.
  • the second touch operation on the element 23 is detected, it is determined that the element 23 enters the activated state.
  • FIG. 8 is a sixth schematic diagram of a screen provided by an embodiment of this application. It is the display interface of the first screen 21 and the second screen 22 after the element 23 enters the active state. Referring to FIG. 8, the element 23 is displayed in a floating state.
  • the element transfer event can be triggered according to the user's first touch operation, and when the element transfer condition is met, the element is transferred from the first screen 21 to the second screen 22 for display.
  • the display state of the element 23 in FIG. 8 has changed, which in turn enables the user to determine that the element 23 enters the active state, which is convenient for the user to perform subsequent operations.
  • the smart interactive tablet confirms that the third touch operation is detected, and controls the element 23 to switch from the activated state to the basic state.
  • FIG. 9 is a seventh schematic diagram of the screen provided by the embodiment of the application, which is the display interface of the first screen and the second screen after the element 23 is switched from the active state to the basic state.
  • the display state of the element 23 in FIG. 9 has changed again, switching from the floating state to the normal state for display, so as to prompt the user to switch the current element 23 back to the basic state.
  • the fingers appearing in the above figures are only used to explain the technical solution, and will not be displayed on the screen in actual applications.
  • the display interface of FIG. 9 is the same as that of FIG. 7.
  • the elements in the first screen are used for description.
  • the elements displayed on the second screen may also include at least a basic state and an activation state.
  • Step 220 Receive a first touch operation on the first screen, where the first touch operation acts on an element displayed on the first screen.
  • Step 230 Control the element to move synchronously following the first touch operation.
  • Step 240 Confirm whether the element meets the element transfer condition. If it is confirmed that the element meets the element transfer condition, step 250 is executed. Otherwise, go to step 270.
  • step 250 the element transfer condition is confirmed to be satisfied
  • step 270 the test is continued to confirm Whether the element transfer condition is reached, until the end of the first touch operation, when it is confirmed that the first touch operation ends, the element transfer condition is still not met, then it is confirmed that the element transfer condition is not satisfied, at this time, step 270 is executed.
  • the technical means for detecting the end of the first touch operation may be detecting that the first touch operation leaves the first screen.
  • Step 250 The control element continues to move, and during the movement, the first display size of the element is adjusted and the display transparency of the element is adjusted.
  • the element When the element is moving, adjust the first display size of the element. And at the same time adjust the display transparency of the element.
  • Display transparency can be understood as the transparency of elements on the screen. The lower the transparency, the lower the possibility of seeing the background pattern through the element, and the higher the transparency, the higher the possibility of seeing the background pattern through the element.
  • the transparency of the control element is gradually increased as an example for description. At this time, as the element moves, its transparency gradually increases, so that the element appears gradually disappearing.
  • the transparency increase rules can be set according to actual conditions. For example, as the moving time, moving distance, and/or moving speed increase, the transparency of the element is gradually increased.
  • the display position is preset, and the transparency of the element is gradually increased as the distance between the element and the set display position decreases.
  • a transparency threshold can be set, and when the transparency of the element reaches the threshold, the adjustment of the transparency is stopped. For example, when the element moves to the set display position, the transparency of the element is adjusted to the threshold.
  • FIG. 10 is an eighth schematic diagram of a screen provided by an embodiment of this application, which is a display interface of the first screen 21 and the second screen 22 at a certain time during the process of the element 23 continuing to move. Compared with the element 23 shown in FIG. 8, the first display size of the element 23 in FIG. 10 becomes smaller and its transparency is enhanced. It is understandable that the fingers and arrows appearing in the above figures are only used to explain the technical solution, and will not be displayed on the screen in actual applications.
  • the modification method of transparency can be the same as the above-mentioned method, or it can be different.
  • the transparency modification method may be: gradually increasing the transparency of the element as the distance between the element and the boundary of the first screen decreases. When the element is close to the initial display position, gradually reduce the transparency of the element.
  • Step 260 After the movement is completed, display the element in the first display position of the second screen, and the second display size of the element is equal to the element in the first screen before receiving the first touch operation The first display size of, and delete the element in the first screen, so as to realize the transfer of the element to the second screen.
  • the first display position includes a horizontal position and a vertical position.
  • the horizontal position can be regarded as the coordinate position of the Y axis in the pixel coordinate system of the second screen
  • the vertical position can be regarded as the coordinate position of the X axis in the pixel coordinate system of the second screen. It can be understood that the display position of the element on the first screen also includes a horizontal position and a vertical position.
  • the first display position can be set according to actual conditions.
  • the boundary between the first display position and the second screen is a fixed distance, and the boundary is a horizontal boundary pointed by the first touch operation and/or a vertical boundary pointed by the first touch operation.
  • the first touch operation is an operation pointing to the second screen.
  • the first screen and the second screen are arranged horizontally.
  • the vertical boundary to which the first touch operation points refers to the vertical boundary of the second screen that is close to the first screen.
  • the horizontal borders of the first screen and the second screen are located on the same horizontal plane, the distance between the element and the two horizontal borders in the first screen before receiving the first touch operation can be calculated, or the element and the first screen when the element trigger condition is satisfied. The distance between two horizontal borders on a screen.
  • the swing direction of the first touch operation can also be referred to.
  • the swing direction is upper left, and at this time, the horizontal boundary pointed by the first touch operation is the horizontal boundary located above the second screen.
  • the determination method for determining the horizontal boundary and the vertical boundary to which the first touch operation is directed is the same as when the first screen and the second screen are arranged horizontally. I won't repeat them here.
  • the first display position is a fixed distance from the horizontal boundary and/or the vertical boundary pointed by the first touch operation.
  • the boundary to which the first touch operation is directed may be set according to actual conditions to include a horizontal boundary and/or a vertical boundary.
  • the first display position can be regarded as a fixed position, which has nothing to do with the display position of the element on the first screen or the touch position of the first touch operation.
  • the border includes only the horizontal border, it means that the vertical position of the first display position in the second screen is fixed.
  • the horizontal position of the first display position may be determined according to the display position of the element on the first screen or the touch position of the first touch operation.
  • the method for determining the longitudinal position of the element is the same as the method for determining the horizontal position when the longitudinal position is fixed, and will not be repeated here.
  • FIG. 11 is a ninth schematic diagram of a screen provided in an embodiment of this application.
  • the element 23 is at the first display position of the second screen 22, and a fixed distance between the first display position and the vertical boundary of the second screen 22 is preset.
  • the dotted line set with reference to the second screen 22 is a reference line for the distance between the element 23 and the left vertical border of the second screen 22. At this time, the left border of the element 23 can only be set on the dotted line.
  • the horizontal position of the element 23 is the same as the horizontal position displayed on the first screen 21 before the element 23 receives the first touch operation. It can be understood that the dotted lines, arrows, and elements in the first screen appearing in the above figures are only used to explain the technical solution, and will not be displayed on the screen in actual applications.
  • FIG. 12 is a tenth schematic diagram of a screen provided by an embodiment of this application.
  • the element 23 is at the first display position of the second screen 22, and a fixed distance between the element and the horizontal boundary of the second screen 22 is preset.
  • the upper border of the element 23 can only be set on the dotted line, that is, the horizontal border of the element 23 and the second screen 22 is at a fixed distance.
  • the longitudinal position of the element 23 is the same as the longitudinal position displayed on the first screen 21 before the element 23 receives the first touch operation. It can be understood that the dotted lines, arrows, and elements in the first screen appearing in the above figures are only used to explain the technical solution, and will not be displayed on the screen in actual applications.
  • the first display position is the same as the second display position
  • the second display position is the display position of the element on the first screen before receiving the first touch operation or when it is confirmed that the element transfer condition is satisfied.
  • the first display position may also be determined according to the display position of the element on the first screen. At this time, the display position of the element on the first screen is recorded as the second display position.
  • the second display position also includes a horizontal position and a vertical position, and respectively corresponds to the Y-axis coordinate position and the X-axis coordinate position in the pixel coordinate system of the first screen.
  • the second display position may be the display position of the element on the first screen before receiving the first touch operation. At this time, the same coordinate position in the pixel coordinate system of the second screen is taken as the second display position.
  • the second display position may also be the display position of the element on the first screen when the element transfer condition is satisfied. When it is confirmed that the element transfer condition is satisfied, the coordinate position of the element in the pixel coordinate system of the first screen is obtained. After that, the same coordinate position in the pixel coordinate system of the second screen is taken as the second display position.
  • FIG. 8 shows the display interfaces of the first screen 21 and the second screen 22 before receiving the first touch operation.
  • the control element 23 can be transferred from the first screen 21 to the second screen 22.
  • FIG. 13 is an eleventh schematic diagram of a screen provided by an embodiment of the application, which is a display interface of the first screen 21 and the second screen 22 after the element 23 is transferred.
  • the first display position of the element 23 on the second screen 22 corresponds to the second display position of the element on the first screen 21 before receiving the first touch operation, that is, the first display position and the second display position are at two positions.
  • the corresponding positions in the display are the same. It is understandable that the arrows appearing in Fig. 13 and the elements in the first screen are only used to explain the technical solution, and will not be displayed on the screen in actual applications.
  • FIG. 14 is a twelfth schematic diagram of a screen provided by an embodiment of this application.
  • the first screen 21 it is the display interface of the first screen when the element transfer condition is satisfied.
  • the second screen 22 it is the display interface of the second screen 22 after the element 23 is transferred and displayed.
  • This figure is for explaining the first display position.
  • the two display screens will not display the display interfaces at different times at the same time.
  • the first display position of the element 23 on the second screen 22 corresponds to the second display position of the element 23 on the first screen 21 when the element transfer condition is satisfied.
  • the arrow appearing in the above FIG. 14 is only used to explain the technical solution, and will not be displayed on the screen in actual applications.
  • the display size of the element can be set.
  • the display size of the element on the second screen is recorded as the second display size.
  • the second display size can be set according to actual conditions.
  • the second display size is a fixed size set by the smart interactive tablet and the fixed size can be modified by the user.
  • the second display size is the default display size when the element is opened.
  • the second display size is related to the first display size of the element.
  • the second display size is related to the first display size of the element as an example. At this time, the second display size is set equal to the first display size of the element before receiving the first touch operation.
  • the application corresponding to the first screen When receiving the first touch operation, the application corresponding to the first screen first records the first display size of the element, and then, before displaying the element on the second screen, the application corresponding to the second screen obtains the application corresponding to the first screen The first display size recorded by the program, so that the application program corresponding to the second screen obtains the second display size based on the first display size, and displays it according to the second display size.
  • the element is displayed in the basic state at the first display position. At this point, the user can perform regular operations on the element through the second screen.
  • the element can be directly displayed on the first display position, or the element can be displayed on the boundary of the second screen, and the element can be controlled to move from the boundary of the second screen to the first display position, where the boundary can be Set to be close to the border of the first screen.
  • the second display size can be adjusted synchronously.
  • the second display size is controlled to zoom in synchronously, and when the element is displayed in the first display position, the second display size is equal to the first display size of the element before receiving the first touch operation. Controlling the second display size to zoom in simultaneously can make the element present a display effect from scratch.
  • the transparency of the element can be adjusted in real time, for example, the transparency of the control element is gradually reduced, so as to achieve a display effect that makes the element appear from scratch.
  • FIG. 15 is a thirteenth schematic diagram of a screen provided by an embodiment of this application, which shows the first display when the control element 23 moves from the boundary pointed by the first touch operation to the first display position of the second screen 22.
  • the display interface of the screen and the second screen When the element 23 moves to the first display position, the display interfaces of the first screen and the second screen change to FIG. 13.
  • the second display size of the element 23 is the same as the second display size of the element 23 before the first touch operation
  • One display size is equal.
  • the second display size of the element 23 in FIG. 15 is significantly smaller and the transparency is higher. It is understandable that the arrows appearing in the above figures are only used to explain the technical solution, and will not be displayed on the screen in actual applications.
  • the display conflict needs to be resolved to avoid overlapping of the display positions of the two elements.
  • the display position of another element can be modified, and the other element can be switched to another position for display, so as to move out of the first display position.
  • the first display position of the element can also be modified.
  • Step 270 Confirm that the element does not meet the element transfer condition, and restore the element to its original state, where the original state is the display state of the element on the first screen before the first touch operation is received .
  • the execution of the element transfer event can be stopped.
  • the element can be restored to the state before receiving the first touch operation.
  • first record the display state of the corresponding element before receiving the first touch operation and record the display state as the original state, where the display state includes the first display size, display position, transparency, and/ Or the color, thickness, and line shape of the border.
  • the element is restored to the original state.
  • the element is in an active state before receiving the first touch operation.
  • cancel the first touch operation to restore the element to its original state.
  • a prompt box will pop up to prompt the user that the element transfer has failed.
  • the element transfer method by receiving the first touch operation acting on the element in the first screen, the element is controlled to move synchronously according to the touch track of the first touch operation. If it is confirmed that the element meets the element transfer condition, the control element continues After the movement is completed, the element is displayed on the second screen, and the element in the first screen is deleted, so as to realize the transfer of the element from the first screen to the second screen for display.
  • the display size of the element is adjusted, and when the element is displayed on the second screen, the display position of the element on the second screen is set.
  • elements can be transferred between screens through the first touch operation, so that elements appearing on one screen can be displayed on another screen, which not only realizes the rapid and accurate transfer and display of elements between screens, but also And its implementation method is simple, no need to create corresponding elements on the screen, which reduces the workload of the element creation process.
  • the element when the element is displayed on the second screen, the element can be displayed in the corresponding position according to the setting or actual operation, and the display size of the element in the second screen is the same as the display size of the element in the first screen before the transfer to ensure the element transfer Time accuracy.
  • the elements that can be transferred can be distinguished from other elements.
  • the way of element transfer is flexible and convenient. The element transfer is triggered by touch operation, and when the element transfer condition is met, the element can be transferred between screens. Its simple operation can effectively improve the user experience.
  • FIG. 16 is a flowchart of an element transmission method provided in Embodiment 3 of this application.
  • the element transfer method provided in this embodiment and the element transfer method provided in the foregoing embodiment are applied in the same scenario, that is, different applications are opened on the first screen and the second screen, respectively.
  • the application program corresponding to the first screen has a document display function.
  • the first screen displays a document display interface for displaying documents.
  • the application corresponding to the second screen has a writing function.
  • a writing interface is displayed on the second screen for responding to the writing operation.
  • the related operations on the first screen mentioned in the embodiments are all realized by controlling the execution of the application corresponding to the first screen by the smart interactive tablet, and the related operations on the second screen mentioned in the embodiments are all through
  • the smart interactive tablet controls the execution of the application program corresponding to the second screen.
  • the element transfer method specifically includes:
  • Step 310 Receive a first touch operation on a first screen, where the first touch operation acts on an element displayed on the first screen.
  • Step 320 Obtain a touch track of the first touch operation on the first screen.
  • the touch event is monitored, and the coordinates of the first touch operation in the pixel coordinate system are determined through the parameters of the touch event, so as to obtain the touch position.
  • the touch position is obtained, the time relationship between the touch positions can be obtained synchronously, and then the touch track can be obtained according to the time relationship.
  • the initial touch position of the first touch operation is set to be on the element.
  • the first touch operation received by an element is detected, it is confirmed that the element is selected.
  • Step 330 Control the element to move synchronously following the touch track.
  • the latest touch position of the first touch operation is determined in real time or at intervals, and then the latest touch position is taken as the latest display position of the selected element on the first screen, and thereafter, based on the latest touch position obtained each time
  • the display position updates the display of the element to realize the synchronous movement of the element following the touch track.
  • the latest touch position can be used as the display of the element Position center, and then get the latest display position.
  • the relative position relationship between the touch position and the display position of the element is determined, and then the latest display position is obtained according to the relative position relationship and the latest touch position.
  • calculate the positional relationship between the latest touch position and the touch position obtained when the first touch operation is received and then obtain the displacement coordinates, and then adjust the element according to the displacement coordinates
  • the display position of the element is transformed to get the latest display position of the element.
  • the position relationship between the latest touch position and the second new touch position acquired last time is calculated, and then the displacement coordinates are obtained, so as to obtain the latest display position of the element through the displacement coordinates.
  • Step 340 Confirm that the element meets the element transfer condition, control the element to continue to move, and adjust the first display size of the element during the moving process.
  • control element moves following the touch trajectory of the first touch operation, it is also determined in real time whether the element meets the element transfer condition, and when the element transfer condition is satisfied, the element is controlled to continue to move. At this time, no user operation is required.
  • the first display size of the element is adjusted during the movement of the element.
  • the first display size is enlarged or reduced in an equal proportion.
  • the embodiment of the specific adjustment method of the first display size is not limited.
  • Step 350 After confirming the completion of the element movement, create a copy of the element in the second screen, and delete the element in the first screen, so as to realize the transfer of the element to the second screen.
  • confirming the end of the element movement includes: the element moves to the set display position. That is, when the element transfer condition is satisfied, the control element continues to move to the set display position in the first screen, and when it moves to the set display position, confirm the end of the movement. If the movement duration of the element is preset and recorded as the set duration, confirming the end of the movement of the element includes: confirming that the movement duration of the element reaches the set duration. That is, when the element transfer condition is met, the control element continues to move in the current direction in the first screen, and when the moving duration reaches the set duration, the end of the movement is confirmed.
  • the element After the element is moved, the element is triggered to pass and display. Among them, when the element is triggered to pass and display, a copy of the selected element is created in the second screen, that is, the selected element is displayed in the second screen.
  • creating a copy of an element can be understood as the application program corresponding to the second screen obtains the storage address of the element through the application program corresponding to the first screen, and then obtains the element according to the storage address and displays it on the second screen. It is understandable that when the element is displayed on the first screen, the element is also acquired based on the storage address for display. Therefore, the application corresponding to the first screen can be instructed to send the storage address to the application corresponding to the second screen.
  • the storage address can be understood as the location of the element in the memory.
  • the element is displayed in the first display position of the second screen.
  • the application corresponding to the second screen notifies the application corresponding to the first screen, so that the application corresponding to the first screen deletes the element in the first screen.
  • the element transfer method by receiving the first touch operation acting on the element in the first screen, the element is controlled to move synchronously according to the touch track of the first touch operation. If it is confirmed that the element meets the element transfer condition, the control element continues Move, and after the move, create a copy of the element in the second screen, and delete the element in the first screen, so as to realize the transfer of the element from the first screen to the second screen for display.
  • elements can be transferred between screens through the first touch operation according to the actual display needs of the user, so that the elements appearing on one screen can be displayed on another screen, which not only realizes the fast and accurate elements
  • the display is transferred between the screens, and its implementation is simple, and there is no need to create corresponding elements on the screen, which reduces the workload of the element creation process.
  • FIG. 17 is a flowchart of the element transmission method provided in the fourth embodiment of this application.
  • the element transfer method provided in this embodiment and the element transfer method provided in the foregoing embodiment are applied in the same scenario.
  • the element delivery condition includes: a trigger condition and/or a reception condition, the trigger condition is applied to the first screen, and the reception condition is applied to the second screen.
  • the element transfer condition includes a trigger condition and/or a receiving condition, where the trigger condition is a restriction condition set for initiating element transfer, that is, the trigger condition is a restriction condition for the first screen.
  • the receiving condition is a restriction condition set for the transmission of the received element, that is, the receiving condition is a display condition for the second screen.
  • the content of the trigger condition and the receiving condition can be set according to actual conditions. In practical applications, you can set the element transfer display only after the trigger condition and the receiving condition are met at the same time, or you can perform the element transfer display when any one of the trigger condition or the receiving condition is met.
  • the element transfer method provided in this embodiment includes:
  • Step 410 Receive a first touch operation on a first screen, where the first touch operation acts on an element displayed on the first screen.
  • Step 420 Obtain a touch track of the first touch operation on the first screen.
  • Step 430 Control the element to move synchronously following the touch track.
  • Step 440 When it is confirmed that the first screen meets the trigger condition, send an element delivery notification to the second screen.
  • the trigger condition includes at least one of the following: the moving speed of the first touch operation reaches a first preset speed; the moving distance of the first touch operation reaches the first preset distance; confirming the end of the first touch operation .
  • the moving speed of the first touch operation may refer to an instantaneous speed or an average speed.
  • the average speed may be obtained based on the current time period of the first touch operation, or it may be based on the current time and the set time before the current time (for example, the time 2S before the current time). The average speed is obtained during the time period.
  • the movement speed corresponding to the touch position can be calculated synchronously.
  • the moving speed is compared with the first preset speed to determine whether the moving speed reaches the first preset speed, where the moving speed reaches the first preset speed can be that the moving speed is equal to the first preset speed or the moving speed is greater than The first preset speed.
  • the moving speed does not reach the first preset speed, continue to detect whether the moving speed reaches the first preset speed.
  • the moving speed reaches the first preset speed, confirm whether the trigger condition also contains other content, if it does not contain other content, determine that the trigger condition is satisfied, if it contains other content, confirm whether other content is also satisfied at the current moment, if not satisfied , Continue to detect whether the moving speed reaches the first preset speed and whether other content meets the condition, and if so, it is determined that the trigger condition is satisfied.
  • the specific value of the first preset speed can be set according to actual conditions, which is not limited in the embodiment.
  • the moving distance of the first touch operation may refer to the linear length between the latest touch position of the first touch operation and the touch position when the first touch operation is received, or may refer to the length of the touch track.
  • the moving distance is updated in real time.
  • the movement distance is compared with the first preset distance to determine whether the movement distance reaches the first preset distance, where the movement distance reaches the first preset distance may be the movement distance equal to The first preset distance or the moving distance is greater than the first preset distance.
  • the operation performed after the moving distance reaches the first preset distance or does not reach the first preset distance is similar to the operation performed after the first speed reaches the first preset speed or does not reach the first preset speed, and will not be repeated here.
  • the end of the first touch operation can be understood as the user leaves the first screen and no longer performs the touch operation.
  • the first touch operation is not detected, it is determined that the first touch operation ends.
  • the operation performed when the first touch operation ends or does not end is similar to the operation performed after the first speed reaches the first preset speed or does not reach the first preset speed, and will not be repeated here.
  • the first screen sends an element delivery notification to the second screen, which can also be understood as an application corresponding to the first screen can send an element delivery notification to an application corresponding to the second screen.
  • the element delivery notification is used to notify the application corresponding to the second screen that the element delivery display is currently to be performed.
  • the specific content of the element delivery notification can be set according to the actual situation.
  • the application corresponding to the first screen can send all the applications corresponding to the multiple second screens that can currently perform data communication.
  • the element delivery notification allows the application corresponding to the second screen to determine whether it meets the receiving condition according to the element delivery notification, and then determine whether the element delivery display can be performed. Generally speaking, only one second screen among the plurality of second screens can satisfy the receiving condition.
  • the application program corresponding to the second screen can also monitor the first touch operation on the first screen in real time, and when it is confirmed that the first screen meets the trigger condition, it is determined that the element delivery notification is received, and subsequent operations are performed.
  • the method when setting the element delivery notification to be sent to the second screen, the method further includes: sending element shaking parameters to the second screen.
  • the element flipping parameter is a parameter obtained during the execution of the first touch operation and used for the application program corresponding to the second screen to determine whether the receiving condition is satisfied.
  • the element shaking parameter and the element shaking notification are sent at the same time.
  • the element shaking parameters can be determined in conjunction with the receiving conditions.
  • the element shaking parameter is the moving speed of the first touch operation, the first unit vector of the element when the first touch operation starts, and the second unit vector and the second unit vector of the element when the trigger condition is satisfied. Take the third unit vector of the element at the set time before the trigger condition is met, or the element type of the element as an example.
  • the first unit vector may be determined according to the shaking direction at the beginning of the first touch operation.
  • the second unit vector may be determined according to the shaking direction of the first touch operation when the trigger condition is met.
  • the third unit vector is determined according to the swing direction of the first touch operation at the set time before the trigger condition is met.
  • the set time can be set according to actual conditions, for example, the set time is a time 2 seconds before the time when the touch condition is satisfied.
  • Step 450 When the second screen receives the element delivery notification, it is determined whether the second screen satisfies the receiving condition. If the second screen meets the receiving conditions, step 460 is executed. Otherwise, step 480 is executed.
  • step 460 When the second screen receives the element transfer notification, it determines whether it meets the receiving condition, and when the receiving condition is satisfied, step 460 is executed, that is, the element transfer display is realized. Otherwise, step 480 is executed.
  • the element delivery notification received by the second screen means that the application program corresponding to the second screen receives the element delivery notification.
  • the receiving condition may be the activation of the element transfer function on the second screen.
  • the element transfer function is the function of receiving the transferred element.
  • the second screen launch element transfer function can also be understood as the application launch element transfer function corresponding to the second screen.
  • the activation mode of the element transfer function can be set according to the actual situation. For example, on the second screen, virtual keys for controlling element transfer functions are displayed. When it is detected that the virtual button receives a click, double-click, or long-press operation, it is determined to start the element transfer function.
  • the element transfer function After the element transfer function is activated, when it is detected that the virtual button receives a click, double-click, or long press operation again, it is determined to close the element transfer function.
  • the display position and display mode of the virtual key are not limited in the embodiment.
  • a single-finger or multi-finger touch operation of a specific touch track is detected on the second screen, it is determined to start the element transfer function.
  • the element transfer function is activated, when the single-finger or multi-finger touch operation of a specific touch track is detected on the second screen again, or other specific touch trajectory single-finger or multi-finger touch operations are detected, be sure to close Element transfer function.
  • a prompt box is used to prompt the user that the second screen can receive the elements transferred by the first screen.
  • determining whether the second screen meets the receiving condition may specifically include: determining whether the second screen meets the element shaking parameter Conditions of acceptance.
  • the content of the receiving condition is related to the element shaking parameter, that is, the application corresponding to the second screen determines whether the second screen satisfies the receiving condition according to the element shaking parameter.
  • the receiving conditions in this step may also include at least one of the following solutions:
  • Solution 1 The element shaking parameter is the moving speed of the first touch operation, and the receiving condition is: the moving speed reaches the second preset speed.
  • the second preset speed can be set according to actual conditions, and it can be the same as or different from the first preset speed.
  • the calculation method of the movement speed is the same as the calculation method of the aforementioned movement speed, and will not be repeated here.
  • the application corresponding to the first screen may send all the obtained moving speeds to the application corresponding to the second screen, or the application corresponding to the second screen may monitor the first touch operation in real time to obtain the moving speed in real time. When the moving speed reaches the second preset speed, it is determined that the receiving condition is satisfied. Otherwise, the comparison can be continued until the moving speed cannot be obtained (for example, the first touch operation is stopped) and the moving speed still does not reach the second preset speed, at this time, it can be considered that the receiving condition is not met.
  • the application program corresponding to the second screen only obtains the moving speed of the first touch operation when the trigger condition is met. When the moving speed reaches the second preset speed, it is determined that the receiving condition is satisfied. Otherwise, it is determined that the reception conditions are not met.
  • the element shaking parameters include: the first unit vector of the element at the beginning of the first touch operation and the second unit vector of the element when the trigger condition is met.
  • the receiving condition is: the difference between the first unit vector and the second unit vector The vector difference is within the first set threshold.
  • the swing direction of the first touch operation from the moment when the current trigger condition is met can be determined, and the swing direction can also be understood as the movement direction of the element.
  • the first preset threshold is a numerical range, which can be set according to the relative direction between the first screen and the second screen. The relative direction can be determined by the relative positional relationship between the first screen and the second screen.
  • Solution 3 The element shaking parameters include: the second unit vector and the third unit vector of the element at the set time before the trigger condition is met.
  • the receiving condition is: the vector difference between the third unit vector and the second unit vector is in the second Within the set threshold.
  • the second preset threshold is a numerical range, which can also be set according to the relative direction between the first screen and the second screen. And the second preset threshold may be the same or different from the first preset threshold.
  • the element shaking parameters include: the element type of the element, and the receiving condition is: the element type is the preset transfer element type.
  • the application program corresponding to the second screen may store preset transfer element types that can be transferred and displayed. After receiving the element type of the element that the first touch operation acts on, it is determined whether the element type is within the preset transfer element type, and if it is within the preset transfer element type, it is determined that the receiving condition is satisfied. Otherwise, it is determined that the reception conditions are not met.
  • Step 460 When the second screen satisfies the receiving condition, control the element to continue to move, and adjust the first display size of the element during the moving process.
  • the application corresponding to the first screen When the second screen satisfies the receiving condition, the application corresponding to the first screen is notified, so that the application corresponding to the first screen confirms that the second screen meets the receiving condition. After that, the application control element corresponding to the first screen continues to move in the first screen. And adjust the first display size of the element during the movement. Optionally, while moving, adjust the display transparency of the element at the same time.
  • Step 470 After confirming the completion of the element movement, create a copy of the element in the second screen, and delete the element in the first screen.
  • creating a copy of the element in the second screen specifically includes step 471 to step 473:
  • Step 471 Copy the element on the first screen before receiving the first touch operation.
  • Copying can be understood as generating a new instance (new element in this step), and then assigning its members to the original instance (the new element in this step is the same as the element before receiving the first touch operation).
  • Copying the element on the first screen before the first touch operation by the application corresponding to the first screen can be understood as obtaining the storage address of the element.
  • the first display size of the element can also be obtained.
  • Step 472 Confirm the first display position of the element in the second screen.
  • the method for determining the first display position can be set according to actual conditions.
  • setting this step includes any of the following schemes:
  • Solution 1 Obtain the second display position of the element in the first screen before receiving the first touch operation; use the corresponding position of the second display position in the second screen as the first display position of the element in the second screen.
  • the application program corresponding to the first screen records the display position of the element on the first screen when the first touch operation is received, and this is recorded as the second display position.
  • the application corresponding to the second screen obtains the second display position from the application corresponding to the first screen.
  • the embodiment of the method for acquiring the second display position is not limited.
  • the application program corresponding to the first screen adds the second display position to the element shaking parameter and sends it to the application program corresponding to the second screen. Since the second screen and the first screen have the same pixel coordinate system, in this step, the second display position can be directly used as the first display position and applied to the pixel coordinate system of the second screen.
  • Solution 2 Obtain the preset display position of the element, and use the element display position as the first display position of the element on the second screen.
  • the display position of the element can be directly acquired as the first display position.
  • the element display position can be selected according to actual conditions. It is understandable that since different elements may have different display sizes, the set element display position can be considered as the center position of the element, that is, the position where the center point is when the element is displayed.
  • Solution 3 Obtain the swing direction and trigger position of the first touch operation when the trigger condition is met; in the second screen, determine the closest boundary in the swing direction; determine the vertical distance to the boundary that meets the second preset distance The position set; the first display position of the element in the second screen is determined according to the trigger position, the position set, and the flip direction; wherein the boundary is a horizontal boundary or a vertical boundary.
  • the first display position may be the center position or the boundary position of the element when it is displayed.
  • the application corresponding to the second screen obtains from the application corresponding to the first screen the shaking direction and the trigger position of the first touch operation when the trigger condition is satisfied. Or, the application corresponding to the first screen adds the shaking direction and the trigger position to the element shaking parameters and transmits them.
  • the trigger position can be understood as the touch position of the first touch operation when the trigger condition is met.
  • the boundary is a horizontal boundary or a vertical boundary, which can be preset.
  • the boundary is a vertical boundary
  • the closest vertical boundary is determined according to the swing direction.
  • the closest vertical boundary is the vertical boundary close to the first screen.
  • the vertical boundary to which the first touch operation is directed can be determined according to the flipping direction, and then the vertical boundary is determined as the closest vertical boundary.
  • a vertical boundary may be specified by the application corresponding to the first screen or the second screen, for example, a vertical boundary close to the element may be specified.
  • the distance between the first display position and the vertical boundary is set to be fixed. That is, a vertical distance is preset, and then, the coordinates of each pixel on the vertical distance of the vertical boundary are obtained, and then the position set is obtained. It is understandable that the set of positions can be regarded as a line segment parallel to the vertical boundary.
  • FIG. 18 is a fourteenth schematic diagram of a screen provided by an embodiment of this application. Referring to FIG. 18, the vertical boundary 44 is the closest boundary in the second screen 42. The line segment 45 is a line segment corresponding to the coordinate set obtained based on the vertical boundary 44. It can be seen from FIG. 18 that the line segment 45 is parallel to the vertical boundary 44.
  • the first display position of the element on the second screen is determined according to the trigger position, the position set, and the flip direction. For example, when the trigger condition is met, the display position of the element 43 on the first screen 42 is as shown in FIG. 18, and the trigger position of the first touch operation is point A. After the position set is obtained, the distance L from the point A to the line segment 45 when the trigger condition is met can be determined according to the trigger position and the position set. The distance L is marked by a line 46 in FIG. 18. The swing direction is shown by the arrow in Figure 18. The swing direction vector when the trigger condition is met can be obtained by the swing direction.
  • the distance from point B to point C can be obtained, and then, According to the distance from point B to point C and the distance from point A to the upper horizontal boundary, the distance from point C to the upper horizontal boundary can be obtained, and then the first display position is obtained according to the distance and the fixed distance.
  • the dotted lines, intersections, and arrows appearing in the above drawings are only used to explain the technical solutions, and will not be displayed on the screen in actual applications.
  • the boundary is a horizontal boundary
  • the closest horizontal boundary is determined according to the swing direction.
  • the closest horizontal border is the horizontal border close to the first screen.
  • the horizontal boundary to which the first touch operation is directed can be determined according to the flipping direction, and then the horizontal boundary is determined as the closest horizontal boundary.
  • a horizontal boundary can be specified by the smart interactive tablet, for example, a horizontal boundary close to the element can be specified.
  • the distance between the first display position and the horizontal boundary is fixed. That is, a vertical distance is preset, and then, the coordinates of each pixel on the vertical distance of the horizontal boundary are obtained, and then the position set is obtained. It is understandable that the set of positions can be regarded as a line segment parallel to the horizontal boundary.
  • FIG. 19 is a fifteenth schematic diagram of a screen provided in an embodiment of this application.
  • the horizontal boundary 47 is a boundary line in the first screen 41 that is located on the same horizontal plane as the closest horizontal boundary in the second screen 42.
  • the line segment 48 is an extension line corresponding to the coordinate set obtained based on the closest horizontal boundary. It can be seen from FIG. 19 that the line segment 48 is parallel to the nearest horizontal boundary, and the line segment can extend into the first screen 41 and be parallel to the horizontal boundary 47.
  • the first display position of the element on the second screen is determined according to the trigger position, the position set, and the flip direction. For example, when the trigger condition is met, the display position of the element 43 on the first screen 42 is as shown in FIG. 19, and the trigger position of the first touch operation is D point.
  • the position set is obtained, the distance P from the point D to the extension line can be obtained according to the trigger position and the extension line of the position set in the first screen.
  • the distance P is marked by the line 49 in FIG. 18.
  • the end point of the line segment 49 on the extension line is marked as E point.
  • the swing direction is shown by the arrow in Figure 19, and the swing direction vector when the trigger condition is met can be obtained through the swing direction.
  • the distance from point E to point F can be obtained, and then, According to the distance from point E to point F and the distance from point D to the right vertical border of the first screen, the distance from point F to the left vertical border of the second screen can be obtained, and then the first display position can be obtained according to the distance and the fixed distance .
  • the dotted lines, intersections, and arrows appearing in the above drawings are only used to explain the technical solutions, and will not be displayed on the screen in actual applications.
  • Step 473 Paste the element at the first display position.
  • the element can be pasted in the first display position.
  • Step 480 Send a delivery failure notification to the first screen, so that the first screen restores the element to the original state.
  • the application corresponding to the second screen may send a delivery failure notification to the application corresponding to the first screen.
  • the content of the delivery failure notification and the communication method can be set according to the actual situation.
  • the application corresponding to the first screen determines that the element delivery display cannot be performed. At this time, the element can be restored to the original state.
  • the element by receiving the first touch operation acting on the element in the first screen, the element is controlled to move synchronously according to the touch track of the first touch operation. If it is confirmed that the element meets the element transfer condition, the control element continues Move, and after the move, create a copy of the element in the second screen, and delete the element in the first screen, so as to realize the transfer of the element from the first screen to the second screen for display.
  • the display size of the element is adjusted, and when the element is displayed on the second screen, the display position of the element on the second screen is set.
  • the elements can be transferred between screens through the first touch operation according to the actual display requirements of the elements, so that the elements appearing on one screen can be displayed on the other screen, which not only realizes the rapid and accurate display of the elements
  • the display is transferred between the screens, and its implementation is simple, and there is no need to create corresponding elements on the screen, which reduces the workload of the element creation process.
  • the trigger condition corresponding to the first screen and the receiving condition of the second screen the accuracy of the element delivery scene can be guaranteed.
  • the way of element transfer is flexible and convenient. The element transfer is triggered by touch operation, and when the element transfer condition is met, the element can be transferred between screens. Its simple operation can effectively improve the user experience.
  • FIG. 20 is a schematic structural diagram of an element transfer device provided in Embodiment 5 of this application.
  • the element transfer device includes: a first touch module 501, a first movement module 502, a first adjustment module 503, and a first transfer module 504.
  • the first touch module 501 is used to receive a first touch operation on the first screen, and the first touch operation acts on the elements displayed in the first screen;
  • the first mobile module 502 is used to control all The element moves synchronously following the first touch operation;
  • the first adjustment module 503 is used to confirm that the element meets the element transfer condition, control the element to continue to move, and adjust the first display size of the element during the movement.
  • the first transfer module 504 is used to display the element in the second screen after the movement is completed, and delete the element in the first screen, so as to realize the transfer of the element to the second screen.
  • the first transfer module is specifically configured to: after the movement is completed, display the element at the first display position of the second screen, and the second display size of the element is equal to the element received by the element.
  • the first display size in the first screen before the first touch operation, and the element in the first screen is deleted, so as to realize the transfer of the element to the second screen.
  • the boundary between the first display position and the second screen is a fixed distance, and the boundary is the horizontal boundary to which the first touch operation is directed and/or the first touch
  • the vertical boundary to which the operation points; or, the first display position is the same as the second display position, and the second display position is at the location before the element receives the first touch operation or when it is confirmed that the element transfer condition is satisfied. Describe the display position in the first screen.
  • an activation module configured to receive a first touch operation on the first screen, and before the first touch operation acts on the elements displayed on the first screen, responding to The second touch operation is received, the element is adjusted to an activated state, the element can be triggered to perform an element transfer event in the activated state, and the second touch operation acts on the element in the first screen The element.
  • a canceling module configured to, after adjusting the element to an activated state in response to the received second touch operation, cancel in response to the received third touch operation In the activation state of the element, the third touch operation acts on the first screen.
  • a restoration module configured to confirm that the element does not meet the element transfer condition, and restore the element to its original state, where the original state is before the first touch operation is received The display state of the element in the first screen.
  • the first adjustment module is also used to adjust the display transparency of the element.
  • the element transfer device provided above can be used to execute the element transfer method provided in the first embodiment to the second embodiment above, and has corresponding functions and beneficial effects.
  • Embodiment 5 of the present application also provides another element transfer device.
  • FIG. 21 is a schematic structural diagram of another element transfer device provided in Embodiment 5 of this application.
  • the element transfer device includes: a second touch module 505, an acquisition module 506, a second movement module 507, a second adjustment module 508, and a second transfer module 509.
  • the second touch module 505 is configured to receive a first touch operation on the first screen, and the first touch operation acts on an element displayed on the first screen; and the acquisition module 506 is configured to acquire the first touch operation.
  • the second movement module 507 is used to control the element to move synchronously following the touch track;
  • the second adjustment module 508 is used to confirm that the element meets the element transfer Condition, control the element to continue to move, and adjust the first display size of the element during the movement;
  • the second transfer module 509 is used to confirm the end of the element movement and create a copy of the element in the second screen , And delete the element in the first screen, so as to realize the transfer of the element to the second screen.
  • the element transfer condition includes: a trigger condition and/or a receiving condition, the trigger condition is applied to the first screen, and the receiving condition is applied to the second screen.
  • the element transfer conditions include: trigger conditions and receiving conditions;
  • the second adjustment module 508 includes: a notification unit, configured to confirm that the first screen satisfies the trigger conditions The second screen sends an element delivery notification;
  • the determining unit is configured to determine whether the second screen satisfies the receiving condition when the second screen receives the element delivery notification;
  • the control unit is configured to When the screen meets the receiving condition, control the element to continue to move.
  • the trigger condition includes: the movement speed of the first touch operation reaches a first preset speed; and/or the movement distance of the first touch operation reaches a first preset speed Distance; and/or, confirming that the first touch operation ends.
  • the receiving condition is: the second screen activates the element transfer function.
  • the notification unit is further configured to send element shaking parameters to the second screen
  • the determining unit is further configured to determine whether the second screen satisfies the receiving condition according to the element shaking parameter.
  • the element shaking parameter is the moving speed of the first touch operation, and the receiving condition is: the moving speed reaches a second preset speed; and/or, the element
  • the shaking parameter includes: the first unit vector of the element when the first touch operation starts and the second unit vector of the element when the trigger condition is satisfied, and the receiving condition is: the first unit vector and the The vector difference between the second unit vectors is within a first set threshold; and/or, the element shaking parameter includes: the second unit vector and the element at the set time before the trigger condition is satisfied
  • the receiving condition is that the vector difference between the third unit vector and the second unit vector is within a second set threshold; and/or, the element shaking parameter includes:
  • For the element type of the element the receiving condition is: the element type is a preset transfer element type.
  • the second transfer module 509 includes: a copying unit, configured to confirm that the element in the first screen before receiving the first touch operation is completed after the element is moved. Copying; a position determining unit for confirming the first display position of the element in the second screen; a paste unit for pasting the element at the first display position; an element deletion unit for deleting The element in the first screen to realize the transfer of the element to the second screen.
  • the position determining unit is specifically configured to: obtain a second display position of the element on the first screen before receiving the first touch operation; and set the second display position
  • the corresponding position in the second screen is taken as the first display position of the element in the second screen; or, a preset element display position is acquired, and the element display position is taken as the element’s display position
  • the first display position in the second screen or, obtain the flip direction and the trigger position of the first touch operation when the trigger condition is met; in the second screen, determine the closest boundary in the flip direction Determine the set of positions whose vertical distance from the boundary meets the second preset distance; determine the first display of the element in the second screen according to the trigger position, the set of positions and the direction of swing Position; wherein the boundary is a horizontal boundary or a vertical boundary.
  • the second transfer module 509 is specifically configured to: after confirming that the element moves to the set display position, create a copy of the element in the second screen, and delete the element in the first screen.
  • the element transfer device provided above can be used to implement the element transfer method provided in the third or fourth embodiment above, and has corresponding functions and beneficial effects.
  • FIG. 22 is a schematic structural diagram of an element transfer device provided in Embodiment 5 of this application.
  • a smart interactive tablet is used as an element transfer device as an example for description.
  • the smart interactive tablet 60 includes at least one processor 61, at least one network interface 62, a user interface 63, a memory 64, and at least one communication bus 65.
  • the communication bus 65 is used to realize the connection and communication between these components.
  • the user interface 62 may include a display screen and a camera, and the optional user interface 63 may also include a standard wired interface and a wireless interface. There may be at least one display screen, and two are taken as an example in the embodiment.
  • the network interface 62 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface).
  • the processor 61 may include one or more processing cores.
  • the processor 61 uses various interfaces and lines to connect the various parts of the entire intelligent interactive tablet 60, by running or executing instructions, programs, code sets, or instruction sets stored in the processor 61, and calling data stored in the memory 64 , Perform various functions of the smart interactive tablet 60 and process data.
  • the processor 61 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Arrays, PLA). A kind of hardware form to realize.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 61 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs;
  • the GPU is responsible for the rendering and drawing of the content that the display needs to display, the two display screens can share the same GPU, or each display screen corresponds to a GPU; modem Used to handle wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 61, but may be implemented by a chip alone.
  • the memory 64 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 64 includes a non-transitory computer-readable storage medium.
  • the memory 64 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 64 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing the operating system and instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), Instructions used to implement the foregoing method embodiments, etc.; the storage data area can store data and the like involved in the foregoing method embodiments.
  • the memory 64 may also be at least one storage device located far away from the aforementioned processor 61.
  • the memory 64 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application program of a smart interactive tablet.
  • the user interface 63 is mainly used to provide an input interface for the user to obtain data input by the user; and the processor 61 can be used to call the operation application of the smart interactive tablet stored in the memory 64 Program, and specifically execute the relevant operations in the element transfer method in the above embodiment.
  • the above-mentioned smart interactive tablet can be used to execute the element transfer method provided in any embodiment, and has corresponding functions and beneficial effects.
  • embodiments of the present application also provide a storage medium containing computer-executable instructions, which are used to perform related operations in the element transfer method provided by any embodiment of the present application when the computer-executable instructions are executed by a computer processor. , And have corresponding functions and beneficial effects.
  • this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware.
  • this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • This application is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions.
  • These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM).
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.

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

一种元素传递方法、装置、设备及存储介质,该方法包括:在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素(110);控制所述元素跟随所述第一触控操作同步移动(120);确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸(130);移动结束后,在第二屏幕中显示所述元素,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素(140)。

Description

元素传递方法、装置、设备及存储介质
本公开要求在2019年10月11日提交中国专利局、申请号为201910964777.2的中国专利申请的优先权,以上申请的全部内容通过引用结合在本公开中。
技术领域
本申请涉及电子白板技术领域,例如涉及一种元素传递方法、装置、设备及存储介质。
背景技术
随着计算机技术的发展,计算机设备被广泛应用于日常生活的各类场景。例如,具有电子白板功能的平板电脑、电视机等智能设备被广泛应用在办公、教学等场景下。为了丰富智能设备的功能性,出现了双屏智能设备。相应的,电子白板软件设置有双屏模式。通常,双屏模式下,两个显示屏可以显示不同的内容,即两个显示屏可以执行不同的功能,例如,教学场景下,一个显示屏用于展示课件,一个显示屏用于书写板书。但是相关技术存在如下问题:当用户需要对展示的某些元素进行讲解介绍时,需要在书写的屏幕中创建该元素,进而通过书写、缩放元素等方式进行讲解。此时,创建元素的过程会增加用户的工作量,而且无法保证创建的元素与展示的元素之间的相似度。
综上,双屏模式下,如何快速、准确地在一个屏幕中创建显示在另一个屏幕中的元素,成为了亟需解决的技术问题。
发明内容
本申请提供了一种元素传递方法、装置、设备及存储介质,以解决相关技术中双屏模式下,无法快速、准确地在一个屏幕显示另一个屏幕中出现的元素的技术问题。
第一方面,本申请提供了一种元素传递方法,包括:
在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素;
控制所述元素跟随所述第一触控操作同步移动;
确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸;
移动结束后,在第二屏幕中显示所述元素,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
所述在第二屏幕中显示所述元素包括:
在第二屏幕的第一显示位置显示所述元素,且所述元素的第二显示尺寸等于所述元素接收所述第一触控操作之前在所述第一屏幕中的第一显示尺寸。
所述第一显示位置与所述第二屏幕的边界为固定距离,所述边界为所述第一触控操作指向的水平边界和/或所述第一触控操作指向的竖直边界;或,
所述第一显示位置与第二显示位置相同,所述第二显示位置为所述元素接收所述第一触控操作之前或确认满足元素传递条件时在所述第一屏幕中的显示位置。
在所述在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素之前,还包括:
响应于接收到的第二触控操作,将所述元素调整为激活状态,在所述激活状态下可触发所述元素执行元素传递事件,所述第二触控操作作用于所述第一屏幕中的所述元素。
在响应于接收到的第二触控操作,将所述元素调整为激活状态之后,还包括:
响应于接收到的第三触控操作,取消所述元素的激活状态,所述第三触控操作作用于所述第一屏幕。
还包括:
确认所述元素不满足元素传递条件,将所述元素恢复至原始状态,所述原始状态为接收到所述第一触控操作之前所述元素在所述第一屏幕中的显示状态。
所述在移动过程中调整所述元素的第一显示尺寸时,还包括:
调整所述元素的显示透明度。
在第二方面,本申请还提供了一种元素传递方法,包括:
在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素;
获取所述第一触控操作在所述第一屏幕中的触控轨迹;
控制所述元素跟随所述触控轨迹同步移动;
确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸;
确认所述元素移动结束后,在第二屏幕中创建所述元素的副本,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
所述元素传递条件包括:触发条件和/或接收条件,所述触发条件应用于所述第一屏幕,所述接收条件应用于所述第二屏幕。
所述元素传递条件包括:触发条件和接收条件;
所述确认所述元素满足元素传递条件,控制所述元素继续移动,包括:
确认所述第一屏幕满足所述触发条件时,向所述第二屏幕发送元素传递通知;
所述第二屏幕接收到元素传递通知时,确定所述第二屏幕是否满足所述接收条件;
所述第二屏幕满足所述接收条件时,控制所述元素继续移动。
所述触发条件包括:
所述第一触控操作的移动速度达到第一预设速度;和/或,
所述第一触控操作的移动距离达到第一预设距离;和/或,
确认所述第一触控操作结束。
所述接收条件为:所述第二屏幕启动元素传递功能。
所述向所述第二屏幕发送元素传递通知时,还包括:
向所述第二屏幕发送元素甩动参数;
所述确定所述第二屏幕是否满足所述接收条件包括:
根据所述元素甩动参数确定所述第二屏幕是否满足接收条件。
所述元素甩动参数为所述第一触控操作的移动速度,所述接收条件为:所述移动速度达到第二预设速度;和/或,
所述元素甩动参数包括:所述第一触控操作开始时所述元素的第一单位向量和满足触发条件时所述元素的第二单位向量,所述接收条件为:所述第一单位向量和所述第二单位向量之间的向量差在第一设定阈值内;和/或,
所述元素甩动参数包括:所述第二单位向量和满足触发条件前设定时刻上所述元素的第三单位向量,所述接收条件为:所述第三单位向量和所述第二单位向量之间的向量差在第二设定阈值内;和/或,
所述元素甩动参数包括:所述元素的元素类型,所述接收条件为:所述元素类型为预设传递元素类型。
所述在第二屏幕中创建所述元素的副本包括:
对接收所述第一触控操作前所述第一屏幕中的所述元素进行复制;
确认所述元素在所述第二屏幕中的第一显示位置;
在所述第一显示位置粘贴所述元素。
所述确认所述元素在所述第二屏幕中的第一显示位置包括:
获取所述元素接收所述第一触控操作之前在所述第一屏幕中的第二显示位置;将所述第二显示位置作为所述元素在所述第二屏幕中的第一显示位置;或,
获取预先设定的元素显示位置,将所述元素显示位置作为所述元素在所述第二屏幕中的第一显示位置;或,
获取满足触发条件时所述第一触控操作的甩动方向以及触发位置;在所述第二屏幕中,确定甩动方向上距离最近的边界;确定与所述边界的垂直距离满足第二预设距离的位置集合;根据所述触发位置、所述位置集合以及所述甩动方向确定所述元素在所述第二屏幕中的第一显示位置;其中,所述边界为水平边界或竖直边界。
所述确认所述元素移动结束包括:
确认所述元素移动至设定显示位置;或,
确认所述元素的移动时长达到设定时长。
在第三方面,本申请还提供了一种元素传递装置,包括:
第一触控模块,用于在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素;
第一移动模块,用于控制所述元素跟随所述第一触控操作同步移动;
第一调整模块,用于确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸;
第一传递模块,用于移动结束后,在第二屏幕中显示所述元素,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
在第四方面,本申请还提供了一种元素传递装置,包括:
第二触控模块,用于在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素;
获取模块,用于获取所述第一触控操作在所述第一屏幕中的触控轨迹;
第二移动模块,用于控制所述元素跟随所述触控轨迹同步移动;
第二调整模块,用于确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸;
第二传递模块,用于在确认所述元素移动结束后,在第二屏幕中创建所述元素的副本,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
在第五方面,本申请还提供了一种元素传递设备,包括:
一个或多个处理器;
存储器,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面所述的元素传递方法或如第二方面所述的元素传递方法。
在第六方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所述的元素传递方法或如第二方面所述的元素传递方法。
上述元素传递方法、装置、设备及存储介质,通过在第一屏幕中接收作用于元素上的第一触控操作,根据第一触控操作的触控轨迹控制元素同步移动,若确认元素满足元素传递条件,则控制元素继续移动,并在移动结束后,在第二屏幕中显示元素,并删除第一屏幕中的元素,以实现将元素从第一屏幕传递至第二屏幕进行显示。采用上述技术手段,可以根据用户的实际显示需求,通过第一触控操作使元素在屏幕间进行传递,使一个屏幕中出现的元素能够在另一个屏幕上进行显示,不仅实现元素快速、准确地在屏幕间进行传递显示,且其实现方式简单,无需在屏幕上进行对应元素的创建,减少了元素创建过程的工作量。同时,在第二屏幕显示元素时,可以根据设置或实际操作将元素显示在对应位置上,且计算量小。此外,其元素的传递方式灵活便捷,通过触控操作以触发元素传递,并在满足元素传递条件时,即可实现元素在屏幕间进行传递,其操作简单,可有效提升用户的使用体验。附图说明
图1为本申请实施例一提供的一种元素传递方法的流程图;
图2为本申请实施例提供的屏幕第一示意图;
图3为本申请实施例提供的屏幕第二示意图;
图4为本申请实施例提供的屏幕第三示意图;
图5为本申请实施例提供的屏幕第四示意图;
图6为本申请实施例二提供的一种元素传递方法的流程图;
图7为本申请实施例提供的屏幕第五示意图;
图8为本申请实施例提供的屏幕第六示意图;
图9为本申请实施例提供的屏幕第七示意图;
图10为本申请实施例提供的屏幕第八示意图;
图11为本申请实施例提供的屏幕第九示意图;
图12为本申请实施例提供的屏幕第十示意图;
图13为本申请实施例提供的屏幕第十一示意图;
图14为本申请实施例提供的屏幕第十二示意图;
图15为本申请实施例提供的屏幕第十三示意图;
图16为本申请实施例三提供的一种元素传递方法的流程图;
图17为本申请实施例四提供的一种元素传递方法的流程图;
图18为本申请实施例提供的屏幕第十四示意图;
图19为本申请实施例提供的屏幕第十五示意图;
图20为本申请实施例五提供的一种元素传递装置的结构示意图;
图21为本申请实施例五提供的另一种元素传递装置的结构示意图;
图22为本申请实施例六提供的一种元素传递设备的结构示意图。
具体实施方式
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。
需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或操作或对象与另一个实体或操作或对象区分开来,而不一定要求或者暗示这些实体或操作或对象之前存在任何这种实际的关系或顺序。例如,第一触控操作和第二触控操作的“第一”和“第二”用来区分两个不同的触控操作。
本申请实施例中提供的元素传递方法可以由元素传递设备执行,该元素传递设备可以通过软件和/或硬件的方式实现,该元素传递设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。例如,元素传递设 备可以是电脑、手机、平板或智能交互平板等智能设备。
为了便于理解,实施例中以智能交互平板为元素传递设备进行示例性描述。其中,智能交互平板可以是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,其集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。
一般而言,智能交互平板包括至少一个显示屏。实施例中,以智能交互平板配置有两个显示屏为例进行描述。此时,两个显示屏可以为相同类型的显示屏,也可以为不同类型的显示屏。实施例中,以两个显示屏为相同类型的显示屏为例,且两个显示屏具有相同的像素坐标系。两个显示屏可以直接进行通信,也可以通过智能交互平板的处理器(如中央处理器)间接进行通信。同时,处理器可以单独控制每个显示屏。两个显示屏均具有触控功能,相应的,显示屏可以是电容屏、电阻屏或者电磁屏。两个显示屏的触控操作响应方式相同,以用户在一个显示屏中进行触控操作为例,此时,用户可以通过手指或触控笔触控显示屏的方式实现触控操作,相应的,智能交互平板检测触控操作在显示屏中的触控位置,并根据触控位置对应的显示内容确定响应方案,进而进行响应,以实现触控功能。例如,根据触控位置确定对应的显示内容为某个功能的控件,此时,响应方案为执行该功能。实际应用中,用户可以对一个显示屏进行触控操作,也可以同时对两个显示屏进行触控操作。可选的,确定触控操作在显示屏中触控位置的具体方式可以结合实际情况设定,例如,当显示屏某个位置接收到触控操作时,负责检测该位置的电器元件采集的参数会发生变化,此时,智能交互平板可以根据参数变化情况确定触控位置。可以理解的是,实际应用中,用户还可以通过键盘、鼠标、物理按键等方式实现控制操作。
智能交互平板安装有至少一类操作系统,其中,操作系统包括但不限定于安卓系统、Linux系统及Windows系统。通过操作系统可以分别对每个显示屏进行单独控制。智能交互平板可以基于操作系统安装至少一个应用程序,实施例中,以具有电子白板功能的应用程序进行示例性描述。例如,智能交互平板中安装有电子白板应用程序。其中,该应用程序可以为操作系统自带的应用程序,也可以为从第三方设备或者服务器中下载的应用程序。元素传递设备也可以为电子白板应用程序。可选的,在电子白板功能下,可以实现书写、插入表格、插入图片、插入多媒体、插入文件(如PPT等)、播放多媒体、插入图形、绘制表格等功能。可以理解的是,对于两个显示屏而言,其可以同时开启相同的应用程序,或者同时开启不同的应用程序。对于同一应用程序而言,其被开启后在两个显示屏中可以显示相同的界面或不同的界面。可选的,当显示不同的界面时,应用程序可以具有不同的版本,此时每个显示屏可以显示对应版本下的界面。或者是,两个显示屏显示同一应用程序的不同功能。
将应用程序显示界面中显示的可操作对象记为元素,不同应用程序对应的元素类型不同。例如,具有书写功能的应用程序中,元素可以为用户绘制的元素,如绘制的图形、文本框、表格、笔迹等,也可以为用户插入的元素,如插入的图形、图片、文档、PPT等。显示元素后,用户可以对元素进行控制操作,如调整元素位置、元素大小、元素颜色等,再如,具有课件展示功能的应用程序中,元素可以为课件,元素也可以为课件中独立的对象(如文本框及其中的文本、插入的图片等),此时,用户可以对元素进行翻页、关闭、删除等。此外,当某个元素中包含多个元素时,例如,课件中存在插入的图片。此时,用户可以对图片进行单独控制,或者对课件进行控制时控制图片同步响应。
本申请实施例以两个显示屏分别启动不同的应用程序为例,描述两个显示屏下的元素传递方法。此时,智能交互平板可以控制两个应用程序协同运行,以实现本申请实施例提供的元素传递方法。此外,在执行元素传递方法时,两个应用程序之间也可以直接进行通信,其具体通信手段实施例不作限定。
实施例一
图1为本申请实施例一提供的一种元素传递方法的流程图。参考图1,该元素传递方法具体包括:
步骤110、在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素。
示例性的,本实施例中,通过设定的操作,可以实现任一显示屏中的元素在两个显示屏间进行传递显示,即将一个显示屏中的元素传递到另一个显示屏中进行显示。其中,传递前显示元素的显示屏可以理解为发起元素传递的显示屏,实施例中记为第一屏幕,传递后显示元素的显示屏可以理解为接收元素的显示屏,实施例中记为第二屏幕。可选的,第一屏幕和第二屏幕中分别开启不同的应用程序,即用户通过第一屏幕和第二屏幕可以分别执行不同的功能。例如,第一屏幕对应的应用程序具有文档显示功能,此时,第一屏幕显示有文档显示界面,用于显示文档。第二屏幕对应的应用程序具有书写功能,此时,第二屏幕中显示有书写界面,用于响应书写操作。可以理解,实施例中提及的有关第一屏幕的相关操作均是通过智能交互平板控制第一屏幕对应的应用程序执行而实现,实施例中提及的有关第二屏幕的相关操作均是通过智能交互平板控制第二屏幕对应的应用程序执行而实现。
第一屏幕中显示有至少一个元素,元素的类型实施例不作限定。用户可以通过在第一屏幕中输入设定触控操作的方式,对第一屏幕中的元素进行相应的控制。实施例中,将当前接收到的触控操作记为第一触控操作,其中,第一触控操作为用于在两个显示屏间传递元素的触控操作。可选的,第一触控操作可以作用于第一屏幕 中的至少一个元素,实施例中以第一触控操作作用一个元素为例。第一触控操作的触发方式可以根据实际情况设定。例如,当在第一屏幕中检测到满足设定要求的触控轨迹时,确定接收到第一触控操作。其中,设定要求可以根据实际情况设定,如触控轨迹的起始触控位置为元素的显示位置且触控轨迹的甩动方向在设定方向上等。再如,设定元素传递模式,当在元素传递模式下,检测到第一屏幕中某个元素接收到设定操作(如拖拽操作、多点触控操作、单击操作或长按操作等)时,确定接收到第一触控操作。其中,元素传递模式的触发方式实施例不作限定。如设定模式切换的虚拟按键,该虚拟按键的显示位置以及显示样式实施例不做限定,当该虚拟按键接收到点击操作后,切换为元素传递模式。可选的,当该虚拟按键再次接收到点击操作后,退出元素传递模式。还如,设定处于激活状态的元素,当检测到处于激活状态的元素接收到设定操作或满足设定要求的触控轨迹时,确定接收到第一触控操作。其中,处于激活状态的元素是指该元素可以在显示屏间进行传递显示。激活状态的触发方式可以根据实际情况设定,一般而言,激活状态的触发方式与第一触控操作的触发方式不同。
在确认检测到第一触控操作时,同步确定第一触控操作作用的元素。可选的,为了将第一触控操作作用的元素与其他未被作用的元素区分开,可以修改元素在第一屏幕中的呈现状态,例如,将元素修改为悬浮显示,或,修改元素的透明度。此时,在用户角度可以将该元素与其他未被作用的元素进行区分。
可选的,由于第一屏幕和第二屏幕可以显示多种类型的元素,并非所有类型的元素都适合在第一屏幕和第二屏幕之间传递,如用户写入的书写轨迹并不适于在第一屏幕和第二屏幕之间传递。所以,预先设定可以进行传递的元素类型,并记为预设传递元素类型。相应的,只有满足预设传递元素类型的元素才可以在第一屏幕和第二屏幕间传递。
步骤120、控制所述元素跟随所述第一触控操作同步移动。
示例性的,控制被选中的元素跟随第一触控操作同步移动。例如,将当前得到的第一触控操作的实时触控位置作为被选中元素在第一屏幕中的最新显示位置,进而更新该元素的显示位置,以实现元素跟随着第一触控操作同步移动。可以理解的是,元素跟随着第一触控操作同步移动也可以理解为元素跟随第一触控操作的触控轨迹同步移动。其中,在接收到作用于元素的第一触控操作后,实时确定第一触控操作在第一屏幕中的触控位置,进而根据触控位置以及触控位置的接收时刻得到第一触控操作的触控轨迹。通过触控轨迹可以明确第一触控操作的甩动方向、移动距离以及各时刻触控位置对应的单位向量。其中,甩动方向可以理解为移动方向。可以理解的是,第一屏幕中可以显示该触控轨迹,也可以不显示该触控轨迹。实施例中,设定第一屏幕不显示该触控轨迹,以将第一触控操作与用于书写的触控操作进行区分。其中,用于书写的触控操作也可以记为书写操作,当第一屏幕对应的应用程序具备书写功能时,若接收到书写操作后,可以显示对应的书写轨迹,以便用户明确书写内容。需要说明的是,由于硬件和/或软件的限制,允许在元素跟随第一触控操作同步移动时出现延迟。
步骤130、确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸。
元素传递条件是指可以实现元素在两个显示屏之间传递的限制条件。元素传递条件的具体内容可以根据实际情况设定。实施例中,设定元素传递条件包括触发条件和/或接收条件。其中,触发条件应用于第一屏幕,即触发条件是针对发起元素传递设定的限制条件。可选的,触发条件可以根据第一屏幕对应的应用程序和/或第一触控操作设定。例如,触发条件为第一屏幕对应的应用程序启动元素传递功能、第一触控操作作用的元素类型为预设传递元素类型、第一触控操作的移动速度达到第一预设速度、第一触控操作的移动距离达到第一预设距离、第一触控操作的甩动方向满足设定方向、第一触控操作的移动时长大于设定时长和/或确认第一触控操作结束等。接收条件应用于第二屏幕,即接收条件是针对接收元素传递设定的限制条件。可选的,接收条件可以根据第二屏幕对应的应用程序和/或第一触控操作设定。其中,接收条件根据第一触控操作设定时,第二屏幕对应的应用程序可以监听第一屏幕中与第一触控操作相关的参数,例如,参数为第一触控操作的移动速度、移动距离、移动时长、第一触控操作作用的元素类型、第一触控操作开始时元素的第一单位向量、达到触发条件时元素的第二单位向量和/或达到触发条件之前设定时刻上元素的第三单位向量等。相应的,根据第一触控操作设定的接收条件可以为元素类型为预设传递元素类型、第一单位向量和第二单位向量之间的向量差在第一设定阈值内和/或第三单位向量和第二单位向量之间的向量差在第二设定阈值内等。
控制元素跟随第一触控操作同步移动时,实时判断当前是否满足元素传递条件。在确认满足元素传递条件时,说明元素可以在两个显示屏间传递显示,此时,控制元素在第一屏幕中继续移动。可以理解的是,控制元素继续移动为第一屏幕对应的应用程序自动执行的,与第一触控操作无关。可选的,继续移动时,可以是控制元素向设定显示位置移动。其中,第一屏幕中的设定显示位置可以根据实际情况设定,例如,设定显示位置为与第一屏幕中靠近第二屏幕的边界距离较近的位置,又如,设定显示位置位于第一触控操作移动方向上,且与移动方向指向的第一屏幕中的边界为固定距离。还如,设定显示位置位于第一触控操作移动方向上,且与满足元素传递条件时第一触控操作的触控位置为固定距离。当元素继续移动至设定显示位置后,进行元素传递显示。即通过设定显示位置,可以确定元素传递的触发时刻。还可选的,继续移动时,可以是控制元素沿满足元素传 递条件时第一触控操作的移动方向继续移动设定时长,或者是,控制元素沿第一触控操作指向的第一屏幕边界继续移动设定时长,且在达到设定时长时,进行元素传递显示。即通过设定时长,可以确定元素传递的触发时刻。
典型的,在移动元素的过程中,实时调整元素在第一屏幕中的显示尺寸。显示尺寸可以理解为元素在显示屏中的大小,其可以根据元素在显示屏中所占的像素点的个数确定。可以理解的是,若元素所在的显示界面有自己的坐标系,该坐标系与显示屏中的像素坐标系为互相独立的坐标系,则显示尺寸也可以理解为元素在显示界面中的大小,其可以根据元素在显示界面中所占的坐标点的个数确定。其中,显示界面包括但不限定于画布、文档界面、课件界面、网页等。此时,像素坐标系与显示界面的坐标系之间存在映射关系,以通过该映射关系,实现在显示屏中对显示界面进行显示,以及将显示屏中接收的触控操作与显示界面关联起来。实施例中,以当前仅包含像素坐标系为例。
将第一触控操作作用的元素在第一屏幕的显示尺寸记为第一显示尺寸。调整第一显示尺寸在控制元素继续移动的过程中同步发生。从用户的角度而言,可以看到元素移动的过程中元素大小同步发生了变化。其中,调整第一显示尺寸可以包括放大第一显示尺寸和/或缩小第一显示尺寸。第一显示尺寸的调整方式可以根据实际情况设定。如,随着移动时长增加而等比例缩小或放大第一显示尺寸。再如,随着移动距离增加而等比例缩小或放大第一显示尺寸。又如,随着移动速度增加而等比例缩小或放大第一显示尺寸。还如,预先设定显示位置时,当元素逐渐靠近设定显示位置时,可调整元素的第一显示尺寸逐渐变小,这样可以在元素传递过程中,使元素在第一屏幕上呈现逐渐消失的效果。可选的,在调整第一显示尺寸时,可以设定尺寸阈值。其中,设定尺寸阈值可以根据实际情况设定,当第一显示尺寸随着移动逐渐变小时,设定尺寸阈值可以是最小尺寸阈值,当第一显示尺寸随着移动逐渐变大时,设定尺寸阈值可以是最大尺寸阈值。
需要说明的是,调整第一显示尺寸仅是元素传递显示过程在第一屏幕中呈现的一种可选方式。实际应用中,还可以通过其他的方式呈现元素传递显示过程。例如,在元素移动过程中,调整元素的透明度或者元素的边框颜色等,以实现在元素传递显示过程中,使第一屏幕上的元素呈现逐渐消失的效果。或者是,仅移动元素,而不调整元素的第一显示尺寸。
可选的,在元素跟随第一触控操作同步移动时,也可以同步调整元素的第一显示尺寸。此时,第一显示尺寸的调整方式可以与上述提及的调整方式相同。可以理解,若单向的第一触控操作控制元素调整第一显示尺寸逐渐变小,如第一触控操作沿设定显示位置所在方向移动时,元素的第一显示尺寸逐渐变小,那么,当第一触控操作拖动元素沿当前方向的反方向移动时,控制第一显示尺寸逐渐变大。再如,当元素跟随第一触控操作同步移动且逐渐靠近第一屏幕的边界时,可调整元素的第一显示尺寸逐渐变小,以在元素传递过程中,使元素在第一屏幕上呈现逐渐消失的效果。当元素逐渐远离第一屏幕的边界并向接收第一触控操作前的初始显示位置移动时,调整第一显示尺寸逐渐变大,当元素回到初始显示位置时,将元素的第一显示尺寸调整为元素接收第一触控操作之前的显示尺寸。
可选的,在满足元素传递条件后,若检测到第一触控操作继续执行,则可以控制元素继续跟随第一触控操作同步移动,直到确认第一触控操作结束后,再控制元素继续移动。或者是,无论第一触控操作是否继续执行,只要检测到满足元素传递条件,便控制所述元素继续移动,此时,第一屏幕对应的应用程序停止响应第一触控操作。
步骤140、移动结束后,在第二屏幕中显示所述元素,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
当元素达到设定显示位置或元素移动时长达到设定时长时,确定移动结束,并触发元素在第一屏幕和第二屏幕之间传递显示。其中,传递显示是指在第二屏幕上显示该元素,同时将第一屏幕上的该元素进行删除,即在第一屏幕上取消显示该元素。此时,从用户视角而言,可以认为是元素由第一屏幕传递到第二屏幕上。
可选的,在第二屏幕中显示元素时,该元素的显示尺寸与接收第一触控操作前,该元素在第一屏幕中的第一显示尺寸相同。此时,第二屏幕中显示元素可以认为是将第一屏幕中的该元素复制到了第二屏幕中。还可选的,第二屏幕中显示元素时,该元素的显示尺寸为元素的默认显示尺寸,其中,默认显示尺寸是指本次上电后在显示屏中初次显示该元素时的显示尺寸。
元素在第二屏幕中的显示位置根据实际情况设定。例如,获取接收第一触控操作之前元素在第一屏幕中的显示位置,之后,在第二屏幕同样的显示位置上显示该元素。再如,预先设定元素在第二屏幕中的显示位置。又如,根据第一触控操作的触控轨迹计算元素在第二屏幕中的显示位置。
可选的,第二屏幕中显示元素与第一屏幕中删除元素可以同时执行,也可以先后顺序执行。无论同时执行还是先后执行,从用户角度而言,几乎可以认为第二屏幕中显示元素与第一屏幕中删除元素同时执行。可以理解的是,实际应用中,第一屏幕可以不删除该元素,即在第二屏幕中显示元素时,第一屏幕中的该元素可以恢复至初始显示位置,此时,两个显示屏中同时显示该元素。
可选的,当元素传递到第二屏幕后,用户还可以在第二屏幕中继续通过第一触控操作控制该元素,以实现元素从第二屏幕向第一屏幕传递。此时,执行过程与第一屏幕向第二屏幕传递显示过程相同,在此不做赘述。
可以理解的是,第一屏幕和第二屏幕也可以是位于一个显示屏内的两个窗口。
需要说明,第一屏幕和第二屏幕也可以显示相同的应用程序。
下面对实施例提供的技术方案进行示例性描述:
在授课场景下,老师使用智能交互白板的双屏模式,此时,两个显示屏分别记为第一屏幕、第二屏幕。其中,第一屏幕用于展示课件且无法响应书写操作,第二屏幕用于书写板书。当需要对课件上某一个元素进行详细介绍时,可将课件中该元素移动至第二屏幕进行显示,以便于老师在第二屏幕中通过书写操作等方式对该元素进行操作及讲解。图2为本申请实施例提供的屏幕第一示意图。参考图2,其为第一屏幕11及第二屏幕12当前的显示界面,第一屏幕11显示有元素13,该元素13为图片格式。当老师需要对元素13进行详细讲解时,可以将元素13传递至第二屏幕12进行显示,此时,老师通过手指触控元素13且向第二屏幕所在的方向移动。相应的,智能交互平板检测到第一屏幕11接收到第一触控操作。图3为本申请实施例提供的屏幕第二示意图。其用于示出第一触控操作,参考图3,第一触控操作的甩动方向如图3中箭头所示。控制元素13沿着箭头方向跟随第一触控操作(也可以理解为跟随老师的手指)同步移动。并且在满足元素传递条件时,控制元素继续移动,且在移动过程中第一显示尺寸同步缩小。图4为本申请实施例提供的屏幕第三示意图。参考图4,其为控制元素继续移动时,某一时刻下第一屏幕11和第二屏幕12的显示界面。此时,相比于图3,元素的第一显示尺寸明显变小。当确认元素移动结束时,在第二屏幕12中显示元素13,且删除第一屏幕11中的该元素13。图5为本申请实施例提供的屏幕第四示意图,其为进行传递显示后第一屏幕11和第二屏幕12的显示界面。参考图5,在元素传递后,第一屏幕11中不再显示元素13,并在第二屏幕12中显示元素13,以此实现元素13从第一屏幕11向第二屏幕12传递。此时,老师可以在第二屏幕12中通过书写、移动、缩放、标记等方式,对元素13进行讲解。
可以理解的是,上述附图中出现的手指和箭头仅用于解释技术方案,实际应用中不会显示在屏幕中。同时,在实际应用中,还可以根据实际需求在第一屏幕以及第二屏幕中显示菜单栏、快捷操作框、元素传递触发控件、删除控件、旋转点和/或甩动方向标识等,实施例对此不做限定。该说明同样适用于后续出面的屏幕示意图。
上述元素传递方法,通过在第一屏幕中接收作用于元素的第一触控操作,根据第一触控操作控制元素同步移动,若确认元素满足元素传递条件,则控制元素继续移动,并在移动结束后,在第二屏幕中显示元素,并删除第一屏幕中的元素,以实现将元素从第一屏幕传递至第二屏幕进行显示。采用上述技术手段,可以根据用户的实际显示需求,通过第一触控操作使元素在显示屏间进行传递,即实现了一个显示屏中出现的元素能够在另一个显示屏上进行显示,且保证了传递后元素与传递前元素之间的相似性。不仅实现元素快速、准确地在屏幕间进行传递显示,且其实现方式简单,无需在显示屏上进行对应元素的创建,减少了元素创建过程的工作量,丰富了电子白板的功能性。
实施例二
图6为本申请实施例二提供的一种元素传递方法的流程图。本实施例是在上述实施例的基础上进行具体化。参考图6,本实施例提供的元素传递方法具体包括:
步骤210、响应于接收到的第二触控操作,将所述元素调整为激活状态,在所述激活状态下可触发所述元素执行元素传递事件,所述第二触控操作作用于所述第一屏幕中的所述元素。
示例性的,激活状态为元素进行传递显示的准备状态,在激活状态下,元素可以根据用户的第一触控操作执行元素传递事件。与激活状态相对应的为元素的基本状态。在基本状态下,用户可以对元素进行常规操作。常规操作包括但不限定于缩放、拖动、旋转等。通过设置激活状态,可以使用户明确当前是否可以对元素进行传递显示。
激活状态可以通过设定的触控操作实现。实施例中,将实现激活状态的触控操作记为第二触控操作。第二触控操作作用于期望进行传递显示的元素。可选的,第二触控操作的触发方式可以根据实际情况设定,且与第一触控操作以及常规操作的触发方式不同。例如,第二触控操作为针对于元素的长按操作、双击操作、多指点击操作等。实施例中,以长按操作为例进行描述。设定一个时间长度,在基本状态下,当接收到针对某个元素的触控操作,且该触控操作针对于该元素的按压时间超过设定的时间长度时,确定接收到第二触控操作。此时,将该元素从基本状态切换为激活状态。更在长按操作过程中,若未达到设定的时间长度且出现了拖动、多指缩放、旋转等触控操作,则确定接收到其他的触控操作,并根据其他的触控操作进行响应。此时,元素不会进入激活状态。
可选的,检测到第二触控操作后,获取元素的类型,并确认该类型是否为预设传递元素类型,若是预设传递元素类型,则将该元素由基本状态切换为激活状态。否则,继续保持该元素为基本状态。
另一方面,还可以取消元素的激活状态,即将元素切换回基本状态。此时,该步骤之后,还可以包括:响 应于接收到的第三触控操作,取消所述元素的激活状态,所述第三触控操作作用于所述第一屏幕。
可以通过作用于第一屏幕的另一设定的触控操作实现取消激活状态,实施例中,将该触控操作记为第三触控操作。第三触控操作的触发方式可以根据实际情况设定。例如,在元素处于激活状态后,若再次接收到针对于该元素的长按操作,则确定接收到第三触控操作。此时,第三触控操作的持续时长与第二触控操作的持续时长可以相等也可以不等。再如,当检测到第一屏幕中处于激活状态的元素以外的屏幕范围内接收到点击操作时,确认接收到第三触控操作。又如,当检测到第一屏幕中接收到多点触控操作(如多点点击操作)时,确认接收到第三触控操作。当确认接收到第三触控操作时,将元素从激活状态恢复为基本状态。
可选的,元素切换至激活状态时与元素处于基本状态时进行区别,以便于用户获知当前元素的状态信息。其中,区别显示的手段可以根据实际情况设定。例如,在元素切换至激活状态时,控制被激活的元素以浮动的状态进行显示。可以理解的是,元素处于基本状态时,其在第一屏幕中以正常状态进行显示,正常状态有别于浮动状态。再如,在元素切换至激活状态时,改变元素的透明度,将元素呈半透明的状态进行显示,其中,透明度的具体参数可以根据实际情况设定。还如,在元素切换至激活状态时,加粗元素的边框,以突出该元素。其中,边框线条的粗细程度可以根据实际情况设定。相应的,当元素由激活状态切换回基本状态时,取消该元素的区别显示,以进行元素切换回基本状态的提示。可以理解的是,除了对激活状态的元素进行区别显示外,还可以通过提示框的方式对元素状态进行提示。例如,在元素切换至激活状态时,弹出提示框,以文字信息提示用户当前元素从基本状态切换至激活状态。其中,提示框以及文字信息的显示时长、显示位置以及显示样式可以根据实际情况设定。在使用提示框提示元素的状态时,还可以提示用户通过第一触控操作触发元素传递事件,进而实现元素在显示屏间的传递显示。在元素取消激活状态时,同样弹出提示框,以文字信息提示用户当前元素由激活状态切换至基本状态。
举例而言,图7为本申请实施例提供的屏幕第五示意图,其为第一屏幕21和第二屏幕22当前的显示界面。参考图7,第一屏幕21中的元素23处于基本状态。在基本状态下,对元素23的拖动操作不会触发元素23从第一屏幕21向第二屏幕22进行传递显示。当检测到针对元素23的第二触控操作时,确定元素23进入激活状态。图8为本申请实施例提供的屏幕第六示意图。其为元素23进入激活状态后第一屏幕21和第二屏幕22的显示界面,参考图8,元素23呈浮动状态显示。在激活状态下,可以根据用户的第一触控操作触发元素传递事件,并在满足元素传递条件时,将元素从第一屏幕21传递至第二屏幕22进行显示。相对于图7,图8中元素23的显示状态发生了变化,进而可以使用户确定元素23进入激活状态,便于用户进行后续的操作。当用户通过手指点击第一屏幕中元素23以外的屏幕范围时,智能交互平板确认检测到第三触控操作,并控制元素23由激活状态切换回基本状态。图9为本申请实施例提供的屏幕第七示意图,其为元素23从激活状态切换回基本状态后第一屏幕和第二屏幕的显示界面。相对于图8,图9中元素23的显示状态再次发生了变化,从浮动状态切换至正常状态进行显示,以提示用户当前元素23切换回基本状态。可以理解的是,上述附图中出现的手指仅用于解释技术方案,实际应用中不会显示在屏幕中,此时,图9与图7的显示界面相同。
可以理解的是,由于第一屏幕用于发起元素传递事件,因此,实施例中以第一屏幕中的元素进行说明。实际应用中,第二屏幕中显示的元素同样可以至少包含基本状态和激活状态。
步骤220、在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素。
步骤230、控制所述元素跟随所述第一触控操作同步移动。
步骤240、确认元素是否满足元素传递条件。若确认所述元素满足元素传递条件,则执行步骤250。否则,执行步骤270。
在元素跟随第一触控操作的过程中,检测是否达到元素传递条件,若达到元素传递条件,则确认满足元素传递条件,并执行元素传递事件,即执行步骤250,否则,继续检测,以确认是否达到元素传递条件,直到第一触控操作结束为止,当确认第一触控操作结束时,仍未达到元素传递条件,则确认不满足元素传递条件,此时,执行步骤270。其中,检测第一触控操作结束的技术手段可以为检测到第一触控操作离开第一屏幕。
步骤250、控制元素继续移动,且在移动过程中调整元素的第一显示尺寸以及调整元素的显示透明度。
元素在移动过程中,调整元素的第一显示尺寸。并且同时调整元素的显示透明度。显示透明度可以理解为元素在屏幕中的透明度。透明度越低,透过该元素看到背景图案的可能越低,透明度越高,透过该元素看到背景图案的可能越高。实施例中,以在元素移动过程中,控制元素透明度逐渐增高为例进行描述。此时,随着元素移动,其透明度逐渐增高,以使元素呈现逐渐消失的效果。其中,透明度增高规则可以根据实际情况设定。例如,随着移动时长、移动距离和/或移动速度的增加而逐渐增高元素的透明度。再如,预先设定显示位置,且随着元素与设定显示位置的距离减小而逐渐增高元素的透明度。可选的,在调整透明度时,可以设定透明度阈值,当元素的透明度到达该阈值时,停止透明度的调整。例如,当元素移动至设定显示位置时,将元素的透明度调整至阈值。
举例而言,参考图8,此时,元素23处于激活状态。检测到针对元素23的第一触控操作后,控制元素23 跟随第一触控操作同步移动,且在满足元素传递条件时,控制元素继续移动,且在移动过程中,同步调整元素23的第一显示尺寸以及透明度。图10为本申请实施例提供的屏幕第八示意图,其为元素23继续移动的过程中,某一时刻第一屏幕21和第二屏幕22的显示界面。相比于图8所示的元素23,图10中元素23的第一显示尺寸变小,且其透明度增强。可以理解的是,上述附图中出现的手指及箭头仅用于解释技术方案,实际应用中不会显示在屏幕中。
可以理解的是,在元素跟随第一触控操作同步移动时,也可以同步修改元素的第一显示尺寸和透明度。此时,透明度的修改方式可以与上述方式相同,也可以不同。当修改方式不同时,透明度的修改方式可以为:随着元素与第一屏幕的边界距离减小而逐渐增高元素的透明度。当元素靠近初始显示位置时,逐渐减小元素的透明度。
步骤260、移动结束后,在第二屏幕的第一显示位置显示所述元素,且所述元素的第二显示尺寸等于所述元素接收所述第一触控操作之前在所述第一屏幕中的第一显示尺寸,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
元素在第二屏幕进行显示时,将元素在第二屏幕的显示位置记为第一显示位置。第一显示位置包括横向位置和纵向位置,横向位置可以认为是第二屏幕的像素坐标系中Y轴的坐标位置,纵向位置可以认为是第二屏幕的像素坐标系中X轴的坐标位置。可以理解的是,元素在第一屏幕中的显示位置同样包含横向位置和纵向位置。
其中,第一显示位置可以根据实际情况设定。例如,第一显示位置与第二屏幕的边界为固定距离,边界为第一触控操作指向的水平边界和/或第一触控操作指向的竖直边界。
一般而言,第一触控操作为指向第二屏幕的操作。以图10为例,第一屏幕和第二屏幕水平排列。当用户的第一触控操作按照箭头所示的方向水平移动时,第一触控操作指向的竖直边界是指第二屏幕中靠近第一屏幕的竖直边界。并且,由于第一屏幕和第二屏幕的水平边界位于同一水平面,所以,可以计算接收第一触控操作前元素与第一屏幕中两个水平边界的距离,或者满足元素触发条件时元素与第一屏幕中两个水平边界的距离。之后,选择第一屏幕中较近距离的水平边界,并将第二屏幕中与被选择的水平边界位于同一水平面的水平边界作为第一触控操作指向的水平边界。由于实际应用中,用户不会全完按照水平方向进行移动,此时,在确定第一触控操作指向的水平边界时,还可以参考第一触控操作的甩动方向。例如,甩动方向为左偏上,此时,第一触控操作指向的水平边界为位于第二屏幕上方的水平边界。可以理解的是,当第一屏幕和第二屏幕竖直排列时,确定第一触控操作指向的水平边界以及竖直边界的确定方式与第一屏幕和第二屏幕水平排列时确定方式相同,在此不做赘述。
第一显示位置与第一触控操作指向的水平边界和/或竖直边界为固定距离。其中,可以根据实际情况设定第一触控操作指向的边界包括水平边界和/或竖直边界。当边界包括水平边界和竖直边界时,可以认为第一显示位置为固定位置,其与元素在第一屏幕中的显示位置或第一触控操作的触控位置无关。当边界仅包括水平边界时,说明第一显示位置在第二屏幕中的纵向位置固定。相应的,第一显示位置的横向位置可以根据元素在第一屏幕中的显示位置或第一触控操作的触控位置的决定。例如,获取接收第一触控操作之前或满足元素传递条件时元素在第一屏幕的像素坐标系中X轴上的坐标位置,并将坐标位置作为元素在第二屏幕中的横向位置。再如,根据第一触控操作的甩动方向确定该甩动方向与纵向位置的相交点,进而根据该相交点得到横向位置。此时,根据横向位置和纵向位置可以得到第一显示位置。当边界仅包括竖直边界时,说明第一显示位置在第二屏幕中的横向位置固定。此时,元素的纵向位置确定方式与纵向位置固定时横向位置的确定方式相同,在此不作赘述。
可以理解的是,上述提及的固定距离可以根据实际情况设定。
举例而言,图11为本申请实施例提供的屏幕第九示意图。参考图11,其为传递显示后第一屏幕和第二屏幕的显示界面。其中,元素23在第二屏幕22的第一显示位置,预先设定第一显示位置与第二屏幕22的竖直边界之间为固定距离。参照第二屏幕22设置的虚线,其为元素23与第二屏幕22的左侧竖直边界的距离参考线,此时,元素23的左边界仅能设置在虚线上。元素23的横向位置与元素23接收第一触控操作之前在第一屏幕21中显示的横向位置相同。可以理解的是,上述附图中出现的虚线、箭头以及第一屏幕中的元素,仅用于解释技术方案,实际应用中不会显示在屏幕中。
又例如,图12为本申请实施例提供的屏幕第十示意图。参考图12,其为当前第一屏幕和第二屏幕的显示界面。其中,元素23在第二屏幕22的第一显示位置,预先设定元素与第二屏幕22的水平边界之间的固定距离。参照第二屏幕22设置的虚线,此时,元素23的上边界仅能设置在虚线上,即元素23与第二屏幕22的水平边界距离固定。元素23的纵向位置与元素23接收第一触控操作之前在第一屏幕21中显示的纵向位置相同。可以理解的是,上述附图中出现的虚线、箭头以及第一屏幕中的元素,仅用于解释技术方案,实际应用中不会显示在屏幕中。
再如,第一显示位置与第二显示位置相同,第二显示位置为元素接收第一触控操作之前或确认满足元素传递条件时在第一屏幕中的显示位置。
第一显示位置还可以根据元素在第一屏幕的显示位置确定,此时,将元素在第一屏幕的显示位置记为第二显示位置。第二显示位置同样包括横向位置和纵向位置,且分别对应于第一屏幕的像素坐标系中的Y轴坐标位置和X轴坐标位置。第二显示位置可以为接收第一触控操作之前元素在第一屏幕中的显示位置。此时,将第二屏幕的像素坐标系内同样的坐标位置作为第二显示位置。第二显示位置还可以是满足元素传递条件时元素在第一屏幕中的显示位置。在确认满足元素传递条件时,获取元素在第一屏幕的像素坐标系中的坐标位置。之后,将第二屏幕的像素坐标系内同样的坐标位置作为第二显示位置。
举例而言,图8为接收第一触控操作前,第一屏幕21和第二屏幕22的显示界面。根据第一触控操作,可以控制元素23由第一屏幕21向第二屏幕22传递。图13为本申请实施例提供的屏幕第十一示意图,其为元素23传递后第一屏幕21和第二屏幕22的显示界面。参考图13,元素23在第二屏幕22的第一显示位置与接收第一触控操作之前元素在第一屏幕21的第二显示位置对应,即第一显示位置与第二显示位置在两个显示屏中的对应位置相同。可以理解的是,上述附图13中出现的箭头以及第一屏幕中的元素,仅用于解释技术方案,实际应用中不会显示在屏幕中。
又例如,图14为本申请实施例提供的屏幕第十二示意图。其中,对于第一屏幕21而言,其为满足元素传递条件时第一屏幕的显示界面。第二屏幕22而言,其为元素23传递显示后第二屏幕22的显示界面。该图是为了对第一显示位置进行解释说明。实际应用中两个显示屏不会同时显示不同时刻的显示界面。参考图14,元素23在第二屏幕22的第一显示位置与满足元素传递条件时元素23在第一屏幕21的第二显示位置对应。可以理解的是,上述附图14中出现的箭头仅用于解释技术方案,实际应用中不会显示在屏幕中。
在第一显示位置显示元素时,可以设定元素的显示尺寸。其中,将该元素在第二屏幕中的显示尺寸记为第二显示尺寸。第二显示尺寸可以根据实际情况设定。例如,第二显示尺寸为智能交互平板设定的固定尺寸且该固定尺寸可以被用户修改。再如,第二显示尺寸为元素打开时的默认显示尺寸。又如,第二显示尺寸与元素的第一显示尺寸相关。实施例中,以第二显示尺寸与元素的第一显示尺寸相关为例,此时,设定第二显示尺寸等于接收第一触控操作前元素的第一显示尺寸。在接收到第一触控操作时,第一屏幕对应的应用程序先记录元素的第一显示尺寸,之后,在第二屏幕显示元素前,第二屏幕对应的应用程序获取第一屏幕对应的应用程序记录的第一显示尺寸,以使第二屏幕对应的应用程序基于第一显示尺寸得到第二显示尺寸,并根据第二显示尺寸进行显示。
元素在第一显示位置上以基本状态进行显示。此时,用户可以通过第二屏幕对元素进行常规操作。
可选的,可以使元素直接显示在第一显示位置上,也可以将元素显示在第二屏幕的边界上,并控制元素从第二屏幕的边界移动至第一显示位置,其中,该边界可以设定为靠近第一屏幕的边界。控制元素从边界移动至第一显示位置进行显示时,可选对其第二显示尺寸进行同步调整。例如,在向第一显示位置移动时,控制第二显示尺寸同步放大,且在第一显示位置显示元素时,其第二显示尺寸与接收第一触控操作前元素的第一显示尺寸相等。控制第二显示尺寸同步放大可以使元素呈现从无到有的显示效果。还可选的,将元素由边界移动至第一显示位置时,可以实时调整元素的透明度,如控制元素的透明度逐渐降低,以实现使元素呈现从无到有的显示效果。
举例而言,图15为本申请实施例提供的屏幕第十三示意图,其为控制元素23从第一触控操作指向的边界移动至第二屏幕22的第一显示位置处进行显示时第一屏幕和第二屏幕的显示界面。当元素23移动至第一显示位置时,第一屏幕和第二屏幕的显示界面变为图13,由图13可知,元素23的第二显示尺寸与接收第一触控操作前元素23的第一显示尺寸相等。相比于图13,图15中元素23第二显示尺寸明显更小且透明度更高。可以理解的是,上述附图中出现的箭头仅用于解释技术方案,实际应用中不会显示在屏幕中。
在第一显示位置显示元素前,倘若第一显示位置已经显示有另一元素,则需解决显示冲突,避免两个元素的显示位置重叠。此时可以修改另一元素的显示位置,将另一元素切换至其他位置进行显示,以挪出该第一显示位置。同理,在出现显示冲突时,也可以修改元素的第一显示位置。
步骤270、确认所述元素不满足元素传递条件,将所述元素恢复至原始状态,所述原始状态为接收到所述第一触控操作之前所述元素在所述第一屏幕中的显示状态。
检测到第一触控操作结束且仍未满足元素传递条件,那么可以停止执行元素传递事件。此时,可以将元素恢复为接收到第一触控操作之前的状态。接收第一触控操作时,先记录对应元素在接收第一触控操作之前的显示状态,并将该显示状态记为原始状态,其中,显示状态包括第一显示尺寸、显示位置、透明度和/或边框的颜色、粗细以及线条形状等。之后,在确定未满足元素传递事件时,将元素恢复至原始状态。可选的,若接收第一触控操作之前,元素为激活状态。那么,在恢复原始状态时,可以保持元素的激活状态或将元素切换为基本状态。或者是,对第一触控操作进行撤销,以使元素恢复至原始状态。可选的,在恢复原始状态时,弹出提示框以提示用户元素传递失败。
上述元素传递方法,通过在第一屏幕中接收作用于元素上的第一触控操作,根据第一触控操作的触控轨迹 控制元素同步移动,若确认元素满足元素传递条件,则控制元素继续移动,并在移动结束后,在第二屏幕中显示元素,并删除第一屏幕中的元素,以实现将元素从第一屏幕传递至第二屏幕进行显示。在元素传递时,调整元素的显示尺寸,并且在第二屏幕进行显示时,设置元素在第二屏幕的显示位置。采用上述技术手段,可以通过第一触控操作使元素在屏幕间进行传递,使一个屏幕中出现的元素能够在另一个屏幕上进行显示,不仅实现元素快速、准确地在屏幕间进行传递显示,且其实现方式简单,无需在屏幕上进行对应元素的创建,减少了元素创建过程的工作量。同时,在第二屏幕显示元素时,可以根据设置或实际操作将元素显示在对应位置上,且第二屏幕中元素的显示尺寸与传递前元素在第一屏幕中显示尺寸相同,以保证元素传递时的准确性。并且,通过激活状态,可以将可被传递的元素与其他元素进行区分。此外,其元素的传递方式灵活便捷,通过触控操作以触发元素传递,并在满足元素传递条件时,即可实现元素在屏幕间进行传递,其操作简单,可有效提升用户的使用体验。
实施例三
图16为本申请实施例三提供的元素传递方法的流程图。本实施例中提供的元素传递方法与上述实施例提供的元素传递方法应用在相同的场景中,即第一屏幕和第二屏幕中分别开启不同的应用程序。例如,第一屏幕对应的应用程序具有文档显示功能,此时,第一屏幕显示有文档显示界面,用于显示文档。第二屏幕对应的应用程序具有书写功能,此时,第二屏幕中显示有书写界面,用于响应书写操作。可以理解,实施例中提及的有关第一屏幕的相关操作均是通过智能交互平板控制第一屏幕对应的应用程序执行而实现,实施例中提及的有关第二屏幕的相关操作均是通过智能交互平板控制第二屏幕对应的应用程序执行而实现。参考图16,该元素传递方法具体包括:
步骤310、在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素。
步骤320、获取所述第一触控操作在所述第一屏幕中的触控轨迹。
示例性的,在接收到第一触控操作时,监听触摸事件,并通过触摸事件的参数确定第一触摸操作在像素坐标系中的坐标,进而得到触控位置。在得到触控位置时,可以同步得到各触控位置之间的时间关系,进而根据时间关系可以得到触控轨迹。实施例中设定第一触控操作的起始触控位置位于元素上。可选的,当检测某个元素接收到的第一触控操作时,确认该元素被选中。
步骤330、控制所述元素跟随所述触控轨迹同步移动。
可选的,实时或间隔确定第一触控操作最新的触控位置,之后,将最新的触控位置作为被选中的元素在第一屏幕中的最新显示位置,之后,基于每次得到的最新显示位置对元素进行更新显示,以实现元素跟随触控轨迹同步移动。可选的,考虑到被选中的元素在第一屏幕中通常占据一定的坐标范围,此时,基于最新的触控位置得到元素的最新显示位置时,可以将最新的触控位置作为元素的显示位置中心,进而得到最新显示位置。还可以是在接收到第一触控操作时,确定触控位置与元素的显示位置之间的相对位置关系,之后,根据相对位置关系以及最新的触控位置得到最新显示位置。还可选的,获取最新的触控位置之后,计算最新的触控位置与接收第一触控操作时得到的触控位置之间的位置关系,进而得到位移坐标,之后,根据位移坐标对元素的显示位置进行变换,以得到元素的最新显示位置。或者是,获取最新的触控位置之后,计算最新的触控位置与上一时间获取的次新触控位置之间的位置关系,进而得到位移坐标,以通过位移坐标得到元素的最新显示位置。
步骤340、确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸。
在控制元素跟随第一触控操作的触控轨迹移动时,还实时判断元素是否满足元素传递条件,并在满足元素传递条件时,控制所述元素继续移动。此时,无需用户进行操作。
满足元素传递条件后,在元素移动过程中,对元素的第一显示尺寸进行调整。在调整第一显示尺寸时,采用等比例放大第一显示尺寸或等比例缩小第一显示尺寸。其中,第一显示尺寸的具体调整方式实施例不做限定。
步骤350、确认所述元素移动结束后,在第二屏幕中创建所述元素的副本,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
若预先设定了移动结束时的显示位置,并记为设定显示位置,则确认元素移动结束包括:元素移动至设定显示位置。即在满足元素传递条件时,控制元素在第一屏幕中继续向设定显示位置进行移动,且在移动至设定显示位置时,确认移动结束。若预先设定了元素的移动时长,并记为设定时长,则确认所述元素移动结束包括:确认所述元素的移动时长达到设定时长。即在满足元素传递条件时,控制元素在第一屏幕中继续沿当前方向进行移动,且移动时长达到设定时长时,确认移动结束。
元素移动结束后,触发元素传递显示。其中,触发元素传递显示时,在第二屏幕中创建被选中元素的副本,即在第二屏幕中显示被选中的元素。其中,创建元素的副本可以理解为第二屏幕对应的应用程序通过第一屏幕对应的应用程序获取该元素的存储地址,之后,根据该存储地址获取该元素并在第二屏幕中进行显示。可以理解的是,第一屏幕显示该元素时,同样是基于存储地址获取该元素进行显示,因此可以指示第一屏幕对应的应 用程序将存储地址发送至第二屏幕对应的应用程序。其中,存储地址可以理解为元素在存储器中的位置。可选的,在第二屏幕的第一显示位置显示该元素。第二屏幕中显示该元素后,第二屏幕对应的应用程序通知第一屏幕对应的应用程序,以使第一屏幕对应的应用程序在第一屏幕中删除该元素。
上述元素传递方法,通过在第一屏幕中接收作用于元素上的第一触控操作,根据第一触控操作的触控轨迹控制元素同步移动,若确认元素满足元素传递条件,则控制元素继续移动,并在移动结束后,在第二屏幕中创建元素的副本,并删除第一屏幕中的元素,以实现将元素从第一屏幕传递至第二屏幕进行显示。采用上述技术手段,可以根据用户的实际显示需求,通过第一触控操作使元素在屏幕间进行传递,使一个屏幕中出现的元素能够在另一个屏幕上进行显示,不仅实现元素快速、准确地在屏幕间进行传递显示,且其实现方式简单,无需在屏幕上进行对应元素的创建,减少了元素创建过程的工作量。
实施例四
图17为本申请实施例四提供的元素传递方法的流程图。本实施例中提供的元素传递方法与上述实施例提供的元素传递方法应用在相同的场景中。
本实施例中,所述元素传递条件包括:触发条件和/或接收条件,所述触发条件应用于所述第一屏幕,所述接收条件应用于所述第二屏幕。
其中,元素传递条件包括触发条件和/或接收条件,其中,触发条件是针对发起元素传递设定的限制条件,即触发条件为用于第一屏幕的限制条件。接收条件是针对接收元素传递设定的限制条件,即接收条件为用于第二屏幕的显示条件。可选的,触发条件和接收条件的内容可以根据实际情况设定。实际应用中,可以设定同时满足触发条件和接收条件后方可进行元素传递显示,也可在满足触发条件或接收条件的任意一个时,进行元素传递显示。
参考图17,本实施例提供的元素传递方法包括:
步骤410、在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素。
步骤420、获取所述第一触控操作在所述第一屏幕中的触控轨迹。
步骤430、控制所述元素跟随所述触控轨迹同步移动。
步骤440、确认所述第一屏幕满足所述触发条件时,向所述第二屏幕发送元素传递通知。
本步骤中,触发条件包括下述至少一项:第一触控操作的移动速度达到第一预设速度;第一触控操作的移动距离达到第一预设距离;确认第一触控操作结束。
其中,第一触控操作的移动速度可以指瞬时速度或平均速度。其中,在移动速度为平均速度时,可以是基于第一触控操作的当前全部时间段得到平均速度,或者是,基于当前时刻及当前时刻之前设定时刻(如当前时刻之前2S的时刻)之间的时间段得到平均速度。在获取第一触控操作最新的触控位置时,可以同步计算该触控位置对应的移动速度。之后,将移动速度与第一预设速度进行比较,以确定移动速度是否达到第一预设速度,其中,移动速度达到第一预设速度可以是移动速度等于第一预设速度或移动速度大于第一预设速度。当移动速度未达到第一预设速度时,继续检测移动速度是否达到第一预设速度。当移动速度达到第一预设速度后,确认触发条件是否还包含其他内容,如果不包含其他内容,则确定满足触发条件,如果包含其他内容,则确认当前时刻其他内容是否也满足,若不满足,则继续检测移动速度是否达到第一预设速度以及其他内容是否满足条件,若满足,则确定满足触发条件。可以理解的是,第一预设速度的具体数值可以根据实际情况设定,实施例对此不作限定。
第一触控操作的移动距离可以是指第一触控操作的最新的触控位置与接收第一触控操作时的触控位置之间的直线长度,也可以是指触控轨迹的长度。随着第一触控操作的执行,移动距离实时更新。相应的,每得到一次移动距离后,均将移动距离与第一预设距离进行比较,以确定移动距离是否达到第一预设距离,其中,移动距离达到第一预设距离可以是移动距离等于第一预设距离或移动距离大于第一预设距离。移动距离达到第一预设距离或未达到第一预设距离后执行的操作与第一速度达到第一预设速度或未达到第一预设速度后执行的操作相似,在此不做赘述。
第一触控操作结束可以理解为用户离开第一屏幕不再执行触控操作。当检测不到第一触控操作时,确定第一触控操作结束。当第一触控操作结束或未结束时执行的操作与第一速度达到第一预设速度或未达到第一预设速度后执行的操作相似,在此不做赘述。
可以理解的是,上述仅是触发条件的可选内容,实际应用中,还可以为触发条件设置其他的内容。
当确定满足触发条件时,确定第一屏幕准备好进行元素传递显示。此时,第一屏幕向第二屏幕发送元素传递通知,也可以理解为第一屏幕对应的应用程序可以向第二屏幕对应的应用程序发送元素传递通知。其中,元素传递通知用于通知第二屏幕对应的应用程序当前要进行元素传递显示。元素传递通知的具体内容可以根据实际情况设定。可选的,当第二屏幕为多个,且每个第二屏幕对应一个应用程序时,第一屏幕对应的应用程序可以向当前可进行数据通信的多个第二屏幕对应的应用程序均发送元素传递通知,以使第二屏幕对应的应用程序 根据元素传递通知确定自身是否满足接收条件,进而确定是否可以进行元素传递显示。一般而言,多个第二屏幕中仅有一个第二屏幕可以满足接收条件。
可以理解的是,若第一屏幕始终未满足触发条件,则将第一屏幕中的元素恢复至原始状态。
第二屏幕对应的应用程序也可以实时监听第一屏幕中的第一触控操作,当确认第一屏幕满足触发条件时,确定接收到元素传递通知,并执行后续操作。
示例性的,设定所述向所述第二屏幕发送元素传递通知时,还包括:向所述第二屏幕发送元素甩动参数。
元素甩动参数为第一触控操作执行过程中得到的、用于使第二屏幕对应的应用程序确定是否满足接收条件的参数。元素甩动参数与元素甩动通知同时发送。元素甩动参数可以结合接收条件确定。实施例中,以元素甩动参数为所述第一触控操作的移动速度、第一触控操作开始时元素的第一单位向量和满足触发条件时元素的第二单位向量、第二单位向量和满足触发条件前设定时刻上元素的第三单位向量、或元素的元素类型为例。
其中,第一单位向量可以根据第一触控操作开始时的甩动方向确定。第二单位向量可以根据满足触发条件时第一触控操作的甩动方向确定。第三单位向量根据满足触发条件前设定时刻上第一触控操作的甩动方向确定。其中,设定时刻可以根据实际情况设定,例如,设定时刻为相对于满足触控条件时间之前2秒的时间。
可以理解的是,元素甩动通知和元素甩动参数的发送规则实施例不作限定。
步骤450、所述第二屏幕接收到元素传递通知时,确定所述第二屏幕是否满足所述接收条件。若第二屏幕满足接收条件,执行步骤460。否则,执行步骤480。
第二屏幕接收到元素传递通知时,确定自身是否满足接收条件,并在满足接收条件时,执行步骤460,即实现元素传递显示。否则,执行步骤480。其中,第二屏幕接收到元素传递通知是指第二屏幕对应的应用程序接收到元素传递通知。
本步骤中,接收条件可以为第二屏幕启动元素传递功能。元素传递功能为接收传递的元素的功能。
若第二屏幕启动了元素传递功能,则说明第二屏幕可以接收元素,即第二屏幕满足接收条件。若第二屏幕未启动元素传递功能,即说明第二屏幕不可以接收元素,即第二屏幕不满足接收条件。其中,第二屏幕启动元素传递功能也可以理解为第二屏幕对应的应用程序启动元素传递功能。元素传递功能的启动方式可以根据实际情况设定。例如,在第二屏幕中显示有控制元素传递功能的虚拟按键。当检测到该虚拟按键接收到点击、双击或长按等操作时,确定启动元素传递功能。在启动元素传递功能后,当检测到该虚拟按键再次接收到点击、双击或长按等操作时,确定关闭元素传递功能。其中,虚拟按键的显示位置以及显示方式实施例不作限定。再如,在第二屏幕中检测到特定触控轨迹的单指或多指触控操作时,确定启动元素传递功能。在启动元素传递功能后,当再次在第二屏幕中检测到特定触控轨迹的单指或多指触控操作,或检测到其他特定触控轨迹单指或多指触控操作时,确定关闭元素传递功能。
可选的,在启动元素传递功能时,通过提示框的方式向用户提示第二屏幕可以接收第一屏幕传递的元素。
可以理解的是,当接收条件仅包含启动元素传递功能时,设定同一时刻仅有一个第二屏幕可以启动元素传递功能。
当第一屏幕同步发送元素甩动参数时,所述第二屏幕接收到元素传递通知时,确定所述第二屏幕是否满足接收条件时具体可以包括:根据元素甩动参数确定第二屏幕是否满足接收条件。
此时,接收条件的内容与元素甩动参数有关,即第二屏幕对应的应用程序根据元素甩动参数确定第二屏幕是否满足接收条件。对应的,本步骤中接收条件还可以包括下述至少一个方案:
方案一、元素甩动参数为第一触控操作的移动速度,接收条件为:移动速度达到第二预设速度。
第二预设速度可以根据实际情况设定,其可以与第一预设速度相同或不同。移动速度的计算方式与前述移动速度的计算方式相同,在此不作赘述。可选的,第一屏幕对应的应用程序可以将得到的全部移动速度发送至第二屏幕对应的应用程序,或者第二屏幕对应的应用程序可以实时监听第一触控操作以实时得到移动速度。当移动速达到第二预设速度时,确定满足接收条件。否则,可以继续比较,直到无法获取移动速度(如第一触控操作停止)且移动速度仍未达到第二预设速度,此时可以认为未满足接收条件。或者是,第二屏幕对应的应用程序仅获取满足触发条件时第一触控操作的移动速度。当该移动速度达到第二预设速度时,确定满足接收条件。否则,确定不满足接收条件。
方案二、元素甩动参数包括:第一触控操作开始时元素的第一单位向量和满足触发条件时元素的第二单位向量,接收条件为:第一单位向量和第二单位向量之间的向量差在第一设定阈值内。
通过计算第一单位向量和第二单位向量之间的向量差,可以确定第一触控操作从接收到当前满足触发条件时刻的甩动方向,该甩动方向也可以理解为元素的移动方向。当该向量差在第一预设阈值内,可以认为移动方向为第二屏幕所在的方向,即元素向第二屏幕移动,此时,可以确认满足接收条件。否则,确定不满足接收条件。其中,第一预设阈值为一个数值范围,其可以根据第一屏幕和第二屏幕之间的相对方向设定。相对方向可以通过第一屏幕和第二屏幕之间的相对位置关系确定。
方案三、元素甩动参数包括:第二单位向量和满足触发条件前设定时刻上元素的第三单位向量,接收条件为:第三单位向量和第二单位向量之间的向量差在第二设定阈值内。
通过计算第三单位向量和第二单位向量之间的向量差,可以确定第一触控操作从满足触发条件之前的设定时刻到当前满足触发条件的时刻之间的甩动方向,该甩动方向同样可以理解为元素的移动方向。当该向量差在第二一预设阈值内,可以认为移动方向为第二屏幕所在的方向,即元素向第二屏幕移动,此时,可以确认满足接收条件。否则,确定不满足接收条件。其中,第二预设阈值为一个数值范围,其同样可以根据第一屏幕和第二屏幕之间的相对方向设定。且第二预设阈值可以与第一预设阈值相同或不同。
方案四、元素甩动参数包括:元素的元素类型,接收条件为:元素类型为预设传递元素类型。
可以第二屏幕对应的应用程序中存储有可以进行传递显示的预设传递元素类型。当接收到第一触控操作作用于的元素的元素类型后,确定该元素类型是否在预设传递元素类型内,若在预设传递元素类型内,则确定满足接收条件。否则,确定不满足接收条件。
步骤460、所述第二屏幕满足所述接收条件时,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸。
第二屏幕满足接收条件中,通知第一屏幕对应的应用程序,以使第一屏幕对应的应用程序确认第二屏幕满足接收条件。之后,第一屏幕对应的应用程序控制元素在第一屏幕中继续移动。且在移动过程中调整元素的第一显示尺寸。可选的,移动过程中,同时调整元素的显示透明度。
步骤470、确认元素移动结束后,在所述第二屏幕中创建所述元素的副本,并删除所述第一屏幕中的所述元素。
本步骤在第二屏幕中创建所述元素的副本具体包括步骤471-步骤473:
步骤471、对接收所述第一触控操作前所述第一屏幕中的所述元素进行复制。
复制可以理解为生成一个新的实例(本步骤中为新的元素),然后把其成员都按原实例赋值(本步骤中为新的元素与接收第一触控操作前的元素相同)。第一屏幕对应的应用程序对第一触控操作前第一屏幕中的元素进行复制可以理解为获取元素的存储地址。可选的,在进行复制时,还可以获取元素的第一显示尺寸。
步骤472、确认所述元素在所述第二屏幕中的第一显示位置。
设定元素在第二屏幕中的第一显示位置进行显示。其中,第一显示位置的确定方式可以根据实际情况设定。实施例中,设定本步骤包括下述任一方案:
方案一、获取元素接收第一触控操作之前在第一屏幕中的第二显示位置;将第二显示位置在第二屏幕中的对应位置作为元素在第二屏幕中的第一显示位置。
第一屏幕对应的应用程序记录接收第一触控操作时元素在第一屏幕中的显示位置,并记为第二显示位置。当第二屏幕确定满足接收条件后,第二屏幕对应的应用程序向第一屏幕对应的应用程序获取第二显示位置。其中,第二显示位置的获取方式实施例不做限定。或者是,第一屏幕对应的应用程序将第二显示位置加入至元素甩动参数中并发送至第二屏幕对应的应用程序。由于第二屏幕和第一屏幕具有相同的像素坐标系,因此,本步骤可以直接将第二显示位置作为第一显示位置,并应用于第二屏幕的像素坐标系。
方案二、获取预先设定的元素显示位置,将元素显示位置作为元素在第二屏幕中的第一显示位置。
基于像素坐标系预先选择一个固定位置,并记为元素显示位置。之后,在确定第二屏幕满足接收条件后,可以直接获取该元素显示位置作为第一显示位置。其中,元素显示位置可以根据实际选择。可以理解的是,由于不同的元素可能具有不同的显示尺寸,因此,设定的元素显示位置可以认为是元素的中心位置,即显示元素时中心点所在的位置。
方案三、获取满足触发条件时第一触控操作的甩动方向以及触发位置;在第二屏幕中,确定甩动方向上距离最近的边界;确定与边界的垂直距离满足第二预设距离的位置集合;根据触发位置、位置集合以及甩动方向确定元素在第二屏幕中的第一显示位置;其中,边界为水平边界或竖直边界。
其中,第一显示位置可以为元素显示时的中心位置或者边界位置。
第二屏幕满足接收条件时,第二屏幕对应的应用程序向第一屏幕对应的应用程序获取满足触发条件时,第一触控操作的甩动方向以及触发位置。或者是,第一屏幕对应的应用程序将甩动方向和触发位置一同加入元素甩动参数中并进行传递。触发位置可以理解为满足触发条件时第一触控操作的触控位置。
根据甩动方向确定距离最近的边界。其中,边界为水平边界或竖直边界,其可以预先设定。
当边界为竖直边界时,根据甩动方向确定距离最近的竖直边界。当第一屏幕和第二屏幕水平排列时,距离最近的竖直边界为靠近第一屏幕的竖直边界。当第一屏幕和第二屏幕竖直排列时,根据甩动方向可以确定第一触控操作指向的竖直边界,进而将该竖直边界确定为距离最近的竖直边界。其中,当甩动方向为竖直向上或向下时,可以由第一屏幕或第二屏幕对应的应用程序指定一个竖直边界,例如指定距离元素近的竖直边界。
设定第一显示位置与该竖直边界的距离固定。即预先设定一个垂直距离,之后,获取该竖直边界的垂直距 离上各像素坐标,进而得到位置集合。可以理解的是,该位置集合可以认为是一条与竖直边界平行的线段。举例而言,图18为本申请实施例提供的屏幕第十四示意图。参考图18,竖直边界44为第二屏幕42中距离最近的边界。线段45为基于竖直边界44得到的坐标集合所对应的线段。从图18可以看出线段45与竖直边界44平行。
根据触发位置、位置集合以及甩动方向确定元素在第二屏幕中的第一显示位置。举例而言,满足触发条件时元素43在第一屏幕42中的显示位置如图18所示,第一触控操作的触发位置为A点。当得到位置集合后,根据触发位置和位置集合可以确定满足触发条件时A点到线段45的距离L。图18中用线段46标识距离L。甩动方向如图18中箭头所示,通过甩动方向可以得到满足触发条件时甩动方向向量,此时根据甩动方向向量和L的乘积,可以得到B点到C点的距离,之后,根据B点到C点的距离以及A点到上水平边界的距离可以得到C点到上水平边界的距离,进而根据该距离以及固定距离得到第一显示位置。可以理解的是,上述附图中出现的虚线、交点和箭头仅用于解释技术方案,实际应用中不会显示在屏幕中。
当边界为水平边界时,根据甩动方向确定距离最近的水平边界。当第一屏幕和第二屏幕竖直排列时,距离最近的水平边界为靠近第一屏幕的水平边界。当第一屏幕和第二屏幕水平排列时,根据甩动方向可以确定第一触控操作指向的水平边界,进而将该水平边界确定为距离最近的水平边界。其中,当甩动方向为水平向左或向右时,可以由智能交互平板指定一个水平边界,例如指定距离元素近的水平边界。
设定第一显示位置与该水平边界的距离固定。即预先设定一个垂直距离,之后,获取该水平边界的垂直距离上各像素坐标,进而得到位置集合。可以理解的是,该位置集合可以认为是一条与水平边界平行的线段。
举例而言,图19为本申请实施例提供的屏幕第十五示意图。参考图19,水平边界47为第一屏幕41中,与第二屏幕42中距离最近的水平边界位于同一水平面的边界线。线段48为基于距离最近的水平边界得到的坐标集合所对应的延长线。从图19可以看出线段48与距离最近的水平边界平行,且该线段可以延伸到第一屏幕41中,并于水平边界47平行。
根据触发位置、位置集合以及甩动方向确定元素在第二屏幕中的第一显示位置。举例而言,满足触发条件时元素43在第一屏幕42中的显示位置如图19所示,第一触控操作的触发位置为D点。当得到位置集合后,根据触发位置和位置集合在第一屏幕中的延长线可以得到D点到延长线的距离P。图18中用线段49标识距离P。此时,将延长线上线段49的端点记为E点。甩动方向如图19中箭头所示,通过甩动方向可以得到满足触发条件时甩动方向向量,此时根据甩动方向向量和P的乘积,可以得到E点到F点的距离,之后,根据E点到F点的距离以及D点到第一屏幕中右竖直边界的距离可以得到F点到第二屏幕中左竖直边界的距离,进而根据该距离以及固定距离得到第一显示位置。可以理解的是,上述附图中出现的虚线、交点和箭头仅用于解释技术方案,实际应用中不会显示在屏幕中。
步骤473、在所述第一显示位置粘贴所述元素。
确定第一显示位置,便可以在第一显示位置粘贴元素。
步骤480、向第一屏幕发送传递失败通知,以使第一屏幕将元素恢复至原始状态。
不满足接收条件时,第二屏幕对应的应用程序可以向第一屏幕对应的应用程序发送传递失败通知。其中,传递失败通知的内容以及通信方式可以根据实际情况设定。第一屏幕对应的应用程序接收到传递失败通知后,确定无法进行元素传递显示,此时,可以将元素恢复至原始状态。
上述元素传递方法,通过在第一屏幕中接收作用于元素上的第一触控操作,根据第一触控操作的触控轨迹控制元素同步移动,若确认元素满足元素传递条件,则控制元素继续移动,并在移动结束后,在第二屏幕中创建元素的副本,并删除第一屏幕中的元素,以实现将元素从第一屏幕传递至第二屏幕进行显示。在元素传递时,调整元素的显示尺寸,并且在第二屏幕进行显示时,设置元素在第二屏幕的显示位置。采用上述技术手段,可以根据元素实际显示需求,通过第一触控操作使元素在屏幕间进行传递,使一个屏幕中出现的元素能够在另一个屏幕上进行显示,不仅实现元素快速、准确地在屏幕间进行传递显示,且其实现方式简单,无需在屏幕上进行对应元素的创建,减少了元素创建过程的工作量。同时,通过设定对应于第一屏幕的触发条件和第二屏幕的接收条件,可以保证元素传递场景的准确性。此外,其元素的传递方式灵活便捷,通过触控操作以触发元素传递,并在满足元素传递条件时,即可实现元素在屏幕间进行传递,其操作简单,可有效提升用户的使用体验。
需要说明的是,实施例三和实施例四与实施例一或实施例二应用于同一场景,未在实施例三或实施例四中描述的技术细节,可以参考实施例一或实施例二。
实施例五
图20为本申请实施例五提供的一种元素传递装置的结构示意图。参考图20,该元素传递装置包括:第一触控模块501、第一移动模块502、第一调整模块503及第一传递模块504。
其中,第一触控模块501用于在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素;第一移动模块502用于控制所述元素跟随所述第一触控操作同步移动;第一调整模块503用于确 认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸;第一传递模块504用于移动结束后,在第二屏幕中显示所述元素,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
在上述实施例的基础上,第一传递模块具体用于:在移动结束后,在第二屏幕的第一显示位置显示所述元素,且所述元素的第二显示尺寸等于所述元素接收所述第一触控操作之前在所述第一屏幕中的第一显示尺寸,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
在上述实施例的基础上,所述第一显示位置与所述第二屏幕的边界为固定距离,所述边界为所述第一触控操作指向的水平边界和/或所述第一触控操作指向的竖直边界;或,所述第一显示位置与第二显示位置相同,所述第二显示位置为所述元素接收所述第一触控操作之前或确认满足元素传递条件时在所述第一屏幕中的显示位置。
在上述实施例的基础上,还包括:激活模块,用于在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素之前,响应于接收到的第二触控操作,将所述元素调整为激活状态,在所述激活状态下可触发所述元素执行元素传递事件,所述第二触控操作作用于所述第一屏幕中的所述元素。
在上述实施例的基础上,还包括:取消模块,用于在响应于接收到的第二触控操作,将所述元素调整为激活状态之后,响应于接收到的第三触控操作,取消所述元素的激活状态,所述第三触控操作作用于所述第一屏幕。
在上述实施例的基础上,还包括:恢复模块,用于确认所述元素不满足元素传递条件,将所述元素恢复至原始状态,所述原始状态为接收到所述第一触控操作之前所述元素在所述第一屏幕中的显示状态。
在上述实施例的基础上,所述第一调整模块还用于调整所述元素的显示透明度。
上述提供的元素传递装置可用于执行上述实施例一至实施例二提供的元素传递方法,具备相应的功能和有益效果。
同时,本申请实施例五还提供另一种元素传递装置,此时,图21为本申请实施例五提供的另一种元素传递装置的结构示意图。参考图21,该元素传递装置包括:第二触控模块505、获取模块506、第二移动模块507、第二调整模块508及第二传递模块509。
其中,第二触控模块505用于在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素;获取模块506用于获取所述第一触控操作在所述第一屏幕中的触控轨迹;第二移动模块507用于控制所述元素跟随所述触控轨迹同步移动;第二调整模块508用于确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸;第二传递模块509用于确认所述元素移动结束后,在第二屏幕中创建所述元素的副本,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
在上述实施例的基础上,所述元素传递条件包括:触发条件和/或接收条件,所述触发条件应用于所述第一屏幕,所述接收条件应用于所述第二屏幕。
在上述实施例的基础上,所述元素传递条件包括:触发条件和接收条件;所述第二调整模块508包括:通知单元,用于确认所述第一屏幕满足所述触发条件时,向所述第二屏幕发送元素传递通知;确定单元,用于在所述第二屏幕接收到元素传递通知时,确定所述第二屏幕是否满足所述接收条件;控制单元,用于在所述第二屏幕满足所述接收条件时,控制所述元素继续移动。
在上述实施例的基础上,所述触发条件包括:所述第一触控操作的移动速度达到第一预设速度;和/或,所述第一触控操作的移动距离达到第一预设距离;和/或,确认所述第一触控操作结束。
在上述实施例的基础上,所述接收条件为:所述第二屏幕启动元素传递功能。
在上述实施例的基础上,所述通知单元还用于向所述第二屏幕发送元素甩动参数;
相应的,所述确定单元还用于根据所述元素甩动参数确定所述第二屏幕是否满足接收条件。
在上述实施例的基础上,所述元素甩动参数为所述第一触控操作的移动速度,所述接收条件为:所述移动速度达到第二预设速度;和/或,所述元素甩动参数包括:所述第一触控操作开始时所述元素的第一单位向量和满足触发条件时所述元素的第二单位向量,所述接收条件为:所述第一单位向量和所述第二单位向量之间的向量差在第一设定阈值内;和/或,所述元素甩动参数包括:所述第二单位向量和所述满足触发条件前设定时刻上所述元素的第三单位向量,所述接收条件为:所述第三单位向量和所述第二单位向量之间的向量差在第二设定阈值内;和/或,所述元素甩动参数包括:所述元素的元素类型,所述接收条件为:所述元素类型为预设传递元素类型。
在上述实施例的基础上,所述第二传递模块509包括:复制单元,用于确认所述元素移动结束后,对接收所述第一触控操作前所述第一屏幕中的所述元素进行复制;位置确定单元,用于确认所述元素在所述第二屏幕中的第一显示位置;粘贴单元,用于在所述第一显示位置粘贴所述元素;元素删除单元,用于删除所述第一屏 幕中的所述元素,以实现向所述第二屏幕传递所述元素。
在上述实施例的基础上,所述位置确定单元具体用于:获取所述元素接收所述第一触控操作之前在所述第一屏幕中的第二显示位置;将所述第二显示位置在所述第二屏幕中的对应位置作为所述元素在所述第二屏幕中的第一显示位置;或,获取预先设定的元素显示位置,将所述元素显示位置作为所述元素在所述第二屏幕中的第一显示位置;或,获取满足触发条件时所述第一触控操作的甩动方向以及触发位置;在所述第二屏幕中,确定甩动方向上距离最近的边界;确定与所述边界的垂直距离满足第二预设距离的位置集合;根据所述触发位置、所述位置集合以及所述甩动方向确定所述元素在所述第二屏幕中的第一显示位置;其中,所述边界为水平边界或竖直边界。
在上述实施例的基础上,第二传递模块509具体用于:确认所述元素移动至设定显示位置后,在第二屏幕中创建所述元素的副本,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素;或,确认所述元素的移动时长达到设定时长后,在第二屏幕中创建所述元素的副本,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
上述提供的元素传递装置可用于执行上述实施例三或实施例四提供的元素传递方法,具备相应的功能和有益效果。
值得注意的是,上述元素传递装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。
实施例六
图22为本申请实施例五提供的一种元素传递设备的结构示意图。本实施例中,以智能交互平板为元素传递设备为例,进行描述。如图22所示,该智能交互平板60包括至少一个处理器61、至少一个网络接口62、用户接口63、存储器64以及至少一个通信总线65。
其中,通信总线65用于实现这些组件之间的连接通信。
其中,用户接口62可以包括显示屏、摄像头,可选用户接口63还可以包括标准的有线接口、无线接口。其中,显示屏可以为至少一个,实施例中以两个为例。
其中,网络接口62可选包括标准的有线接口、无线接口(如Wi-Fi接口)。
其中,处理器61可以包括一个或多个处理核心。处理器61利用各种接口和线路连接整个智能交互平板60内的各个部分,通过运行或执行存储在处理器61内的指令、程序、代码集或指令集,以及调用存储在存储器64内的数据,执行智能交互平板60的各种功能和处理数据。可选的,处理器61可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable logic arrays,PLA)中的至少一种硬件形式来实现。处理器61可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制,两个显示屏可以共用同一GPU,或者每个显示屏对应一个GPU;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器61中,单独通过一块芯片进行实现。
其中,存储器64可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选的,该存储器64包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器64可用于存储指令、程序、代码、代码集或指令集。存储器64可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等;存储数据区可存储上面各个方法实施例中涉及到的数据等。存储器64可选的还可以是至少一个位于远离前述处理器61的存储装置。如图22所示,作为一种计算机存储介质的存储器64中可以包括操作系统、网络通信模块、用户接口模块以及智能交互平板的操作应用程序。
在图22所示的智能交互平板60中,用户接口63主要用于为用户提供输入的接口,获取用户输入的数据;而处理器61可以用于调用存储器64中存储的智能交互平板的操作应用程序,并具体执行上述实施例中元素传递方法中的相关操作。
上述智能交互平板可以用于执行任意实施例提供的元素传递方法,具备相应的功能和有益效果。
此外,本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本申请任意实施例所提供的元素传递方法中的相关操作,且具备相应的功能和有益效果。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。
因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、 CD-ROM、光学存储器等)上实施的计算机程序产品的形式。本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。

Claims (21)

  1. 一种元素传递方法,包括:
    在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素;
    控制所述元素跟随所述第一触控操作同步移动;
    确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸;
    移动结束后,在第二屏幕中显示所述元素,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
  2. 根据权利要求1所述的元素传递方法,其中,所述在第二屏幕中显示所述元素包括:
    在第二屏幕的第一显示位置显示所述元素,且所述元素的第二显示尺寸等于所述元素接收所述第一触控操作之前在所述第一屏幕中的第一显示尺寸。
  3. 根据权利要求2所述的元素传递方法,其中,所述第一显示位置与所述第二屏幕的边界为固定距离,所述边界为所述第一触控操作指向的水平边界和/或所述第一触控操作指向的竖直边界;或,
    所述第一显示位置与第二显示位置相同,所述第二显示位置为所述元素接收所述第一触控操作之前或确认满足元素传递条件时在所述第一屏幕中的显示位置。
  4. 根据权利要求1所述的元素传递方法,其中,在所述在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素之前,还包括:
    响应于接收到的第二触控操作,将所述元素调整为激活状态,在所述激活状态下可触发所述元素执行元素传递事件,所述第二触控操作作用于所述第一屏幕中的所述元素。
  5. 根据权利要求4所述的元素传递方法,其中,在响应于接收到的第二触控操作,将所述元素调整为激活状态之后,还包括:
    响应于接收到的第三触控操作,取消所述元素的激活状态,所述第三触控操作作用于所述第一屏幕。
  6. 根据权利要求1所述的元素传递方法,,还包括:
    确认所述元素不满足元素传递条件,将所述元素恢复至原始状态,所述原始状态为接收到所述第一触控操作之前所述元素在所述第一屏幕中的显示状态。
  7. 根据权利要求1所述的元素传递方法,其中,所述在移动过程中调整所述元素的第一显示尺寸时,还包括:
    调整所述元素的显示透明度。
  8. 一种元素传递方法,包括:
    在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素;
    获取所述第一触控操作在所述第一屏幕中的触控轨迹;
    控制所述元素跟随所述触控轨迹同步移动;
    确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸;
    确认所述元素移动结束后,在第二屏幕中创建所述元素的副本,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
  9. 根据权利要求8所述的元素传递方法,其中,所述元素传递条件包括:触发条件和/或接收条件,所述触发条件应用于所述第一屏幕,所述接收条件应用于所述第二屏幕。
  10. 根据权利要求9所述的元素传递方法,其中,所述元素传递条件包括:触发条件和接收条件;
    所述确认所述元素满足元素传递条件,控制所述元素继续移动,包括:
    确认所述第一屏幕满足所述触发条件时,向所述第二屏幕发送元素传递通知;
    所述第二屏幕接收到元素传递通知时,确定所述第二屏幕是否满足所述接收条件;
    所述第二屏幕满足所述接收条件时,控制所述元素继续移动。
  11. 根据权利要求9或10所述的元素传递方法,其中,所述触发条件包括:
    所述第一触控操作的移动速度达到第一预设速度;和/或,
    所述第一触控操作的移动距离达到第一预设距离;和/或,
    确认所述第一触控操作结束。
  12. 根据权利要求9或10所述的元素传递方法,其中,所述接收条件为:所述第二屏幕启动元素传递功能。
  13. 根据权利要求10所述的元素传递方法,其中,所述向所述第二屏幕发送元素传递通知时,还包括:
    向所述第二屏幕发送元素甩动参数;
    所述确定所述第二屏幕是否满足所述接收条件包括:
    根据所述元素甩动参数确定所述第二屏幕是否满足接收条件。
  14. 根据权利要求13所述的元素传递方法,其中,所述元素甩动参数为所述第一触控操作的移动速度,所述接收条件为:所述移动速度达到第二预设速度;和/或,
    所述元素甩动参数包括:所述第一触控操作开始时所述元素的第一单位向量和满足触发条件时所述元素的第二单位向量,所述接收条件为:所述第一单位向量和所述第二单位向量之间的向量差在第一设定阈值内;和/或,
    所述元素甩动参数包括:所述第二单位向量和满足触发条件前设定时刻上所述元素的第三单位向量,所述接收条件为:所述第三单位向量和所述第二单位向量之间的向量差在第二设定阈值内;和/或,
    所述元素甩动参数包括:所述元素的元素类型,所述接收条件为:所述元素类型为预设传递元素类型。
  15. 根据权利要求8所述的元素传递方法,其中,所述在第二屏幕中创建所述元素的副本包括:
    对接收所述第一触控操作前所述第一屏幕中的所述元素进行复制;
    确认所述元素在所述第二屏幕中的第一显示位置;
    在所述第一显示位置粘贴所述元素。
  16. 根据权利要求15所述的元素传递方法,其中,所述确认所述元素在所述第二屏幕中的第一显示位置包括:
    获取所述元素接收所述第一触控操作之前在所述第一屏幕中的第二显示位置;将所述第二显示位置作为所述元素在所述第二屏幕中的第一显示位置;或,
    获取预先设定的元素显示位置,将所述元素显示位置作为所述元素在所述第二屏幕中的第一显示位置;或,
    获取满足触发条件时所述第一触控操作的甩动方向以及触发位置;在所述第二屏幕中,确定甩动方向上距离最近的边界;确定与所述边界的垂直距离满足第二预设距离的位置集合;根据所述触发位置、所述位置集合以及所述甩动方向确定所述元素在所述第二屏幕中的第一显示位置;其中,所述边界为水平边界或竖直边界。
  17. 根据权利要求8所述的元素传递方法,其中,所述确认所述元素移动结束包括:
    确认所述元素移动至设定显示位置;或,
    确认所述元素的移动时长达到设定时长。
  18. 一种元素传递装置,包括:
    第一触控模块,用于在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素;
    第一移动模块,用于控制所述元素跟随所述第一触控操作同步移动;
    第一调整模块,用于确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸;
    第一传递模块,用于移动结束后,在第二屏幕中显示所述元素,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
  19. 一种元素传递装置,包括:
    第二触控模块,用于在第一屏幕中接收第一触控操作,所述第一触控操作作用于所述第一屏幕中显示的元素;
    获取模块,用于获取所述第一触控操作在所述第一屏幕中的触控轨迹;
    第二移动模块,用于控制所述元素跟随所述触控轨迹同步移动;
    第二调整模块,用于确认所述元素满足元素传递条件,控制所述元素继续移动,且在移动过程中调整所述元素的第一显示尺寸;
    第二传递模块,用于在确认所述元素移动结束后,在第二屏幕中创建所述元素的副本,并删除所述第一屏幕中的所述元素,以实现向所述第二屏幕传递所述元素。
  20. 一种元素传递设备,包括:
    一个或多个处理器;
    存储器,用于存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7或权利要求8-17中任一所述的元素传递方法。
  21. 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-7或权利要求8-17中任一所述的元素传递方法。
PCT/CN2019/125533 2019-10-11 2019-12-16 元素传递方法、装置、设备及存储介质 WO2021068405A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910964777.2 2019-10-11
CN201910964777.2A CN110888581A (zh) 2019-10-11 2019-10-11 元素传递方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2021068405A1 true WO2021068405A1 (zh) 2021-04-15

Family

ID=69746104

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/125533 WO2021068405A1 (zh) 2019-10-11 2019-12-16 元素传递方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN110888581A (zh)
WO (1) WO2021068405A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113663323A (zh) * 2021-09-08 2021-11-19 网易(杭州)网络有限公司 终端操作方法、装置、电子设备和存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676745B (zh) * 2021-08-17 2022-05-17 腾讯科技(深圳)有限公司 虚拟道具的互动处理方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020089546A1 (en) * 1999-07-15 2002-07-11 International Business Machines Corporation Dynamically adjusted window shape
CN103955339A (zh) * 2014-04-25 2014-07-30 华为技术有限公司 一种终端操作方法及终端设备
CN104035706A (zh) * 2013-03-08 2014-09-10 宏达国际电子股份有限公司 显示方法以及电子装置
CN109710130A (zh) * 2018-12-27 2019-05-03 维沃移动通信有限公司 一种显示方法和终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9092115B2 (en) * 2009-09-23 2015-07-28 Microsoft Technology Licensing, Llc Computing system with visual clipboard
US9405444B2 (en) * 2010-10-01 2016-08-02 Z124 User interface with independent drawer control
KR102063766B1 (ko) * 2013-09-17 2020-01-08 엘지전자 주식회사 이동 단말기 및 그것의 제어방법
CN106648433A (zh) * 2016-12-27 2017-05-10 宇龙计算机通信科技(深圳)有限公司 双屏交互操作的控制方法及装置和终端
CN110221759A (zh) * 2019-05-31 2019-09-10 广州视源电子科技股份有限公司 一种元素拖拽方法、装置、存储介质及交互智能平板

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020089546A1 (en) * 1999-07-15 2002-07-11 International Business Machines Corporation Dynamically adjusted window shape
CN104035706A (zh) * 2013-03-08 2014-09-10 宏达国际电子股份有限公司 显示方法以及电子装置
CN103955339A (zh) * 2014-04-25 2014-07-30 华为技术有限公司 一种终端操作方法及终端设备
CN109710130A (zh) * 2018-12-27 2019-05-03 维沃移动通信有限公司 一种显示方法和终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113663323A (zh) * 2021-09-08 2021-11-19 网易(杭州)网络有限公司 终端操作方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN110888581A (zh) 2020-03-17

Similar Documents

Publication Publication Date Title
US11727650B2 (en) Systems, methods, and graphical user interfaces for displaying and manipulating virtual objects in augmented reality environments
RU2534486C2 (ru) Моделирование инерции объектов при вводе множественным касанием
JP6215534B2 (ja) 情報処理装置及び情報処理方法、並びにコンピューター・プログラム
US11443453B2 (en) Method and device for detecting planes and/or quadtrees for use as a virtual substrate
WO2021068366A1 (zh) 智能交互平板的书写操作方法、装置、设备和存储介质
US20120092381A1 (en) Snapping User Interface Elements Based On Touch Input
KR102190904B1 (ko) 윈도우 제어 방법 및 이를 지원하는 전자장치
US11112959B2 (en) Linking multiple windows in a user interface display
WO2021068365A1 (zh) 智能交互平板的页面交互方法、装置、设备和存储介质
AU2014312481A1 (en) Display apparatus, portable device and screen display methods thereof
US10855481B2 (en) Live ink presence for real-time collaboration
US9547370B2 (en) Systems and methods for enabling fine-grained user interactions for projector-camera or display-camera systems
WO2021068412A1 (zh) 智能交互平板的交互方法、装置、终端设备和存储介质
CN110941382B (zh) 智能交互平板的显示操作方法、装置、设备和存储介质
EP2965181B1 (en) Enhanced canvas environments
WO2021068405A1 (zh) 元素传递方法、装置、设备及存储介质
TW201432556A (zh) 記錄軌跡的方法及電子裝置
CN108885556B (zh) 控制数字输入
WO2021068382A1 (zh) 多窗口操作控制方法、装置、设备及存储介质
CN109144397B (zh) 擦除方法、装置以及智能交互平板
US9483171B1 (en) Low latency touch input rendering
US11592963B2 (en) Terminal, control method therefor, and recording medium in which program for implementing method is recorded
WO2014031449A1 (en) Visual object manipulation
WO2023065939A1 (zh) 一种触控响应方法、装置、交互平板及存储介质
US20230409145A1 (en) Touch response method, device, interactive white board, and storage medium

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: 19948466

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19948466

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19948466

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.10.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19948466

Country of ref document: EP

Kind code of ref document: A1