FileDocCategorySizeDatePackage
GridSimple.javaAPI DocAndroid 1.5 API1858Wed May 06 22:42:02 BST 2009com.android.frameworktest.gridview

GridSimple

public class GridSimple extends com.android.frameworktest.util.GridScenario

Fields Summary
Constructors Summary
Methods Summary
protected android.view.ViewcreateView(int position, android.view.ViewGroup parent, int desiredHeight)

        View view = super.createView(position, parent, desiredHeight);
        view.setBackgroundColor(0xFF000000);
        ((TextView) view).setTextSize(16.0f);
        return view;
    
protected voidinit(Params params)

        params.setStackFromBottom(false)
                .setStartingSelectionPosition(-1)
                .setNumItems(1000)
                .setNumColumns(3)
                .setItemScreenSizeFactor(0.14);
    
protected voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);

        getGridView().setSelector(new PaintDrawable(0xFFFF0000));
        getGridView().setPadding(0, 0, 0, 0);
        getGridView().setFadingEdgeLength(64);
        getGridView().setVerticalFadingEdgeEnabled(true);
        getGridView().setBackgroundColor(0xFFC0C0C0);