title: Why does my ImageButton keep the gray from a blank image on its sides?
body: <p>I'm creating a custom titleBar and I'm putting some imageButtons in there, and when you set the ImageButton as default it's just gray. When you assign it a value it should completely change its view to that image. </p>
  
  <p>Mine for some odd reason is setting the image correctly, but keeping the gray borders that the default ImageButton has. Is there a reason why this is?</p>
  
  <p>Here's a picture of whats happening: 
  <img src="https://i.stack.imgur.com/TDPbS.png" alt="enter image description here"></p>
  
  <p>Here's my xml file for the titleBar:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="horizontal" &gt;
  
      &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/title_activity_flash_card_display"
          android:textColor="@color/bluenessText" /&gt;
  
      &lt;LinearLayout 
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="horizontal"&gt;   
  
  
          &lt;ImageButton
              android:id="@+id/flashCard_show_amount_right"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:contentDescription="right" /&gt;
  
      &lt;/LinearLayout&gt;
  
  
  
  &lt;/LinearLayout&gt;
  </code></pre>