@Override
          public void onClick(View v) {
            if (animatedDrawable.isRunning()) {
              animatedDrawable.stop();
            } else {
              animatedDrawable.start();
            }
          }
Simple standalone activity that creates a new {@link AnimatedDrawable2} and a custom backend that
cycles through colors. Tap the view to start / stop the animation.

<p>When the animation is inactive for more than 2 seconds (no new frames drawn), a toast message
will be displayed.
samples/animation2/src/main/java/com/facebook/samples/animation2/color/SimpleColorFragment.java