super.onCreate(savedInstanceState);
DirtyBitmapView container = new DirtyBitmapView(this);
ColorView color = new ColorView(this);
container.addView(color, new DirtyBitmapView.LayoutParams(
dipToPx(this, 100), dipToPx(this, 100), Gravity.CENTER));
AlphaAnimation a = new AlphaAnimation(1.0f, 0.0f);
a.setDuration(2000);
a.setRepeatCount(Animation.INFINITE);
a.setRepeatMode(Animation.REVERSE);
color.startAnimation(a);
setContentView(container);