Just declare a method,e.g:if ur button id is button1 then,
button1.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Toast.makeText(Context, "Hello", Toast.LENGTH_SHORT).show();
}
});
If you want to make the imageview1 visible then in that method write:
imageview1.setVisibility(ImageView.VISIBLE);