Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

MockView

public class MockView
extends View

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


A view that is useful for prototyping layouts. 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

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