FileDocCategorySizeDatePackage
MockView.javaAPI DocAndroid 1.5 API1364Wed May 06 22:42:02 BST 2009com.android.layoutlib.bridge

MockView

public class MockView extends android.widget.TextView
Base class for mocked views. TODO: implement onDraw and draw a rectangle in a random color with the name of the class (or better the id of the view).

Fields Summary
Constructors Summary
public MockView(android.content.Context context, android.util.AttributeSet attrs, int defStyle)

        super(context, attrs, defStyle);
        
        setText(this.getClass().getSimpleName());
        setTextColor(0xFF000000);
    
Methods Summary
public voidonDraw(android.graphics.Canvas canvas)

        canvas.drawARGB(0xFF, 0x7F, 0x7F, 0x7F);

        super.onDraw(canvas);