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

LLOfTwoFocusableInTouchMode

public class LLOfTwoFocusableInTouchMode extends android.app.Activity

Fields Summary
private android.view.View
mButton1
private android.view.View
mButton2
private android.view.View
mButton3
private boolean
mB1Fired
private boolean
mB2Fired
private boolean
mB3Fired
Constructors Summary
Methods Summary
public android.view.ViewgetButton1()

        return mButton1;
    
public android.view.ViewgetButton2()

        return mButton2;
    
public android.view.ViewgetButton3()

        return mButton3;
    
public booleanisB1Fired()

        return mB1Fired;
    
public booleanisB2Fired()

        return mB2Fired;
    
public booleanisB3Fired()

        return mB3Fired;
    
protected voidonCreate(android.os.Bundle savedInstanceState)


    
        
        super.onCreate(savedInstanceState);

        setContentView(R.layout.linear_layout_buttons);

        mButton1 = findViewById(R.id.button1);
        mButton2 = findViewById(R.id.button2);
        mButton3 = findViewById(R.id.button3);

        mButton1.setFocusableInTouchMode(true);
        mButton2.setFocusableInTouchMode(true);
        mButton3.setFocusableInTouchMode(true);

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

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

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