making an image clickable in android 2
<p>How do make an image clickable in android?
I don't want to use an imageButton as it puts the image over a button.
i tried using following codes, but on clicking nothing happens..
in xml:</p>

<pre><code>&lt;ImageView 
 android:id="@+id/arrow1" 
 android:src="@drawable/arrow" 
 android:layout_height="wrap_content" 
 android:layout_width="wrap_content" 
 android:layout_x="12dp" 
 android:layout_y="90dp" 
 android:clickable="true" 
 android:onClick="onClick"&gt;
&lt;/ImageView&gt;
</code></pre>

<p>in .java:</p>

<pre><code> final ImageView diskView4 = (ImageView) findViewById(R.id.arrow1);


 diskView4.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v){
         //my codes
    }
 });
</code></pre>
