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);