class CircularDrawable extends Drawable {

	@Override
	protected void onBoundsChange(Rect bounds) {
		super.onBoundsChange(bounds);
		centerX = bitmap.getWidth()/2f;
		centerY = bitmap.getHeight()/2f;

		float diameterMinX = Math.min(diameter, bitmap.getWidth());
		float diameterMinY = Math.min(diameter, bitmap.getHeight());
		matrix.reset();
		matrix.setTranslate(-centerX + diameterMinX / 2, -centerY + diameterMinY / 2);
		shader.setLocalMatrix(matrix);
	}

	public  CircularDrawable(Bitmap bitmap);
	public  CircularDrawable(Bitmap bitmap, float explicitDiameter);

}