• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2010 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.videoeditor.widgets;
18 
19 import android.view.MotionEvent;
20 import android.view.View;
21 
22 /**
23  * A gesture listener which specializes in move events
24  */
25 interface ItemMoveGestureListener extends ItemSimpleGestureListener {
26     /**
27      * Move begin
28      *
29      * @param view The view
30      * @param e The beginning position
31      *
32      * @return true if the moving should continue
33      */
onMoveBegin(View view, MotionEvent e)34     public boolean onMoveBegin(View view, MotionEvent e);
35 
36     /**
37      * Move
38      *
39      * @param view The view
40      * @param e1 The beginning position
41      * @param e2 The end position
42      *
43      * @return true if the moving should continue
44      */
onMove(View view, MotionEvent e1, MotionEvent e2)45     public boolean onMove(View view, MotionEvent e1, MotionEvent e2);
46 
47     /**
48      * Move end
49      *
50      * @param view The view
51      */
onMoveEnd(View view)52     public void onMoveEnd(View view);
53 }
54