Beispiel #1
0
 public DragNDropLayout(Context context, AttributeSet attrs, int defStyle) {
   super(context, attrs, defStyle);
   mContext = context;
   mDragController = new DragController(context);
   mDragController.setDragListener(this);
   mScaleFactor = 1.0f;
   scaleDetector = new ScaleGestureDetector(context, new ScaleListener());
   detector = new GestureDetector(context, new FlingListener());
 }