FileDocCategorySizeDatePackage
TableLayout9.javaAPI DocAndroid 1.5 API1499Wed May 06 22:41:08 BST 2009com.example.android.apis.view

TableLayout9

public class TableLayout9 extends android.app.Activity

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

        super.onCreate(savedInstanceState);

        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);