Exemplos de uso de Drag events em Inglês e suas traduções para o Português
{-}
-
Colloquial
-
Official
-
Medicine
-
Financial
-
Ecclesiastic
-
Ecclesiastic
-
Computer
-
Official/political
This tells the system to start sending drag events.
All drag events are initially received by your drag event method or listener.
Only registered listeners continue to receive drag events.
If the listener wants to continue receiving drag events for this operation, it must return boolean true to the system.
Drop zone on"Repositories" view now responds to drag events, again.
During the drag, listeners primarily use drag events to decide if they should change the appearance of their View.
The following code snippet is a simple example of reacting to drag events in a listener.
To continue to receive drag events, including a possible drop event, a drag event listener must return true.
This tells the system to continue to send drag events to the listener.
During the drag, listeners that returned true in response to the ACTION_DRAG_STARTED drag event continue to receive drag events.
The event is sent to every listener that is registered to receive drag events, even if the listener received the ACTION_DROP event. .
The system does allow the user to release the drag shadow on a View whose listener is not receiving drag events.
During the drag operation,the system dispatches drag events to the drag event listeners of the View objects in the current layout.
Note that this step only occurs if the user drops the drag shadow within the bounding box of a View whose listener is registered to receive drag events.
During the drag, the system sends drag events to the drag event listeners or callback methods of each View in the layout.
If it can't accept a drop, it should return false, andthe system will stop sending drag events until it sends out ACTION_DRAG_ENDED.
The types of drag events a listener receives during the drag depend on the location of the drag shadow and the visibility of the listener's View.
Note: For the sake of simplicity,the following sections refer to the routine that receives drag events as the"drag event listener", even though it may actually be a callback method.
If the drag event listener returns false, then it will not receive drag events for the current operation until the system sends a drag event with action type ACTION_DRAG_ENDED.
As the drag shadow intersects the bounding box of a View object,the system sends one or more drag events to the View object's drag event listener if it is registered to receive events. .
As the user's finger moves this representation(a"drag shadow") over the current layout,the system sends drag events to the drag event listener objects and drag event callback methods associated with the View objects in the layout.
A View object's drag event listener receives this event action type just after the application calls startDrag() and gets a drag shadow.
A View object's drag event listener receives this event action type when the system is ending the drag operation.
If the user releases the drag shadow in any other situation, no ACTION_DROP drag event is sent.
A View object's drag event listener receives this event action type after it receives a ACTION_DRAG_ENTERED event while the drag shadow is still within the bounding box of the View.
Both of these are described in more detail in the section The drag event listener and callback method.
The drag event contains the data that was passed to the system in the call to startDrag() that started the operation.
If the user drops the data over a View object, and that View object's listener or callback method has previously told the system that it wants to accept the drop, then the system sends the data to the listener orcallback method in a drag event.
Next, the system sends a drag event with action type ACTION_DRAG_STARTED to the drag event listeners for all the View objects in the current layout.