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

VectorCheckbox

public class VectorCheckbox extends android.app.Activity

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


    
        
        super.onCreate(savedInstanceState);
        GridLayout container = new GridLayout(this);
        container.setColumnCount(5);
        container.setBackgroundColor(0xFF888888);
        final Button []bArray = new Button[icon.length];

        for (int i = 0; i < icon.length; i++) {
            CheckBox checkBox = new CheckBox(this);
            bArray[i] = checkBox;
            checkBox.setWidth(200);
            checkBox.setButtonDrawable(icon[i]);
            container.addView(checkBox);
        }
        setContentView(container);