Code example for OvalShape

Methods: resize

0
		super.onCreate(savedInstanceState);
 
		Shape shape;
 
    	/* Setup shape */ 
        shape = new OvalShape();
        shape.resize(50, 50);
 
    	/* Setup drawable */ 
		myShapeDrawable = new ShapeDrawable(shape);
		myShapeDrawable.getPaint().set(paint);
		myShapeDrawable.setBounds(125, 225, 275, 375);
 
    	/* Setup view (which will draw our drawable) */ 
		final MyView myView = new MyView(this);
		setContentView(myView);
 
		/* Setup Animator (NOTE: We are actually object of our custom class!) */ 
		ObjectAnimator a = ObjectAnimator.ofFloat(o, "prop", -250, 250);
		a.setDuration(10000);
		a.setInterpolator(new BounceInterpolator());