FileDocCategorySizeDatePackage
LinearLayoutGrid.javaAPI DocAndroid 1.5 API1955Wed May 06 22:42:02 BST 2009com.android.frameworktest.focus

LinearLayoutGrid

public class LinearLayoutGrid extends android.app.Activity

Fields Summary
Constructors Summary
Methods Summary
public android.widget.ButtongetButtonAt(int column, int row)

        if (row < 0 || row > 2) {
            throw new IllegalArgumentException("row out of range");
        }
        if (column < 0 || column > 2) {
            throw new IllegalArgumentException("column out of range");
        }
        return (Button) getColumn(column).getChildAt(row);
    
private android.widget.LinearLayoutgetColumn(int column)

        switch (column) {
            case 0:
                return (LinearLayout) findViewById(R.id.column1);
            case 1:
                return (LinearLayout) findViewById(R.id.column2);
            case 2:
                return (LinearLayout) findViewById(R.id.column3);
            default:
                throw new IllegalArgumentException("column out of range");
        }
    
public android.view.ViewGroupgetRootView()

        return (ViewGroup) findViewById(R.id.layout);
    
protected voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        setContentView(R.layout.linear_layout_grid);