The method setOnClickListener(new View.OnClickListener(){}) is undefined for the type imageButton1
<p>`i keep getting this error messege and im not sure what im supposed to do</p>

<p>The method setOnClickListener(new View.OnClickListener(){}) is undefined for the type imageButton1</p>

<pre><code>  public void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);    

    imageButton1 imagebutton1 = (imageButton1) findViewById(R.id.imageButton1);

    imageButton1.setOnClickListener(new OnClickListener()
    {
      public void onClick(View v)
      {
         ImageView iv = (ImageView) findViewById(R.id.imageview1);
         iv.setVisibility(View.VISIBLE);
      }
    });
</code></pre>
