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

AnimatedStateVectorDrawableTest

public class AnimatedStateVectorDrawableTest extends android.app.Activity

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


    
        
        super.onCreate(savedInstanceState);

        ScrollView scrollView = new ScrollView(this);
        GridLayout container = new GridLayout(this);
        scrollView.addView(container);
        container.setColumnCount(2);

        for (int i = 0; i < icon.length; i++) {
            CheckBox button = new CheckBox(this);
            button.setWidth(400);
            button.setHeight(400);
            button.setBackgroundResource(icon[i]);
            container.addView(button);
        }

        setContentView(scrollView);