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

ClipOutlineActivity

public class ClipOutlineActivity extends android.app.Activity

Fields Summary
private static final String
LOREM_IPSUM
Constructors Summary
Methods Summary
private static java.lang.CharSequencebuildText()

        StringBuffer buffer = new StringBuffer();
        for (int i = 0; i < 10; i++) {
            buffer.append(LOREM_IPSUM);
        }
        return buffer;
    
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);

        final RegionView group = new RegionView(this);

        final TextView text = new TextView(this);
        text.setText(buildText());
        group.addView(text);

        setContentView(group);

        ObjectAnimator animator = ObjectAnimator.ofFloat(group, "clipPosition", 0.0f, 1.0f);
        animator.setDuration(3000);
        animator.setRepeatCount(ValueAnimator.INFINITE);
        animator.setRepeatMode(ValueAnimator.REVERSE);
        animator.start();