Code example for Paint

Methods: set

0
        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());
 
		a.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
        	/* Listen to the update event */ 
			@Override 
			public void onAnimationUpdate(ValueAnimator va) {