MotionTelltales

public class MotionTelltales
extends MockView

java.lang.Object
   ↳ android.view.View
     ↳ androidx.constraintlayout.utils.widget.MockView
       ↳ androidx.constraintlayout.utils.widget.MotionTelltales


A view that is useful for prototyping layouts. Added in 2.0

This view works with MotionLayout to demonstrate the motion of 25 points on the view. It is based on MockView which draws a label (by default the view id), along with diagonals. Useful as a deeper understanding of the motion of a view in a MotionLayout

Summary

Inherited constants

Inherited fields

Public constructors

MotionTelltales(Context context)
MotionTelltales(Context context, AttributeSet attrs)
MotionTelltales(Context context, AttributeSet attrs, int defStyleAttr)

Public methods

void onDraw(Canvas canvas)
void setText(CharSequence text)

Protected methods

void onAttachedToWindow()
void onLayout(boolean changed, int left, int top, int right, int bottom)

Inherited methods

Public constructors

MotionTelltales

public MotionTelltales (Context context)

Parameters
context Context

MotionTelltales

public MotionTelltales (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

MotionTelltales

public MotionTelltales (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

Public methods

onDraw

public void onDraw (Canvas canvas)

Parameters
canvas Canvas

setText

public void setText (CharSequence text)

Parameters
text CharSequence

Protected methods

onAttachedToWindow

protected void onAttachedToWindow ()

onLayout

protected void onLayout (boolean changed, 
                int left, 
                int top, 
                int right, 
                int bottom)

Parameters
changed boolean

left int

top int

right int

bottom int