package net.itisn.test;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.Toast;
public class FrameLayoutTest extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageButton btn1 = (ImageButton) this.findViewById(R.id.ImageButton01);
ImageButton btn2 = (ImageButton) this.findViewById(R.id.ImageButton02);
ImageButton btn3 = (ImageButton) this.findViewById(R.id.ImageButton03);
ImageButton btn4 = (ImageButton) this.findViewById(R.id.ImageButton04);
btn1.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Toast.makeText(FrameLayoutTest.this, "Hi~~ north",
Toast.LENGTH_LONG).show();
}
});
}
}