• Stars
    star
    561
  • Rank 79,400 (Top 2 %)
  • Language
    Java
  • Created about 9 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Draggable views with rotation and skew/scale effects

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