title: Layout weight apparently work well, but not in some real devices
body: <p>I have searched and tried a lot of solution without success.</p>
  
  <p>I have a full size image in the main screen of my app. So i want to organize this image with 2 buttons on the bottom of the screen.</p>
  
  <p>With this XML everything seems ok but in some devices (HTC One, LG Nexus 4...) <strong>the image is not visible</strong> . In others devices is all ok and indeed i think the code is pretty good. I know that could be a weight problem but if i use relative layout there is the problem of the overlapping (i don't want use scroll view because the main screen must be all visible immediatly).</p>
  
  <p>What i'm missing?</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="vertical"
  android:background="@drawable/main_gradient"&gt;
  
  &lt;ImageView android:id="@+id/imgMainLogo"
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_weight="4"
      android:padding="20dp"
      android:adjustViewBounds="true"
      android:contentDescription="@string/image_description"
      android:gravity="center"
      android:src="@drawable/logo"/&gt;
  
  &lt;LinearLayout android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_weight="1"
      android:orientation="horizontal"
      android:padding="15dp"
      android:gravity="bottom"&gt;
      &lt;Button
          android:id="@+id/buttonRegister"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:layout_marginRight="10dp"
          android:padding="20dp"
          android:text="@string/main_btn_register"
          android:textStyle="bold"
          android:textSize="18sp"
          android:textColor="#FFFFFF"
          android:background="@drawable/button_background"/&gt;
      &lt;Button
          android:id="@+id/buttonEnter"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:layout_marginLeft="10dp"
          android:padding="20dp"
          android:text="@string/main_btn_enter"
          android:textStyle="bold"
          android:textSize="18sp"
          android:textColor="#FFFFFF"
          android:background="@drawable/button_background"/&gt;
  &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>