본문 바로가기

Android

how do I smoothly fade the background from one color to another?

http://stackoverflow.com/questions/5200811/in-android-how-do-i-smoothly-fade-the-background-from-one-color-to-another-ho


ObjectAnimator colorFade = ObjectAnimator.ofObject(screen, "backgroundColor", new ArgbEvaluator(), 0xffff0000 0xff000000);
colorFade.setDuration(1000);
colorFade.start();