FileDocCategorySizeDatePackage
MaxBitmapSizeActivity.javaAPI DocAndroid 5.1 API1945Thu Mar 12 22:22:44 GMT 2015com.android.test.hwui

MaxBitmapSizeActivity

public class MaxBitmapSizeActivity extends android.app.Activity

Fields Summary
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        
        final LinearLayout layout = new LinearLayout(this);

        CanvasView view = new CanvasView(this);
        layout.addView(view, new LinearLayout.LayoutParams(200, 200));

        view = new CanvasView(this);
        view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
        layout.addView(view, new LinearLayout.LayoutParams(200, 200));

        setContentView(layout);