title: should I move from layout_weight to dip?
body: <p>I have created a widget. I intentionally used <code>layout_weight</code></p>
  
  <p>so it would fit any screen size.</p>
  
  <p>The widget is always spanned to 1X4.</p>
  
  <p>I now look at different devices in the <code>graphic editor</code> and I see the weight doesn't help.</p>
  
  <p>should I move to dip size?</p>
  
  <p>The linear-layouts are spanned differently in relation to the background image.</p>
  
  <p><img src="https://i.stack.imgur.com/KjT3x.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/VAlqo.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/pjtJZ.png" alt="enter image description here"></p>
  
  <p>My XML:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/app_widget_root"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/widget_bg_main"
      android:clickable="true"
      android:focusable="true"
      android:gravity="center_vertical"
      android:orientation="horizontal"
      android:padding="0dp" &gt;
  
      &lt;RelativeLayout
          android:id="@+id/layout_status_image"
          android:layout_width="0dp"
          android:layout_height="fill_parent"
          android:layout_gravity="center"
          android:gravity="center"
          android:orientation="horizontal" 
  android:layout_weight="0.21"
  &gt;
  
          &lt;ImageView
              android:id="@+id/image_status"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:src="@drawable/widget_icon_no_data"
              android:visibility="invisible" /&gt;
          &lt;!--
                                Layout is necessary because the setVisibility of ProgressBar is not working 
                                through remote views in 2.1. So wrapped by this layout 
          --&gt;
  
          &lt;FrameLayout
              android:id="@+android:id/widget_progress"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerInParent="true"
              android:layout_marginLeft="1dp"
              android:layout_marginTop="1dp" &gt;
  
              &lt;ProgressBar
                  style="?android:attr/progressBarStyle"
                  android:layout_width="39dp"
                  android:layout_height="39dp"
                  android:indeterminateOnly="true"
                  android:orientation="vertical" /&gt;
          &lt;/FrameLayout&gt;
      &lt;/RelativeLayout&gt; &lt;!-- Status image layout --&gt;
  
  
      &lt;!--
                              ========================================================================
                              * Information layout - contains all the texts 
                              ========================================================================
      --&gt;
  
      &lt;LinearLayout
          android:id="@+id/layout_information"
          android:layout_width="0dp"
          android:layout_height="fill_parent"
          android:gravity="center"
          android:orientation="vertical" 
          android:paddingLeft="20dp"
          android:layout_weight="0.56"
          &gt;
  
          &lt;TextView
              android:id="@+id/text_view_destination"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="\@ Home in"
              android:textColor="@color/solid_white"
              android:textSize="19sp"
              android:textStyle="bold" 
              android:layout_gravity="left" 
  
              /&gt;
  
          &lt;TextView
              android:id="@+id/text_view_time"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="5dp"
              android:textColor="@color/solid_white"
              android:textSize="25sp"
              android:textStyle="normal" 
              android:layout_gravity="left"
              /&gt;
      &lt;/LinearLayout&gt; &lt;!-- Information layout --&gt;
      &lt;!--
                              ========================================================================
                              * Action layout - action buttons container
                              ========================================================================
      --&gt;
  
      &lt;LinearLayout
          android:id="@+id/layout_action"
          android:layout_width="0dp"
          android:layout_height="fill_parent"
          android:layout_gravity="center"
          android:gravity="center"
          android:orientation="vertical" 
          android:layout_weight="0.23"
          &gt;
  
          &lt;ImageView
              android:id="@+id/image_action"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center"
              android:src="@drawable/widget_bt_drive_disabled" /&gt;
  
          &lt;TextView
              android:id="@+id/text_view_action"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="2dp"
              android:text="Drive!"
              android:textColor="@color/disabled_white"
              android:textSize="15sp"
              android:textStyle="bold" 
              android:layout_gravity="center"
              /&gt;
      &lt;/LinearLayout&gt; &lt;!-- Action layout --&gt;
  </code></pre>
  
  <p></p>