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

ChronometerDemo

public class ChronometerDemo extends android.app.Activity

Fields Summary
android.widget.Chronometer
mChronometer
android.view.View.OnClickListener
mStartListener
android.view.View.OnClickListener
mStopListener
android.view.View.OnClickListener
mResetListener
android.view.View.OnClickListener
mSetFormatListener
android.view.View.OnClickListener
mClearFormatListener
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);

        setContentView(R.layout.chronometer);

        Button button;

        mChronometer = (Chronometer) findViewById(R.id.chronometer);

        // Watch for button clicks.
        button = (Button) findViewById(R.id.start);
        button.setOnClickListener(mStartListener);

        button = (Button) findViewById(R.id.stop);
        button.setOnClickListener(mStopListener);

        button = (Button) findViewById(R.id.reset);
        button.setOnClickListener(mResetListener);

        button = (Button) findViewById(R.id.set_format);
        button.setOnClickListener(mSetFormatListener);

        button = (Button) findViewById(R.id.clear_format);
        button.setOnClickListener(mClearFormatListener);