How to know what is the button id that was clicked - android
<p>I have created 3 buttons in my application which when clicked, will go to the method giveClue.</p>

<pre><code>&lt;ImageButton
        android:id="@+id/imageButton1"
        android:layout_width="24dp"
        android:layout_height="22dp"
        android:layout_alignTop="@+id/lifeButtonsLbl"
        android:layout_toLeftOf="@+id/ImageButton2"
        android:src="@drawable/icon"
        android:onClick="giveClue" /&gt;

    &lt;ImageButton
        android:id="@+id/ImageButton2"
        android:layout_width="24dp"
        android:layout_height="22dp"
        android:layout_alignTop="@+id/imageButton1"
        android:layout_toLeftOf="@+id/ImageButton3"
        android:src="@drawable/icon" 
        android:onClick="giveClue"/&gt;

    &lt;ImageButton
        android:id="@+id/ImageButton3"
        android:layout_width="24dp"
        android:layout_height="22dp"
        android:layout_alignRight="@+id/frameLayout1"
        android:layout_alignTop="@+id/ImageButton2"
        android:src="@drawable/icon"
        android:onClick="giveClue" /&gt;
</code></pre>

<p>NOTE: I don't want to use different method for the</p>

<p>ACTIVITY CLASS:</p>

<pre><code>public void giveClue(View view) {
        gameAdapter.giveClue(game);
    }
</code></pre>

<p>My problem is that I want to disable the button that was clicked.I don't want to use different method for each button. Is it possible to determine which button was clicked so I can disable it. </p>

<p>Thank you.</p>
