Disclosure of Invention
The invention aims to provide a method and a device for switching text contents between different interfaces, which can quickly realize the conversion of the text contents between different interfaces.
In order to achieve the above object, an embodiment of the present invention provides a method for switching text contents between different interfaces, where the method includes:
on a first editing interface, obtaining the text content selected by a user;
responding to a first preset operation of the user on the selected text content, and switching to a second editing interface;
and on a second editing interface, responding to a second preset operation of the user on the selected text content, and moving the selected text content to an editable area in the second editing interface and storing the selected text content.
Preferably, the first editing interface is a note interface; the second editing interface is a calendar interface;
the step of obtaining the text content selected by the user on the first editing interface comprises the following steps: obtaining a target note selected by a user on a note interface;
the step of switching to a second editing interface in response to a first preset operation of the user on the selected text content includes:
on the note interface, responding to a first preset operation of a user on the target note, and switching to a calendar interface;
the step of moving the selected text content to an editable area in the second editing interface and storing the selected text content on the second editing interface in response to a second preset operation of the user on the selected text content comprises the following steps:
and on the calendar interface, responding to a second preset operation of the user on the target note, and moving the text content in the target note to an editable area in the calendar interface and storing the text content.
Preferably, the step of switching to the calendar interface in response to a first preset operation of the user on the target note on the note interface includes:
on a note interface, responding to the dragging operation of a user on a target note, displaying the target note in a first floating window mode, and moving the target note along with a dragging point; the dragging point is a touch point operated by the user;
and switching to a calendar interface after detecting that the dragging point moves to a first preset area on the note interface.
Preferably, the step of moving and saving the text content in the target note to an editable area in the calendar interface in response to a second preset operation of the user on the target note on the calendar interface includes:
when the dragging point is detected to move to a second preset area on the calendar interface, in response to the dragging operation of releasing the target note, cutting the text content in the target note to a cutting plate, and pasting the text content to a schedule item area associated with the target date point; wherein the second predetermined area is a threshold range area from the target date point or a schedule item area associated with the target date point; the target date point is any date point in the date area.
Preferably, after the step of switching to a calendar interface after detecting that the drag point moves to the first predetermined area on the note interface, the method further comprises:
when the dragging point is detected to move to the date area, executing preset processing on the target note; the preset treatment comprises the following steps: increasing the transparency of the target note and/or decreasing the size of the target note.
Preferably, the method further comprises:
responding to a first gesture operation of a user on the target date point, and displaying a second floating window at a preset position;
and displaying the text content in the second floating window.
Preferably, the first editing interface is a calendar interface; the second editing interface is a note interface;
the step of obtaining the text content selected by the user on the first editing interface comprises the following steps: obtaining a target schedule item selected by a user on a calendar interface;
the step of switching to a second editing interface in response to a first preset operation of the user on the selected text content includes:
on the calendar interface, responding to a first preset operation of a user on a target schedule item, and switching to a note interface;
the step of moving the selected text content to an editable area in the second editing interface and storing the selected text content on the second editing interface in response to a second preset operation of the user on the selected text content comprises the following steps:
and on the note interface, responding to a second preset operation of the user on the target schedule item, and moving the text content in the target schedule item to an editable area in the note interface and storing the text content.
Preferably, the step of switching to the note interface in response to the first preset operation of the user on the target schedule entry on the calendar interface includes:
on a calendar interface, responding to the dragging operation of a user on the target schedule item, displaying the target schedule item in a third floating window mode, and moving the target schedule item along with a dragging point; the dragging point is a touch point operated by the user;
and switching to a note interface after the dragging point is detected to move to a third preset area on the calendar interface.
Preferably, the step of moving and saving the text content in the target schedule item to an editable area in the note interface in response to a second preset operation of the user on the target schedule item on the note interface includes:
and when the dragging point is detected to move to the note area on the note interface, responding to the releasing dragging operation of the target schedule item, cutting the text content to a cutting plate, and pasting the text content to the note area.
The embodiment of the invention also provides a device for switching the text content among different interfaces, which comprises:
the text content acquisition module is used for acquiring text contents selected by a user on the first editing interface;
the editing interface switching module is used for responding to a first preset operation of a user on the selected text content and switching to a second editing interface;
and the text content switching module is used for responding to a second preset operation of the user on the selected text content on a second editing interface, and moving the selected text content to an editable area in the second editing interface and storing the selected text content.
Preferably, the first editing interface is a note interface; the second editing interface is a calendar interface;
the text content acquisition module is specifically used for acquiring a target note selected by a user on a note interface;
the editing interface switching module is specifically used for responding to a first preset operation of a user on a target note and switching to a calendar interface on the note interface;
the text content switching module is specifically configured to, on the calendar interface, respond to a second preset operation of the user on the target note, move and store text content in the target note to an editable area in the calendar interface.
Preferably, the editing interface switching module includes:
the target note moving unit is used for responding to the dragging operation of a user on the target note on the note interface, displaying the target note in a first floating window mode and moving the target note along with a dragging point; the dragging point is a touch point operated by the user;
and the calendar interface switching unit is used for switching to the calendar interface after detecting that the dragging point moves to the first preset area on the note interface.
Preferably, the text content switching module is specifically configured to, after detecting that the drag point moves to a second predetermined area on the calendar interface, respond to a drag operation of releasing the target note, cut text content in the target note to a clipboard, and paste the text content to a schedule entry area associated with the target date point; wherein the second predetermined area is a threshold range area from the target date point or a schedule item area associated with the target date point; the target date point is any date point in the date area.
Preferably, the apparatus further comprises:
the processing module is used for executing preset processing on the target note after the dragging point is detected to move to the date area; the preset treatment comprises the following steps: increasing the transparency of the target note and/or decreasing the size of the target note.
Preferably, the apparatus further comprises:
the second floating window display module is used for responding to the first gesture operation of the user on the target date point and displaying a second floating window at a preset position;
and the text content display module is used for displaying the text content in the second floating window.
Preferably, the first editing interface is a calendar interface; the second editing interface is a note interface;
the text content acquisition module is specifically used for acquiring a target schedule item selected by a user on a calendar interface;
the editing interface switching module is specifically used for responding to a first preset operation of a user on a target schedule item on a calendar interface and switching to a note interface;
the text content switching module is specifically configured to, on the note interface, respond to a second preset operation of the user on the target schedule entry, move and store text content in the target schedule entry to an editable area in the note interface.
Preferably, the editing interface switching module includes:
the target schedule item display unit is used for responding to the dragging operation of a user on the target schedule item on a calendar interface, displaying the target schedule item in a third floating window mode and moving the target schedule item along with a dragging point; the dragging point is a touch point operated by the user;
and the note interface switching unit is used for switching to a note interface after the fact that the dragging point moves to a third preset area on the calendar interface is detected.
Preferably, the text content switching module is specifically configured to, after detecting that the drag point moves to the note area on the note interface, respond to a release drag operation on the target schedule item, cut the text content to a clipboard, and paste the text content to the note area.
According to the method and the device for switching the text contents between different interfaces, provided by the embodiment of the invention, in the prior art, after the text contents on one editing interface need to be cut by a user, the other editing interface is opened, and then the text contents are pasted, so that the operation is relatively complicated; in the embodiment, the text content on the first editing interface is moved to the second editing interface by the interface switching method, so that the text content switching between two different interfaces can be quickly realized, and the user experience is improved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
As shown in fig. 1, a first flowchart of a method for switching text content between different interfaces according to an embodiment of the present invention is applicable to a mobile phone, a tablet computer, and other terminal devices. The method comprises the following steps:
and S110, acquiring the text content selected by the user on the first editing interface.
Specifically, the first editing interface includes, but is not limited to, a calendar interface or a note interface, and the text content includes, but is not limited to, schedule information in a schedule entry of the calendar interface and schedule information in a note on the note interface. The user can select the text content by clicking, double clicking or long pressing, and when the terminal device senses the pressing mode of the user, the corresponding text content is obtained, and the specific obtaining mode is the prior art and is not described herein any more.
And S120, responding to the first preset operation of the user on the selected text content, and switching to a second editing interface.
In this embodiment, the second editing interface and the first editing interface are different editing interfaces. For example, when the first editing interface is a calendar interface, the second editing interface may be a notes interface; when the first editing interface is a notes interface, the second editing interface may be a calendar interface.
The first preset operation may be an operation of a user dragging text content to a certain specific area, for example: dragging to the edge of the interface can also be an operation of clicking, double-clicking, right sliding or left sliding and the like on the text content for the user. And when the mobile terminal detects a first preset operation of a user, switching the current first editing interface to a second editing interface.
In this embodiment, a specific method for implementing the handover may be: the second editing interface and the first editing interface are in the same application software, after the application software is started, one interface of the second editing interface and the first editing interface is on the upper layer, the other interface is on the lower layer, and after a user performs a first preset operation on the selected text content, the two interfaces are exchanged with the upper layer and the lower layer to realize interface switching.
And S130, on a second editing interface, responding to a second preset operation of the user on the selected text content, moving the selected text content to an editable area in the second editing interface and storing the selected text content.
Specifically, the second preset operation may be a release drag operation after dragging the selected text to an editable area in the second editing interface, or may be a click or double-click on the editable area in the second editing interface. The specific method of moving the selected text content to the editable area in the second editing interface and saving the selected text content can be realized by cutting and pasting the text content.
For example, on the first editing interface, after the user drags the selected text content to the interface edge, the terminal automatically switches to the second editing interface, the user drags the selected text content to the editable area in the second editing interface and releases the dragging, the selected text content is automatically cut to the clipboard by the terminal, and the text content is automatically pasted to the editable area.
On the first editing interface, after the user double-clicks the text content, the selected text content is automatically cut to a cutting board by the terminal and is switched to a second editing interface; and the user double-clicks the editable area in the second editing interface, and the text content is automatically pasted to the editable area by the terminal.
According to the method for switching the text contents between different interfaces, provided by the embodiment of the invention, in the prior art, after the text contents on one editing interface need to be cut by a user, the other editing interface is opened, and then the text contents are pasted, so that the operation is complicated; in the embodiment, the text content on the first editing interface is moved to the second editing interface by the interface switching method, so that the text content switching between two different interfaces can be quickly realized, and the user experience is improved.
In order to facilitate understanding of a specific switching method of text contents between different interfaces, in this embodiment, the first editing interface is defined as a note interface, and the second editing interface is defined as a calendar interface.
As shown in fig. 2, a second flowchart of a method for switching text content between different interfaces according to an embodiment of the present invention is provided, where the method includes:
s210, obtaining the target note selected by the user on the note interface.
In this embodiment, step S210 is a specific implementation manner of step S110.
Specifically, the target note is defined as any one note in a note area on the note interface, the text content in the target note is schedule information, and the schedule information is also selected when the user selects the target note.
S220, on the note interface, responding to a first preset operation of the user on the target note, and switching to the calendar interface.
In this embodiment, step S220 is a specific implementation manner of step S120, and step S220 includes:
a1, responding to the drag operation of a user on a target note on a note interface, displaying the target note in the form of a first floating window, and moving the target note along with a drag point; the dragging point is a touch point operated by the user.
Specifically, after the user selects the target note, the target note is dragged, and the dragging point is a touch point of the user dragging operation, namely a contact point between a finger of the user and the mobile terminal.
And when the mobile terminal detects the dragging operation of the user, displaying the target note in a floating window (defined as a first floating window) mode, and following the moving target note of the dragging point. In this embodiment, the specific moving method of the target note is the prior art, and is not described herein again.
And A2, switching to a calendar interface after detecting that the dragging point moves to the first preset area on the note interface.
Specifically, the first predetermined area may be a boundary area of the note interface or a function area preset on the note interface, where the function area is used to switch to the calendar interface. For example, when the mobile terminal detects that the drag point moves to the boundary area of the note interface, the note interface is switched to the calendar interface. Specifically, the switching manner is as described in the content of step S120.
And S230, responding to a second preset operation of the user on the target note on the calendar interface, moving the text content in the target note to an editable area in the calendar interface and storing the text content.
In this embodiment, step S230 is a specific implementation manner of step S130, and step S230 includes:
and after the dragging point is detected to move to a second preset area on the calendar interface, responding to the releasing dragging operation of the target note, cutting the text content in the target note to a cutting plate, and pasting the text content to a schedule item area associated with the target date point.
Specifically, the target date point is any one of date points in a date area on the calendar interface, and the second predetermined area may be a threshold range area from the target date point or a schedule entry area associated with the target date point. For example, a region inside a circle having a radius of 1mm with the target date point as the center may be set as the threshold range region from the target date point.
When the dragging point moves to a threshold range area away from the target date point or a schedule item area associated with the target date point, the user releases the dragging operation, the terminal device cuts schedule information in the target note to the cutting board and pastes the schedule information to the schedule item area associated with the target date point, and at the moment, when the user clicks the date point, the schedule item area can display the schedule information.
Since the target note has a certain size and is non-transparent, in the dragging process, the target note may block the date point in the date area, and the user cannot conveniently and quickly find the date point to be dragged, in order to solve the problem, after step S220, the method further includes:
when the dragging point is detected to move to the date area, executing preset processing on the target note; the preset treatment comprises the following steps: increasing the transparency of the target note and/or decreasing the size of the target note.
Specifically, after the drag point is moved to the date area, the mobile terminal may reduce the shielding effect of the target note by increasing the transparency of the target note and/or reducing the size of the target note. For example, the target note may be set to be completely transparent and/or the size of the target schedule entry may be set to be very small (e.g., smaller than the size of the finger tip of the user), so that the target note cannot obstruct the view of the user, and the user can conveniently and quickly find the date point to be dragged, thereby increasing the user experience.
In practical operation, in order to conveniently remind the user of the schedule, the method further comprises:
b1, responding to the first gesture operation of the user on the target date point, and displaying a second floating window at a preset position;
and B2, displaying the text content in the second floating window.
Specifically, the first gesture operation may be a long press, a click, a heavy press, or the like. The second preset position may be a position directly above the target date point or a position such as an upper right corner or an upper left corner of the screen of the mobile terminal. For example, after the schedule information in the target note moves to the associated schedule entry area of the target date, the user presses the target date point, a floating window (defined as a second floating window) can be displayed right above the target date point, and the schedule information is displayed in the second floating window, so as to conveniently remind the user of the schedule.
According to the method for switching the text contents between different interfaces, the text contents in the note can be quickly switched from the note interface to the calendar interface, and the user experience is improved.
Preferably, in this embodiment, the first editing interface is defined as a calendar interface, and the second editing interface is defined as a note interface. As shown in fig. 3, a third flowchart of a method for switching text content between different interfaces according to an embodiment of the present invention is shown, where the method includes:
s310, obtaining the target schedule item selected by the user on the calendar interface.
In this embodiment, step S310 is a specific implementation manner of step S110.
Specifically, a target schedule entry is defined as any one of schedule entries in a schedule entry area on a calendar interface, text content in the target schedule entry is schedule information, and the schedule information is also selected when a user selects the target schedule entry.
And S320, responding to the first preset operation of the user on the target schedule item on the calendar interface, and switching to a note interface.
In this embodiment, step S320 is a specific implementation manner of step S120, and step S320 includes:
c1, responding to the dragging operation of the target schedule item by the user on the calendar interface, displaying the target schedule item in a third floating window mode, and moving the target schedule item along with a dragging point; the dragging point is a touch point operated by the user.
Specifically, after the user selects a target schedule item, the target schedule item is dragged, and after the mobile terminal detects the dragging operation of the user, the target note is displayed in the form of a floating window (defined as a third floating window), and the target schedule item is moved along with a dragging point.
C2, when the drag point is detected to move to a third preset area on the calendar interface, switching to a note interface.
Specifically, the third predetermined area may be a boundary area of the calendar interface or a function area preset on the calendar interface, and the function area is used for switching to the note interface. For example, when the mobile terminal detects that the drag point moves to the boundary area of the calendar interface, the calendar interface is switched to the note interface. Specifically, the switching manner is as described in the content of step S120.
S330, responding to a second preset operation of the user on the target schedule item on the note interface, moving the text content in the target schedule item to an editable area in the note interface and storing the text content.
In this embodiment, step S330 is a specific implementation manner of step S130, and step S330 includes:
and when the dragging point is detected to move to the note area on the note interface, responding to the releasing dragging operation of the target schedule item, cutting the text content to a cutting plate, and pasting the text content to the note area.
In this embodiment, the text content in the target schedule entry is schedule information in the target schedule entry, and the editable area in the note interface is a note area.
Specifically, after the drag point moves to the note area on the note interface, the user releases the drag, the terminal device detects the operation of releasing the drag, cuts the schedule information in the target schedule entry to the cutting board, and pastes the schedule information to the note area, and at this time, the schedule information is displayed in the note area in the form of a note.
According to the method for switching the text contents between different interfaces, the text contents in the schedule items are quickly switched from the calendar interface to the note interface, and the user experience is improved.
Example two
As shown in fig. 4, which is a schematic structural diagram of a device for switching text content between different interfaces according to an embodiment of the present invention, the device may be used to execute the method shown in fig. 1, and the device includes:
a text content obtaining module 410, configured to obtain text content selected by a user on a first editing interface;
the editing interface switching module 420 is configured to switch to a second editing interface in response to a first preset operation of the user on the selected text content;
and the text content switching module 430 is configured to, on a second editing interface, respond to a second preset operation performed by the user on the selected text content, move the selected text content to an editable area in the second editing interface, and store the selected text content.
According to the device for switching the text contents between different interfaces, provided by the embodiment of the invention, in the prior art, after the text contents on one editing interface need to be cut by a user, the other editing interface is opened, and then the text contents are pasted, so that the operation is complicated; in the embodiment, the text content on the first editing interface is moved to the second editing interface by the interface switching method, so that the text content switching between two different interfaces can be quickly realized, and the user experience is improved.
Preferably, when the first editing interface is a note interface and the second editing interface is a calendar interface, the apparatus shown in fig. 4 may further perform the method shown in fig. 2.
The text content obtaining module 410 is specifically configured to obtain a target note selected by a user on a note interface;
the editing interface switching module 420 is specifically configured to, on the note interface, respond to a first preset operation of the user on the target note, switch to the calendar interface;
the text content switching module 430 is specifically configured to, on the calendar interface, respond to a second preset operation of the user on the target note, move and store text content in the target note to an editable area in the calendar interface.
Preferably, the editing interface switching module 430 includes:
the target note moving unit is used for responding to the dragging operation of a user on the target note on the note interface, displaying the target note in a first floating window mode and moving the target note along with a dragging point; the dragging point is a touch point operated by the user;
and the calendar interface switching unit is used for switching to the calendar interface after detecting that the dragging point moves to the first preset area on the note interface.
Preferably, the text switching module 430 is specifically configured to, after detecting that the drag point moves to a second predetermined area on the calendar interface, in response to a drag operation of releasing the target note, cut text in the target note to a clipboard, and paste the text to a schedule entry area associated with a target date point; wherein the second predetermined area is a threshold range area from the target date point or a schedule item area associated with the target date point; the target date point is any date point in the date area.
Preferably, the apparatus further comprises:
the processing module is used for executing preset processing on the target note after the dragging point is detected to move to the date area; the preset treatment comprises the following steps: increasing the transparency of the target note and/or decreasing the size of the target note.
Preferably, the apparatus further comprises:
the second floating window display module is used for responding to the first gesture operation of the user on the target date point and displaying a second floating window at a preset position;
and the text content display module is used for displaying the text content in the second floating window.
The implementation provides a switching device of literal content between different interfaces, has realized the quick conversion of the literal content in the note from the note interface to the calendar interface, has improved user's experience.
Preferably, when the first editing interface is a calendar interface and the second editing interface is a note interface, the apparatus shown in fig. 4 may further perform the method shown in fig. 3.
The text content obtaining module 410 is specifically configured to obtain a target schedule entry selected by a user on a calendar interface;
the editing interface switching module 420 is specifically configured to, on the calendar interface, respond to a first preset operation of a user on a target schedule entry, and switch to a note interface;
the text content switching module 430 is specifically configured to, on the note interface, respond to a second preset operation of the user on the target schedule entry, move the text content in the target schedule entry to an editable area in the note interface and store the text content.
Preferably, the editing interface switching module 420 includes:
the target schedule item display unit is used for responding to the dragging operation of a user on the target schedule item on a calendar interface, displaying the target schedule item in a third floating window mode and moving the target schedule item along with a dragging point; the dragging point is a touch point operated by the user;
and the note interface switching unit is used for switching to a note interface after the fact that the dragging point moves to a third preset area on the calendar interface is detected.
Preferably, the text switching module 430 is specifically configured to, after detecting that the drag point moves to the note area on the note interface, respond to a release drag operation on the target schedule entry, cut the text to a clipboard, and paste the text to the note area.
The implementation provides a switching device of literal content between different interfaces, has realized the quick conversion of the literal content in the schedule entry from the calendar interface to the memo interface, has improved user's experience.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.