CN111427587B - Target deleting method and device - Google Patents

Target deleting method and device Download PDF

Info

Publication number
CN111427587B
CN111427587B CN201910465608.4A CN201910465608A CN111427587B CN 111427587 B CN111427587 B CN 111427587B CN 201910465608 A CN201910465608 A CN 201910465608A CN 111427587 B CN111427587 B CN 111427587B
Authority
CN
China
Prior art keywords
operation button
target
button
display interface
dragging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910465608.4A
Other languages
Chinese (zh)
Other versions
CN111427587A (en
Inventor
谢家亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910465608.4A priority Critical patent/CN111427587B/en
Publication of CN111427587A publication Critical patent/CN111427587A/en
Application granted granted Critical
Publication of CN111427587B publication Critical patent/CN111427587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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

Abstract

The application provides a target deleting method and a target deleting device, wherein the method comprises the following steps: when a drag operation for an operation button in a display interface is detected, acquiring a displacement of the drag operation movement; and if the displacement of the movement of the dragging operation is larger than a preset threshold value when the dragging operation is finished, controlling the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when the target to be deleted reaches a specified position. The method can improve man-machine interaction in the process of deleting the target and increase operability of the terminal equipment.

Description

Target deleting method and device
Technical Field
The present application relates to the field of application software technologies, and in particular, to a method and an apparatus for deleting a target.
Background
Currently, the operation procedure of performing target deletion by a terminal such as a mobile phone, a Pad (tablet computer) or a PC (Personal Computer ) is generally as follows: the user selects the target to be deleted, then clicks a deletion button, the target suddenly disappears and is not seen, and the target deletion is completed, so that the man-machine interaction is poor.
Disclosure of Invention
In view of the above, the present application provides a method and apparatus for deleting a target.
Specifically, the application is realized by the following technical scheme:
according to a first aspect of an embodiment of the present application, there is provided a target deletion method, including:
when a drag operation for an operation button in a display interface is detected, acquiring a displacement of the drag operation movement;
and if the displacement of the movement of the dragging operation is larger than a preset threshold value when the dragging operation is finished, controlling the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when the target to be deleted reaches a specified position.
According to a second aspect of an embodiment of the present application, there is provided a target deletion apparatus including: the device comprises a detection unit, an acquisition unit, a judgment unit and a control unit; wherein:
the acquisition unit is used for acquiring displacement of the dragging operation movement when the detection unit detects the dragging operation of the operation button in the display interface;
the judging unit is used for judging whether the displacement of the dragging operation movement is larger than a preset threshold value or not when the dragging operation is finished;
and the control unit is used for controlling the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when the target to be deleted reaches a specified position if the displacement of the movement of the dragging operation is larger than a preset threshold value when the dragging operation is finished.
According to a third aspect of an embodiment of the present application, there is provided an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory perform communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the target deleting method when executing the program stored in the memory.
According to a fourth aspect of embodiments of the present application, there is provided a machine-readable storage medium having stored therein a computer program which, when executed by a processor, implements the above-described target deletion method.
According to the target deleting method, the target deleting is triggered by dragging the dragging button in the display interface, and when the target is deleted, the target to be deleted is controlled to move in the display interface according to the preset track until the target to be deleted disappears when reaching the designated position, so that the target deleting is completed, the man-machine interaction in the target deleting process is improved, and the operability of the terminal equipment is improved; in addition, as the displacement of the movement of the dragging operation is larger than the preset threshold value to trigger the target deletion, the occurrence of misoperation can be effectively avoided, and the controllability of the target deletion is improved.
Drawings
FIG. 1 is a flow chart of a method of deleting a target, shown in an exemplary embodiment of the application;
FIG. 2 is a flow chart of a method of deleting a target, as shown in yet another exemplary embodiment of the application;
FIG. 3 is a flow chart of a method of deleting a target, as shown in yet another exemplary embodiment of the application;
FIG. 4 is a flow chart of a method of deleting a target, as shown in yet another exemplary embodiment of the application;
FIG. 5 is a schematic diagram of a label management interface according to an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram of a label management interface according to yet another exemplary embodiment of the present application;
fig. 7 is a schematic diagram of a structure of a target deletion apparatus according to an exemplary embodiment of the present application;
fig. 8 is a schematic structural view of a target deletion apparatus according to still another exemplary embodiment of the present application;
fig. 9 is a schematic structural view of a target deletion apparatus according to still another exemplary embodiment of the present application;
fig. 10 is a schematic structural view of a target deletion apparatus according to still another exemplary embodiment of the present application;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In order to better understand the technical solution provided by the embodiments of the present application and make the above objects, features and advantages of the embodiments of the present application more obvious, the technical solution in the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a target deletion method provided in an embodiment of the present application, as shown in fig. 1, the target deletion method may include the following steps:
it should be noted that the target deletion method shown in fig. 1 may be applied to a terminal device, such as a mobile phone, a Pad, or a PC.
Step S100, when a drag operation for an operation button in a display interface is detected, a displacement of the drag operation movement is acquired.
In the embodiment of the present application, in order to implement the target deletion, a function button (referred to herein as an operation button) for triggering the target deletion may be newly added to the terminal device.
When the terminal device detects a drag operation for an operation button in the display interface, such as a user clicking and dragging the operation button with a finger (for a touch screen scene), or a user clicking and dragging the operation button with a mouse (for a scene supporting a mouse input), the terminal device may acquire a displacement of the drag operation movement.
For example, taking a case where the user clicks and drags the operation button with a finger, the displacement of the drag operation movement may be the distance between the position of the finger when the operation button is released and the position when the finger clicks the operation button after the finger clicks the operation button.
For example, taking a case that the user clicks and drags the operation button through the mouse, the displacement of the drag operation movement may be the distance between the position of the cursor when the user releases the mouse and the position of the cursor when the user clicks the operation button through the mouse after the user clicks the operation button through the mouse.
And step S110, if the displacement of the dragging operation movement is larger than a preset threshold value when the dragging operation is finished, controlling the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when reaching a specified position.
In the embodiment of the application, when the terminal device detects that the dragging operation for the operation button in the display interface is finished, for example, the finger of the user is separated from the operation button, or the user releases the mouse, the terminal device can compare the displacement of the dragging operation movement with a preset displacement threshold (the preset threshold can be set according to the actual scene, such as 75 pixels).
When the displacement of the drag operation movement is larger than a preset threshold, the terminal equipment can determine that a target deleting instruction is received, at the moment, the terminal equipment can control the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when reaching a designated position, and target deleting is completed.
For example, the object to be deleted may include a user application running on the terminal device that occupies system resources such as a CPU (Center Process Unit, central processing unit) and a memory, or an object in a certain application running on the terminal device, such as a note shown in a display interface of the brain storm software.
As an example, the terminal device may control the object to be deleted to disappear from sliding to a certain boundary (the lower boundary) of the display interface at random speed according to a random trajectory.
As another example, the terminal device may control the object to be deleted to move downward at a constant speed according to a preset speed, and disappear after reaching the lower boundary of the display interface.
For example, when the terminal device detects that the displacement of the drag operation movement is greater than the preset threshold, the target to be deleted may be further controlled to shake in the display interface with preset shake parameters (may include shake amplitude, shake frequency, and the like, and may be set according to an actual scene), so as to prompt the user that the condition for triggering the target deletion has been reached, and improve man-machine interaction in the target deletion process.
It can be seen that, in the method flow shown in fig. 1, the target deletion is triggered by dragging the drag button in the display interface, and when the target deletion is performed, the target to be deleted is controlled to move in the display interface according to the preset track until the target to be deleted disappears when reaching the designated position, so that the target deletion is completed, the man-machine interaction in the target deletion process is improved, and the operability of the terminal device is increased; in addition, as the displacement of the movement of the dragging operation is larger than the preset threshold value to trigger the target deletion, the occurrence of misoperation can be effectively avoided, and the controllability of the target deletion is improved.
Referring to fig. 2, a flowchart of another object deletion method according to an embodiment of the present application is shown in fig. 2, where the object deletion method may include the following steps:
step 200, when a drag operation for an operation button in a display interface is detected, acquiring a displacement of the drag operation, and displaying a line with a starting point being the operation button and matching with a moving track of the drag operation in the display interface in response to the drag operation.
In the embodiment of the present application, the initial state of the operation button may be a single operation button.
When the terminal equipment detects the drag operation aiming at the operation button in the display interface, the terminal equipment can acquire the displacement of the drag operation movement on one hand, and can respond to the drag operation on the other hand, a line with the starting point being the operation button and matched with the movement track of the drag operation is displayed in the display interface (the thickness of the line can be set according to actual requirements, such as 6 pixels, 8 pixels and the like), so that the man-machine interaction in the process of deleting the target is enhanced.
And S210, if the displacement of the dragging operation movement is larger than a preset threshold value when the dragging operation is finished, controlling the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when reaching a specified position. In the embodiment of the application, when the terminal device detects that the dragging operation for the operation button in the display interface is finished, for example, the finger of the user is separated from the operation button, or the user releases the mouse, the terminal device can compare the displacement of the dragging operation movement with a preset displacement threshold (the preset threshold can be set according to the actual scene, such as 75 pixels).
When the displacement of the drag operation movement is larger than a preset threshold, the terminal equipment can determine that a target deleting instruction is received, at the moment, the terminal equipment can control the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when reaching a designated position, and target deleting is completed.
Referring to fig. 3, a flowchart of another object deletion method according to an embodiment of the present application is shown in fig. 3, where the object deletion method may include the following steps:
and step S300, when the dragging operation of the operation button in the display interface is detected, acquiring the displacement of the dragging operation movement, responding to the dragging operation, controlling the operation button to move in the vertical direction according to the movement track of the dragging operation, and controlling a stay wire connected with the operation button to match the position of the operation button for stretching.
In the embodiment of the present application, the initial state of the operation button may be an operation button and a pull wire connected to the operation button.
When the terminal equipment detects the dragging operation aiming at the operation button in the display interface, the terminal equipment can acquire the displacement of the dragging operation movement on one hand, and can control the operation button to move in the vertical direction according to the movement track of the dragging operation on the other hand, and control the position of the stay wire connected with the operation button to stretch and retract.
For example, when the user holds the operation button with a finger and pulls the operation button downward, a pull wire connected to the operation button may be extended in accordance with the position of the operation button; when the user pushes the operation button by a finger to pull the operation button upwards, the stay wire connected with the operation button can stretch and retract according to the position of the operation button.
And step S310, if the displacement of the dragging operation movement is larger than a preset threshold value when the dragging operation is finished, controlling the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when reaching a specified position.
In the embodiment of the application, when the terminal device detects that the dragging operation for the operation button in the display interface is finished, for example, the finger of the user is separated from the operation button, or the user releases the mouse, the terminal device can compare the displacement of the dragging operation movement with a preset displacement threshold (the preset threshold can be set according to the actual scene, such as 75 pixels).
When the displacement of the drag operation movement is larger than a preset threshold, the terminal equipment can determine that a target deleting instruction is received, at the moment, the terminal equipment can control the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when reaching a designated position, and target deleting is completed.
In one example, as shown in fig. 4, after the step S300, the following steps may be further included:
step S301, the color of the stay wire display connected with the operation button is updated from the first color to the second color.
After the step S310, the method may further include the steps of: step S311, controlling the operation button and the stay wire connected with the operation button to return to the initial position, and updating the color displayed by the operation button and the stay wire connected with the operation button from the second color to the first color.
In the embodiment of the application, in order to more intuitively embody the response of the terminal equipment to the drag operation, when the drag operation of the operation button of the display interface is detected, the colors of the operation button and the stay wire connected with the operation button can be updated from the first color to the second color.
For example, the operation button and the pull wire connected to the operation button are updated from gray (i.e., the operation button and the pull wire connected to the operation button are gray (first color) in the initial state) to white (second color); alternatively, the operation button and the pull wire connected to the operation button are updated from green (i.e., the operation button and the pull wire connected to the operation button are green (first color) in the initial state) to red (second color).
When the drag operation is finished, the terminal device may control the operation button and the pull wire connected to the operation button to return to the initial position, and update the colors of the operation button and the pull wire connected to the operation button from the second color to the first color.
It should be noted that, in the embodiment of the present application, when the terminal device detects a drag operation for an operation button in the display interface, the operation button is controlled to move in a vertical direction according to a movement track of the drag operation, and the operation of matching a position of the operation button with a pull wire connected to the operation button to perform expansion and contraction is controlled, and there is no necessary timing relationship between the operation of updating the color of the operation button and the color of the pull wire connected to the operation button from a first color to a second color, i.e., the previous operation is performed before and the subsequent operation is performed according to the operation shown in fig. 4; or, the latter operation may be performed first, and then the former operation may be performed. Alternatively, these two operations may also be performed in parallel, and the specific implementation thereof will not be described herein.
Similarly, when the terminal device detects that the drag operation is finished, if the displacement of the drag operation is greater than the preset threshold, the object to be deleted is controlled to move in the display interface according to the preset track until the object to be deleted disappears when reaching the designated position, the operation button and the stay wire connected with the operation button are controlled to return to the initial position, the colors of the operation button and the stay wire connected with the operation button are updated from the second color to the first color, and no necessary time sequence relation exists between the operation button and the stay wire, namely the previous operation can be executed firstly and the later operation can be executed according to the diagram shown in fig. 4; or, the latter operation may be performed first, and then the former operation may be performed. Alternatively, these two operations may also be performed in parallel, and the specific implementation thereof will not be described herein.
In one example, the controlling the operation button and the pull wire connected to the operation button to return to the initial position may include:
if the displacement of the pulling operation movement is larger than the preset threshold value after the pulling operation is finished, controlling the operation button to vertically move upwards to an initial position, and controlling a stay wire connected with the operation button to restore to an initial length;
and if the displacement of the dragging operation is larger than zero and smaller than or equal to a preset threshold value after the dragging operation is finished, controlling the operation button to vibrate up and down by taking the initial position of the operation button as the center until the amplitude is reduced to zero, and controlling a stay wire connected with the operation button to match the up and down vibration of the control button to stretch.
For example, when the terminal device detects the end of the drag operation, in addition to determining whether or not to perform the target deletion in the above-described manner, the manner of controlling the operation button and the pull wire connected to the operation button to return to the initial position may be determined according to the displacement of the drag operation movement.
When the displacement of the drag operation movement is larger than the preset threshold, the terminal device can control the operation button to vertically move upwards to an initial position and control the stay wire connected with the operation button to restore to an initial length.
When the displacement of the dragging operation movement is larger than zero and smaller than or equal to the preset threshold, the terminal equipment can control the operation button and the stay wire connected with the operation button to gradually reduce the amplitude, and vibrate up and down by taking the initial position of the operation button as the center until the amplitude is reduced to zero (return to the initial position), and control the stay wire connected with the operation button to match with the up and down vibration of the control button to stretch (the vibration mode is similar to spring vibration), so that the operation interestingness is enhanced, and the man-machine interaction is improved.
In another possible embodiment of the present application, the target deletion method may further include:
when the target to be deleted exists in the display interface, displaying an operation button at a designated position of the display interface;
when the target to be deleted does not exist in the display interface, the operation button is hidden.
For example, in order to simplify the display interface of the terminal device, when there is an object to be deleted in the display interface, an operation button (may include a separate operation button or an operation button and a pull wire connected to the operation button) may be displayed at a designated position of the display interface; when the object to be deleted does not exist in the display interface, the operation button may be hidden.
In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, the technical solutions provided by the embodiments of the present application are described below with reference to specific examples.
In this embodiment, note deletion in brainstorming software is taken as an example.
Referring to fig. 5, when the PC side establishes a connection with the brain storm software running in the large-screen side device through the brain storm software, the large-screen side device may acquire the notes sent by the PC side and sequentially display the notes in a main interface (may be referred to as a note management interface) of the brain storm software.
As shown in fig. 5, in a normal state, the brain storm software can orderly display notes collected from the PC end from left to right and from top to bottom in the note management interface, and a certain gap is arranged between the notes.
To achieve the target delete (note delete in this embodiment), a circular drag button (i.e., an operation button) and a pull line (e.g., a pull line of 6 pixels wide by 190 pixels long) connected to the drag button may be created at the top left of the note management interface of the brainstorming software. In a normal state, the pulling button and the pulling wire are gray; if no note is displayed in the note management interface, the drag button and the pull wire are automatically hidden.
When the large screen end device detects that the user clicks the drag button by fingers, the drag button is set to be in a clicked state; when a user's finger drags over the note management interface, the system converts the finger movement event into a mouse left click movement event.
When the large screen end device monitors the left click movement event of the mouse, determining the position of a finger on the screen according to the position of the left click movement event of the mouse, vertically downwards moving a pull button to the position of the finger of a user by utilizing a drawing interface of a QT (graphical user interface application program), vertically downwards extending a pull wire to the position above the pull button, enabling the pull wire and the pull button to keep a connection state, and setting the colors of the pull wire and the pull button to be white (namely, updating the colors from gray to white); in addition, a delete tab is displayed at the lowest center of the note management interface, which indicates that dragging the pull wire downward can delete the note, and the schematic diagram can be shown in fig. 6.
In this embodiment, in order to secure program soundness, the drag button vertical movement range may be set to 0 to 150 pixels.
Acquiring the vertical movement length of the drag button in real time, and comparing the vertical movement length of the drag button with a preset threshold (assuming 75 pixels); wherein:
when the vertical movement length of the drag button is greater than 75 pixels and not greater than 150 pixels, setting a drawing interface to control notes displayed in the note management interface to shake random tracks between gaps of the notes and other notes, and setting shaking positions to enable the notes not to overlap with each other, wherein the drag button is released, and the notes can be deleted;
when the vertical movement length of the drag button is not more than 75 pixels and is more than 0 pixels, controlling a label displayed in the note management interface to remain motionless;
when the vertical movement length is more than 150 pixels or less than 0 pixels, the dragging button is controlled to keep the last movement position, the dragging button is not moved, and the pull wire is not stretched.
In this embodiment, when the large-screen end device detects that the movement operation of the drag button is finished, that is, when the user releases the touch effect between the finger and the screen, the large-screen end device monitors a mouse release event, at this time, the large-screen end device may calculate the vertical movement length of the drag button, where:
when the vertical movement length of the drag button is greater than 75 pixels, controlling the drag button to move upwards to an initial starting position, controlling the stay wire to shrink upwards to the initial length, setting the colors of the stay wire and the drag button to gray (namely updating from white to gray), calling a command for deleting all notes, and controlling the deleted notes to vertically fall into the lower boundary of the note management interface at random speed and disappear; after all the notes are deleted, the stay wire and the drag button are hidden; when a new note appears, redisplaying the stay wire and the drag button;
when the vertical movement length of the drag button is not more than 75 pixels, the drag button and the pull wire are controlled to return to the initial positions in a spring oscillating mode, and the colors of the pull wire and the drag button are set to gray (i.e. the color is updated from gray to white).
In this embodiment, when the end of the drag button moving operation is detected, the delete tab in the center below the note management interface may also be subjected to hiding processing.
In the embodiment of the application, the target deletion is triggered by dragging the drag button in the display interface, and when the target deletion is carried out, the target to be deleted is controlled to move in the display interface according to the preset track until the target to be deleted disappears when reaching the designated position, thus completing the target deletion, improving the man-machine interaction in the target deletion process and increasing the operability of the terminal equipment; in addition, as the displacement of the movement of the dragging operation is larger than the preset threshold value to trigger the target deletion, the occurrence of misoperation can be effectively avoided, and the controllability of the target deletion is improved.
The method provided by the application is described above. The device provided by the application is described below:
referring to fig. 7, a schematic structural diagram of a target deletion apparatus according to an embodiment of the present application is provided, where the target deletion apparatus may be applied to a terminal device in the foregoing method embodiment, and as shown in fig. 7, the target deletion apparatus may include: a detection unit 710, an acquisition unit 720, a judgment unit 730, and a control unit 740; wherein:
the acquisition unit 720 is configured to acquire a displacement of a movement of a drag operation when the detection unit 710 detects the drag operation for an operation button in a display interface;
the judging unit 730 is configured to judge, when the drag operation is finished, whether the displacement of the drag operation movement is greater than a preset threshold;
and the control unit 740 is configured to control the object to be deleted to move in the display interface according to a preset track until the object to be deleted disappears when the object to be deleted reaches the specified position if the displacement of the movement of the drag operation is greater than a preset threshold when the drag operation is finished.
In an alternative embodiment, as shown in fig. 8, the apparatus further includes:
and a first display unit 750 for displaying a line having a start point of the operation button and matching a movement trace of the drag operation in the display interface in response to the drag operation.
In an alternative embodiment, the control unit 740 is further configured to control, in response to the pulling operation, the operation button to move in a vertical direction according to a movement track of the pulling operation, and control a pull wire connected to the operation button to extend and retract in accordance with a position of the operation button.
In an alternative embodiment, as shown in fig. 9, the apparatus further includes:
a color updating unit 760 for updating the colors of the operation buttons and the pull wires connected to the operation buttons from a first color to a second color when the detection unit 710 detects a drag operation for the operation buttons in the display interface;
the control unit 740 is further configured to control the operation button and the pull wire connected to the operation button to return to an initial position when the detection unit 710 detects that the pulling operation is finished;
the color updating unit 760 is further configured to update the color of the operation button and the pull wire connected to the operation button from the second color to the first color.
In an alternative embodiment, the control unit 740 is specifically configured to control the operation button to move vertically upwards to an initial position and control the pull wire connected to the operation button to return to an initial length if the displacement of the pulling operation movement is greater than the preset threshold when the pulling operation is ended; and if the displacement of the dragging operation is larger than zero and smaller than or equal to the preset threshold value after the dragging operation is finished, controlling the operation button to gradually reduce the amplitude, vibrating up and down by taking the initial position of the operation button as the center until the amplitude is reduced to zero, and controlling a stay wire connected with the operation button to match the up and down vibration of the control button to stretch.
In an alternative embodiment, as shown in fig. 10, the apparatus further includes:
a second display unit 770 configured to display the operation button at a designated position of the display interface when an object to be deleted exists in the display interface; and hiding the operation button when the target to be deleted does not exist in the display interface.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. The electronic device may include a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104. The processor 1101, communication interface 1102 and memory 1103 accomplish communication with each other through a communication bus 1104. Wherein the memory 1103 has stored thereon a computer program; the processor 1101 can execute the above-described target deletion method by executing a program stored on the memory 1103.
The memory 1103 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information, such as executable instructions, data, or the like. For example, the memory 1103 may be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, a storage drive (e.g., hard drive), a solid state drive, any type of storage disk (e.g., optical disk, dvd, etc.), or a similar storage medium, or a combination thereof.
Embodiments of the present application also provide a machine-readable storage medium, such as the memory 1103 in fig. 11, storing a computer program executable by the processor 1101 in the electronic device shown in fig. 11 to implement the target deletion method described above.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the application.

Claims (12)

1. A method for deleting a target, comprising:
when a drag operation for an operation button in a display interface is detected, acquiring a displacement of the drag operation movement; the operation button is a newly added function button for triggering target deletion;
and if the displacement of the movement of the dragging operation is larger than a preset threshold value when the dragging operation is finished, controlling the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when the target to be deleted reaches a specified position.
2. The method of claim 1, wherein when a drag operation for an operation button in a display interface is detected, the method further comprises:
and responding to the dragging operation, and displaying a line which has the starting point of the operation button and is matched with the moving track of the dragging operation in the display interface.
3. The method of claim 1, wherein when a drag operation for an operation button in a display interface is detected, the method further comprises:
and responding to the dragging operation, controlling the operation button to move in the vertical direction according to the moving track of the dragging operation, and controlling a stay wire connected with the operation button to match the position of the operation button for stretching.
4. A method according to claim 3, wherein when a drag operation for an operation button in a display interface is detected, the method further comprises:
updating the colors of the operation buttons and the stay wires connected with the operation buttons from a first color to a second color;
when the pulling operation is finished, the method further comprises:
and controlling the operation button and the stay wire connected with the operation button to return to an initial position, and updating the colors of the operation button and the stay wire connected with the operation button from the second color to the first color.
5. The method of claim 4, wherein controlling the operating button and the pull wire connected to the operating button to return to an initial position comprises:
if the displacement of the pulling operation movement is larger than the preset threshold value when the pulling operation is finished, controlling the operation button to vertically move upwards to an initial position, and controlling a stay wire connected with the operation button to restore to an initial length;
and if the displacement of the dragging operation is larger than zero and smaller than or equal to the preset threshold value after the dragging operation is finished, controlling the operation button to gradually reduce the amplitude, vibrating up and down by taking the initial position of the operation button as the center until the amplitude is reduced to zero, and controlling a stay wire connected with the operation button to match the up and down vibration of the operation button to stretch.
6. The method according to claim 1, wherein the method further comprises:
when the target to be deleted exists in the display interface, displaying the operation button at a designated position of the display interface;
and hiding the operation button when the target to be deleted does not exist in the display interface.
7. A target deleting apparatus, comprising: the device comprises a detection unit, an acquisition unit, a judgment unit and a control unit; wherein:
the acquisition unit is used for acquiring displacement of the dragging operation movement when the detection unit detects the dragging operation of the operation button in the display interface; the operation button is a newly added function button for triggering target deletion;
the judging unit is used for judging whether the displacement of the dragging operation movement is larger than a preset threshold value or not when the dragging operation is finished;
and the control unit is used for controlling the target to be deleted to move in the display interface according to a preset track until the target to be deleted disappears when the target to be deleted reaches a specified position if the displacement of the movement of the dragging operation is larger than a preset threshold value when the dragging operation is finished.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the first display unit is used for responding to the dragging operation and displaying a line which has the starting point of the operation button and is matched with the moving track of the dragging operation in the display interface.
9. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the control unit is also used for responding to the dragging operation, controlling the operation button to move in the vertical direction according to the moving track of the dragging operation, and controlling a stay wire connected with the operation button to match the position of the operation button for stretching.
10. The apparatus of claim 9, wherein the apparatus further comprises:
a color updating unit configured to update, when the detection unit detects a drag operation for an operation button in a display interface, a color of the operation button and a pull wire connected to the operation button from a first color to a second color;
the control unit is also used for controlling the operation button and a stay wire connected with the operation button to return to an initial position when the detection unit detects that the dragging operation is finished;
the color updating unit is further used for updating the colors of the operation button and the stay wire connected with the operation button from the second color to the first color.
11. The apparatus of claim 10, wherein the device comprises a plurality of sensors,
the control unit is specifically configured to control the operation button to move vertically upwards to an initial position and control a pull wire connected with the operation button to restore to an initial length if the displacement of the pulling operation movement is greater than the preset threshold when the pulling operation is finished; and if the displacement of the dragging operation is larger than zero and smaller than or equal to the preset threshold value after the dragging operation is finished, controlling the operation button to gradually reduce the amplitude, vibrating up and down by taking the initial position of the operation button as the center until the amplitude is reduced to zero, and controlling a stay wire connected with the operation button to match the up and down vibration of the operation button to stretch.
12. The apparatus of claim 7, wherein the apparatus further comprises:
a second display unit, configured to display the operation button at a specified position of the display interface when a target to be deleted exists in the display interface; and hiding the operation button when the target to be deleted does not exist in the display interface.
CN201910465608.4A 2019-05-30 2019-05-30 Target deleting method and device Active CN111427587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910465608.4A CN111427587B (en) 2019-05-30 2019-05-30 Target deleting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910465608.4A CN111427587B (en) 2019-05-30 2019-05-30 Target deleting method and device

Publications (2)

Publication Number Publication Date
CN111427587A CN111427587A (en) 2020-07-17
CN111427587B true CN111427587B (en) 2023-08-29

Family

ID=71546751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910465608.4A Active CN111427587B (en) 2019-05-30 2019-05-30 Target deleting method and device

Country Status (1)

Country Link
CN (1) CN111427587B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968277A (en) * 2012-11-30 2013-03-13 北京小米科技有限责任公司 Method and device for deleting or cutting file based on touch screen
CN103186339A (en) * 2011-12-31 2013-07-03 联想(北京)有限公司 Input method and electronic equipment provided with virtual keyboard
WO2014103388A1 (en) * 2012-12-27 2014-07-03 株式会社 東芝 Electronic device, display method, and program
CN104360812A (en) * 2014-10-30 2015-02-18 北京元心科技有限公司 Sliding unlocking method and device
CN105824677A (en) * 2016-04-18 2016-08-03 徐亚萍 Method for deleting installation packages based on user operation data
CN106033307A (en) * 2015-03-11 2016-10-19 青岛海信移动通信技术股份有限公司 A mail deleting method and a terminal device
CN106250757A (en) * 2016-07-29 2016-12-21 维沃移动通信有限公司 The control method of a kind of application program and mobile terminal
CN106293480A (en) * 2016-08-23 2017-01-04 北京小米移动软件有限公司 Operation performs method and device
CN106648280A (en) * 2015-10-28 2017-05-10 腾讯科技(深圳)有限公司 Task management interaction method and device
CN106843710A (en) * 2015-12-04 2017-06-13 程喜庆 A kind of method that editor is slided on touch-screen
CN107205090A (en) * 2017-05-31 2017-09-26 深圳酷比通信股份有限公司 Reminding method, system and the intelligent terminal of intelligent terminal application message
CN107479786A (en) * 2017-07-28 2017-12-15 珠海市魅族科技有限公司 A kind of method, apparatus, computer installation and computer-readable recording medium for deleting text
WO2018219261A1 (en) * 2017-06-01 2018-12-06 腾讯科技(深圳)有限公司 Text recombination method and device, terminal device, and computer-readable storage medium
CN109298790A (en) * 2018-10-11 2019-02-01 科大讯飞股份有限公司 Character deleting method and device
WO2019089443A1 (en) * 2017-10-30 2019-05-09 Hitachi Vantara Corporation Generating code for deploying cloud infrastructure

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030084436A1 (en) * 2001-10-30 2003-05-01 Joubert Berger System and method for installing applications in a trusted environment
JP6685695B2 (en) * 2015-10-30 2020-04-22 キヤノン株式会社 Terminal and imaging device
US11550467B2 (en) * 2017-05-16 2023-01-10 Apple Inc. Device, method, and graphical user interface for managing data stored on a device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186339A (en) * 2011-12-31 2013-07-03 联想(北京)有限公司 Input method and electronic equipment provided with virtual keyboard
CN102968277A (en) * 2012-11-30 2013-03-13 北京小米科技有限责任公司 Method and device for deleting or cutting file based on touch screen
WO2014103388A1 (en) * 2012-12-27 2014-07-03 株式会社 東芝 Electronic device, display method, and program
CN104360812A (en) * 2014-10-30 2015-02-18 北京元心科技有限公司 Sliding unlocking method and device
CN106033307A (en) * 2015-03-11 2016-10-19 青岛海信移动通信技术股份有限公司 A mail deleting method and a terminal device
CN106648280A (en) * 2015-10-28 2017-05-10 腾讯科技(深圳)有限公司 Task management interaction method and device
CN106843710A (en) * 2015-12-04 2017-06-13 程喜庆 A kind of method that editor is slided on touch-screen
CN105824677A (en) * 2016-04-18 2016-08-03 徐亚萍 Method for deleting installation packages based on user operation data
CN106250757A (en) * 2016-07-29 2016-12-21 维沃移动通信有限公司 The control method of a kind of application program and mobile terminal
CN106293480A (en) * 2016-08-23 2017-01-04 北京小米移动软件有限公司 Operation performs method and device
CN107205090A (en) * 2017-05-31 2017-09-26 深圳酷比通信股份有限公司 Reminding method, system and the intelligent terminal of intelligent terminal application message
WO2018219261A1 (en) * 2017-06-01 2018-12-06 腾讯科技(深圳)有限公司 Text recombination method and device, terminal device, and computer-readable storage medium
CN107479786A (en) * 2017-07-28 2017-12-15 珠海市魅族科技有限公司 A kind of method, apparatus, computer installation and computer-readable recording medium for deleting text
WO2019089443A1 (en) * 2017-10-30 2019-05-09 Hitachi Vantara Corporation Generating code for deploying cloud infrastructure
CN109298790A (en) * 2018-10-11 2019-02-01 科大讯飞股份有限公司 Character deleting method and device

Also Published As

Publication number Publication date
CN111427587A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
US11836327B2 (en) Application window divider control for window layout management
US11921978B2 (en) Devices, methods, and graphical user interfaces for navigating, displaying, and editing media items with multiple display modes
AU2020289876B2 (en) Tactile feedback for user interfaces
US11747975B2 (en) Devices, methods, and graphical user interfaces for touch input processing
US20230229293A1 (en) Method, apparatus, and terminal for processing notification information
US11256333B2 (en) Closing, starting, and restarting applications
US20180011619A1 (en) Systems and methods for adaptive gesture recognition
CN105573740B (en) Split screen display mode operation method and terminal
EP2523086A1 (en) Method and device for window object inertial movement
DE202016001513U1 (en) Device and user interface for processing an intensity of touch contacts
CN105549814B (en) Photographing method based on mobile terminal and mobile terminal
WO2015183503A2 (en) Safari tab and private browsing ui enhancement
CN106933468A (en) A kind of user interface switching method and terminal
EP2987064A1 (en) Deferred placement prompt
KR20210089799A (en) Systems and methods for interacting with multiple applications that are simultaneously displayed on an electronic device with a touch-sensitive display
WO2017166858A1 (en) Method and device for reversely controlling mobile page
CN111427587B (en) Target deleting method and device
JP6176907B2 (en) Information processing apparatus, control method therefor, and program
CN108815843B (en) Control method and device of virtual rocker
EP4307116A1 (en) Cross-process information processing method, and controller, terminal and storage medium
CN110244889A (en) Picture Zoom method, device, terminal and storage medium
CN114995713A (en) Display control method and device, electronic equipment and readable storage medium
CN111104041A (en) Gesture operation recognition method
CN112764622A (en) Icon moving method and device and electronic equipment
JP5762075B2 (en) Information processing apparatus, information processing method, and program

Legal Events

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