title: Disable an ImageButton
body: <p>This looks easy, but I'm not able to disable an <code>ImageButton</code>. It continues to receive click events, and its appearance don't change like a standard Button would.</p>
  
  <p>There are some <a href="https://stackoverflow.com/questions/3118108/disable-an-imagebutton">similar questions</a> on SO, but they don't help me.</p>
  
  <p>Even with a very simple layout like this :</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"&gt;
  
      &lt;ImageButton
          android:id="@+id/btn_call"
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:clickable="false"
          android:enabled="false"
          android:src="@android:drawable/sym_action_call" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The button is still enabled and I can click it.</p>
  
  <p>What's strange is that if I change the <code>ImageButton</code> to a simple <code>Button</code>, then it works as expected. The button becomes disabled and unclickable. I don't understand. Does anyone have an idea?</p>