FileDocCategorySizeDatePackage
MainView.javaAPI DocAndroid 5.1 API1560Thu Mar 12 22:22:42 GMT 2015com.android.test.hwuicompare

MainView

public class MainView extends android.view.View

Fields Summary
android.graphics.Paint
mPaint
private Runnable
mDrawCallback
Constructors Summary
public MainView(android.content.Context context)


       
        super(context);
    
public MainView(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
    
public MainView(android.content.Context context, android.util.AttributeSet attrs, int defStyle)

        super(context, attrs, defStyle);
    
Methods Summary
public voidaddDrawCallback(java.lang.Runnable drawCallback)

        mDrawCallback = drawCallback;
    
protected voidonDraw(android.graphics.Canvas canvas)

        super.onDraw(canvas);

        mPaint.reset();
        DisplayModifier.apply(mPaint, canvas);

        if (mDrawCallback != null) {
            mDrawCallback.run();
        }