DraggableView
Draggable views with rotation and skew/scale effects.
Usage
- Implement
DragController.IDragViewGroup
- Create instance of
DragController
- Override
onTouchEvent
of yourViewGroup
and callDragController#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'
}