FileDocCategorySizeDatePackage
TableLayout9.javaAPI DocGoogle Android v1.5 Example1460Sun Nov 11 13:01:04 GMT 2007com.google.android.samples.view

TableLayout9

public class TableLayout9 extends android.app.Activity

Fields Summary
private boolean
mShrink
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);

        setContentView(R.layout.table_layout_9);

        final TableLayout table = (TableLayout) findViewById(R.id.menu);
        Button button = (Button) findViewById(R.id.toggle);
        button.setOnClickListener(new Button.OnClickListener() {
            public void onClick(View v) {
                mShrink = !mShrink;
                table.setColumnShrinkable(0, mShrink);
            }
        });

        mShrink = table.isColumnShrinkable(0);