title: Android, Set ImageButton Background To Null and Set onClick Highlight Color
body: <p>Is it possible to set the background of an ImageButton to "@null" and still choose an onClick highlight color?</p>
  
  <p>Many thanks</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I am using the following xml on my ImageButton so that the android background is null but my custom background is:</p>
  
  <pre><code>&lt;ImageButton
      android:id="@+id/m1_btn"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@null"
      android:src="@drawable/pause"
      tools:ignore="ContentDescription" /&gt;
  </code></pre>
  
  <p>Then my buttons background is controlled in my Java like so:</p>
  
  <pre><code>    pp_btn1.setOnClickListener(new View.OnClickListener() {
  
      @Override
      public void onClick(View v) {
          i +=1;
          if (i % 2 == 0) {
              pp_btn1.setImageResource(R.drawable.pause);
          } else {
              pp_btn1.setImageResource(R.drawable.play);
          }
      }
  });
  </code></pre>
  
  <p>With this explained, is there a way of still achieving the button highlight onClick?</p>
  
  <p>Many thanks</p>