FileDocCategorySizeDatePackage
LinesActivity.javaAPI DocAndroid 5.1 API5826Thu Mar 12 22:22:44 GMT 2015com.android.test.hwui

LinesActivity

public class LinesActivity extends android.app.Activity

Fields Summary
private android.animation.ObjectAnimator
mAnimator
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        getWindow().setBackgroundDrawable(new ColorDrawable(0xffffffff));
        final LinesView view = new LinesView(this);
        setContentView(view);

        mAnimator = ObjectAnimator.ofFloat(view, "offset", 0.0f, 15.0f);
        mAnimator.setDuration(1500);
        mAnimator.setRepeatCount(ObjectAnimator.INFINITE);
        mAnimator.setRepeatMode(ObjectAnimator.REVERSE);
        mAnimator.start();
    
protected voidonDestroy()

        super.onDestroy();
        mAnimator.cancel();