MockView

public class MockView
extends View

java.lang.Object
   ↳ android.view.View
     ↳ android.support.constraint.utils.MockView


Added in 2.0

Basic view that can draw a label (by default the view id), along with diagonals. Useful as a temporary mock view while building up a UI.

Summary

Inherited constants

Inherited fields

Public constructors

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

Public methods

void onDraw(Canvas canvas)

Inherited methods

Public constructors

MockView

public MockView (Context context)

Parameters
context Context

MockView

public MockView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

MockView

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

Parameters
context Context

attrs AttributeSet

defStyleAttr int

Public methods

onDraw

public void onDraw (Canvas canvas)

Parameters
canvas Canvas