FileDocCategorySizeDatePackage
VectorDrawableAnimation.javaAPI DocAndroid 5.1 API1613Thu Mar 12 22:22:44 GMT 2015com.android.test.dynamic

VectorDrawableAnimation

public class VectorDrawableAnimation extends android.app.Activity

Fields Summary
private static final String
LOGCAT
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)


    
        
        super.onCreate(savedInstanceState);

        final Button button = new Button(this);
        button.setBackgroundResource(R.drawable.animation_drawable_vector);

        button.setOnClickListener(new View.OnClickListener() {
                @Override
            public void onClick(View v) {
                AnimationDrawable frameAnimation = (AnimationDrawable) v.getBackground();
                // Start the animation (looped playback by default).
                frameAnimation.start();
            }
        });

        setContentView(button);