FileDocCategorySizeDatePackage
LLOfButtons1.javaAPI DocAndroid 1.5 API1888Wed May 06 22:42:02 BST 2009com.android.frameworktest.layout.linear

LLOfButtons1

public class LLOfButtons1 extends android.app.Activity
One of two simple vertical linear layouts of buttons used to test out the transistion between touch and focus mode.

Fields Summary
private boolean
mButtonPressed
private android.widget.Button
mFirstButton
Constructors Summary
Methods Summary
public booleanbuttonClickListenerFired()

        return mButtonPressed;
    
public android.widget.ButtongetFirstButton()

        return mFirstButton;
    
public android.widget.LinearLayoutgetLayout()

        return (LinearLayout) findViewById(R.id.layout);
    
public booleanisInTouchMode()

        return mFirstButton.isInTouchMode();
    
protected voidonCreate(android.os.Bundle icicle)


    
        
        super.onCreate(icicle);
        setContentView(R.layout.linear_layout_buttons);
        mFirstButton = (Button) findViewById(R.id.button1);

        mFirstButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                mButtonPressed = true;
            }
        });