13cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Leepackage com.android.dialer.list; 23cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee 33cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee 43cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee/** 53cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * Classes that want to receive callbacks in response to drag events should implement this 63cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * interface. 73cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee */ 83cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Leepublic interface OnDragDropListener { 93cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee /** 103cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * Called when a drag is started. 113cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * @param x X-coordinate of the drag event 123cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * @param y Y-coordinate of the drag event 133cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * @param view The contact tile which the drag was started on 143cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee */ 15efb2d9c2e32ca4ed434ff785c4b3d18c9e08db6dYorke Lee public void onDragStarted(int x, int y, PhoneFavoriteSquareTileView view); 163cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee 173cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee /** 183cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * Called when a drag is in progress and the user moves the dragged contact to a 193cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * location. 20efb2d9c2e32ca4ed434ff785c4b3d18c9e08db6dYorke Lee * 213cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * @param x X-coordinate of the drag event 223cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * @param y Y-coordinate of the drag event 23efb2d9c2e32ca4ed434ff785c4b3d18c9e08db6dYorke Lee * @param view Contact tile in the ListView which is currently being displaced 24efb2d9c2e32ca4ed434ff785c4b3d18c9e08db6dYorke Lee * by the dragged contact 253cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee */ 26efb2d9c2e32ca4ed434ff785c4b3d18c9e08db6dYorke Lee public void onDragHovered(int x, int y, PhoneFavoriteSquareTileView view); 273cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee 283cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee /** 293cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * Called when a drag is completed (whether by dropping it somewhere or simply by dragging 303cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * the contact off the screen) 313cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * @param x X-coordinate of the drag event 323cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * @param y Y-coordinate of the drag event 333cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee */ 343cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee public void onDragFinished(int x, int y); 353cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee 363cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee /** 373cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * Called when a contact has been dropped on the remove view, indicating that the user 383cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee * wants to remove this contact. 393cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee */ 403cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee public void onDroppedOnRemove(); 413cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1Yorke Lee}