Skip to content

elevenetc/DraggableView

Repository files navigation

DraggableView

Draggable views with rotation and skew/scale effects.

animation animation

Usage

  1. Implement DragController.IDragViewGroup
  2. Create instance of DragController
  3. Override onTouchEvent of your ViewGroup and call DragController#onTouchEvent:
@Override public boolean onTouchEvent(MotionEvent event) {
	return dragController.onTouchEvent(event);
}

See full sample at SampleGridContainer

Animation adjustments

SkewView and RotateView containe multipliers which change rotation, skew and scale values.

Download

repositories {
    maven { url "https://jitpack.io" }
}
//...
dependencies {
    //...
    compile 'com.github.elevenetc:draggableview:v1.0.1'
}

Licence

http://www.apache.org/licenses/LICENSE-2.0