public class CorneredSort extends SortFunction
Modifier and Type | Class and Description |
---|---|
static class |
CorneredSort.Corner |
Constructor and Description |
---|
CorneredSort(long interObjectDelay,
boolean reversed,
CorneredSort.Corner corner)
Animates views in a corner like fashion.
|
Modifier and Type | Method and Description |
---|---|
double |
getDistanceBetweenPoints(android.graphics.PointF left,
android.graphics.PointF right)
Find the double value of the distance between two points.
|
android.graphics.PointF |
getDistancePoint(android.view.ViewGroup parent,
java.util.List<android.view.View> children)
Get the point that's closest to the start point
|
java.util.List<SpruceTimedView> |
getViewListWithTimeOffsets(android.view.ViewGroup parent,
java.util.List<android.view.View> children)
Get a list of SpruceTimedView
|
public CorneredSort(long interObjectDelay, boolean reversed, CorneredSort.Corner corner)
interObjectDelay
- long delay between objectsreversed
- booleancorner
- Corner enum value corner
public java.util.List<SpruceTimedView> getViewListWithTimeOffsets(android.view.ViewGroup parent, java.util.List<android.view.View> children)
SortFunction
parent
- ViewGroup parent of the collection of child viewschildren
- List of views to be animatedpublic android.graphics.PointF getDistancePoint(android.view.ViewGroup parent, java.util.List<android.view.View> children)
children
- List of views to sort by distancepublic double getDistanceBetweenPoints(android.graphics.PointF left, android.graphics.PointF right)
euclideanDistance
method.left
- PointFright
- PointF