ViewSpline.PathRotate


public class ViewSpline.PathRotate extends ViewSpline


Summary

Public constructors

Public methods

void
setPathRotate(View view, float t, double dx, double dy)

Use to set the rotation relative to the path

void
setProperty(View view, float t)

the main interface to setting a view property

Inherited methods

From androidx.constraintlayout.core.motion.utils.SplineSet
float
get(float t)
CurveFit
float
getSlope(float t)
static SplineSet
static SplineSet
static SplineSet
makeSpline(String str, long currentTime)
void
setPoint(int position, float value)
void
setProperty(TypedValues widget, float t)
void
void
setup(int curveType)
String
From androidx.constraintlayout.motion.utils.ViewSpline

Public constructors

PathRotate

Added in 2.2.0
public PathRotate()

Public methods

setPathRotate

Added in 2.2.0
public void setPathRotate(View view, float t, double dx, double dy)

Use to set the rotation relative to the path

Parameters
View view

the view to set

float t

the time point

double dx

the path velocity in x

double dy

the path velocity in y

setProperty

Added in 2.2.0
public void setProperty(View view, float t)

the main interface to setting a view property

Parameters
View view

the view

float t

the point of time