FileDocCategorySizeDatePackage
Disabled.javaAPI DocAndroid 1.5 API1603Wed May 06 22:42:02 BST 2009com.android.frameworktest.view

Disabled

public class Disabled extends android.app.Activity implements android.view.View.OnClickListener
Exercise View's disabled state.

Fields Summary
Constructors Summary
Methods Summary
public voidonClick(android.view.View v)

        Button disabledButtonB = (Button) findViewById(R.id.disabledButtonB);
        disabledButtonB.setEnabled(!disabledButtonB.isEnabled());
    
protected voidonCreate(android.os.Bundle icicle)

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

        // Find our buttons
        Button disabledButton = (Button) findViewById(R.id.disabledButton);
        disabledButton.setEnabled(false);
        
        // Find our buttons
        Button disabledButtonA = (Button) findViewById(R.id.disabledButtonA);
        disabledButtonA.setOnClickListener(this);