title: Android ImageButton image scaling
body: <p>I have two ImageButtons in a LinearLayout. The Facebook image is 320x113 and the Google+ image is 325x113 (same height). I want both images to display with an equal height (and the wider image will show wider). But for some reason when displaying, the Google+ button is scaling the size larger. Why? Why I ask you!</p>
  
  <pre><code>&lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:layout_weight="0"
          android:paddingTop="@dimen/padding_large"
          android:paddingLeft="@dimen/padding_large"
          android:paddingRight="@dimen/padding_large"
          android:paddingBottom="@dimen/padding_large"&gt;
  
          &lt;ImageButton android:id="@+id/btnFBShare"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:visibility="gone"
              android:background="@null"
              android:src="@drawable/fb_share"
              android:contentDescription="Share on Facebook"
              /&gt;
  
          &lt;ImageButton android:id="@+id/btnGPShare"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:visibility="gone"
              android:background="@null"
              android:src="@drawable/gp_share"
              android:contentDescription="Share on Google+" /&gt;
  
          &lt;!--  
              android:layout_weight="1" --&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/6HrgN.jpg" alt="enter image description here"></p>