super.onCreate(savedInstanceState);
final LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
View view = new PathView(this);
layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE));
view = new PathView(this);
view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE));
setContentView(layout);