Methods Summary |
---|
public android.view.View | getButton1()
return mButton1;
|
public android.view.View | getButton2()
return mButton2;
|
public android.view.View | getButton3()
return mButton3;
|
public boolean | isB1Fired()
return mB1Fired;
|
public boolean | isB2Fired()
return mB2Fired;
|
public boolean | isB3Fired()
return mB3Fired;
|
protected void | onCreate(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;
}
});
|