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

GridDelete

public class GridDelete extends com.android.frameworktest.util.GridScenario
A grid with vertical spacing between rows

Fields Summary
Constructors Summary
Methods Summary
protected android.widget.ListAdaptercreateAdapter()

        return new DeleteAdapter(getInitialNumItems());
    
protected voidinit(Params params)

        params.setStartingSelectionPosition(-1)
                .setMustFillScreen(false)
                .setNumItems(1001)
                .setNumColumns(4)
                .setItemScreenSizeFactor(0.20)
                .setVerticalSpacing(20);
    
public booleanonKeyDown(int keyCode, android.view.KeyEvent event)

        if (keyCode == KeyEvent.KEYCODE_DEL) {
            GridView g = getGridView();
            ((DeleteAdapter)g.getAdapter()).deletePosition(g.getSelectedItemPosition());
            return true;
        } else {
            return super.onKeyDown(keyCode, event);
        }