diff --git a/CHANGELOG.md b/CHANGELOG.md index d992cd2..77ab660 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,167 @@ -# release-candidate +# 1.0.0 - TODO: Enumerate changes. +## New features + +New gesture recognizers for drag, scale, and rotate. + +## Source changes + +* [Move gesture recognizers out from direct-manipulation-android into its own repo.](https://github.com/material-motion/gestures-android/commit/25c61043d739ab1440cff59624bb137c9cbd6514) (Mark Wei) + +## API changes + +Auto-generated by running: + + apidiff origin/stable release-candidate android library + +## DragGestureRecognizer + +*new* class: `DragGestureRecognizer` + +*new* constructor: `DragGestureRecognizer()` + +*new* field: `int dragSlop` + +*new* method: `float getTranslationX()` + +*new* method: `float getTranslationY()` + +*new* method: `float getUntransformedCentroidX()` + +*new* method: `float getUntransformedCentroidY()` + +*new* method: `float getVelocityX()` + +*new* method: `float getVelocityY()` + +*new* method: `boolean onTouchEvent(MotionEvent)` + +*new* method: `void setElement(View)` + + +## GestureRecognizer + +*new* abstract class: `GestureRecognizer` + +*new* constructor: `GestureRecognizer()` + +*new* static final field: `int BEGAN` + +*new* static final field: `int CANCELLED` + +*new* static final field: `int CHANGED` + +*new* static final field: `int POSSIBLE` + +*new* static final field: `int RECOGNIZED` + +*new* method: `void addStateChangeListener(GestureStateChangeListener)` + +*new* final method: `float getCentroidX()` + +*new* final method: `float getCentroidY()` + +*new* method: `View getElement()` + +*new* method: `int getState()` + +*new* static method: `void getTransformationMatrix(View, Matrix, Matrix)` + +*new* abstract method: `float getUntransformedCentroidX()` + +*new* abstract method: `float getUntransformedCentroidY()` + +*new* abstract method: `boolean onTouchEvent(MotionEvent)` + +*new* method: `void removeStateChangeListener(GestureStateChangeListener)` + +*new* method: `void setElement(View)` + + +## GestureRecognizerState + +*new* annotation: `@GestureRecognizerState` + + +## GestureStateChangeListener + +*new* interface: `GestureStateChangeListener` + +*new* method: `void onStateChanged(GestureRecognizer)` + + +## Library + +*removed* class: `Library` + +*removed* constructor: `Library()` + +*removed* static final field: `String LIBRARY_NAME` + + +## RotateGestureRecognizer + +*new* class: `RotateGestureRecognizer` + +*new* constructor: `RotateGestureRecognizer()` + +*new* field: `float rotateSlop` + +*new* method: `float getRotation()` + +*new* method: `float getUntransformedCentroidX()` + +*new* method: `float getUntransformedCentroidY()` + +*new* method: `float getVelocity()` + +*new* method: `boolean onTouchEvent(MotionEvent)` + +*new* method: `void setElement(View)` + + +## ScaleGestureRecognizer + +*new* class: `ScaleGestureRecognizer` + +*new* constructor: `ScaleGestureRecognizer()` + +*new* field: `int scaleSlop` + +*new* method: `float getScale()` + +*new* method: `float getUntransformedCentroidX()` + +*new* method: `float getUntransformedCentroidY()` + +*new* method: `float getVelocity()` + +*new* method: `boolean onTouchEvent(MotionEvent)` + +*new* method: `void setElement(View)` + + +## AccumulationType + +*new* annotation: `@AccumulationType` + + +## SimulatedGestureRecognizer + +*new* class: `SimulatedGestureRecognizer` + +*new* constructor: `SimulatedGestureRecognizer(View)` + +*new* method: `float getUntransformedCentroidX()` + +*new* method: `float getUntransformedCentroidY()` + +*new* method: `boolean onTouchEvent(MotionEvent)` + +*new* method: `void setState(int)` + + + +## Non-source changes + +* [Automatic changelog preparation for release.](https://github.com/material-motion/gestures-android/commit/d0a177c370d004378e2d1b417de3f16885a4f344) (Mark Wei)