title: RemoteView and wrong layout_weight
body: <p>I have a problem with layout_weight and the remoteView of my appWidget.</p>
  <p>All my toggle are like this
  <img src="https://i.stack.imgur.com/TyZEO.png" alt="my toggles" /></p>
  <p>With this xml :</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  android:id=&quot;@+id/btn&quot;
  android:layout_width=&quot;fill_parent&quot;
  android:layout_height=&quot;fill_parent&quot;
  android:layout_weight=&quot;1&quot;
  android:background=&quot;@drawable/appwidget_button_center&quot;
  android:gravity=&quot;bottom&quot;
  android:orientation=&quot;vertical&quot;
  android:visibility=&quot;visible&quot; &gt;
  
      &lt;ImageView
              android:id=&quot;@+id/toggle_img&quot;
              android:layout_width=&quot;fill_parent&quot;
              android:layout_height=&quot;0dip&quot;
              android:layout_weight=&quot;2&quot;
              android:scaleType=&quot;center&quot; /&gt;
      
           &lt;TextView
              android:id=&quot;@+id/toggle_txt&quot;
              style=&quot;@style/TextSmallButton&quot; 
              android:layout_height=&quot;0dip&quot;
              android:layout_weight=&quot;1&quot;
              /&gt;
          &lt;ImageView
              android:id=&quot;@+id/toggle_ind&quot;
              android:layout_width=&quot;fill_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:scaleType=&quot;fitXY&quot;
              android:src=&quot;@drawable/b7_on&quot; /&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  <p>Now I want one of my toggle to take double size than default size so i put layout_weight = 2 on my xml only for the specific toggle. And now I have this :
  <img src="https://i.stack.imgur.com/Poq2z.png" alt="Now" /></p>
  <p>If i do this in my activity it's work i have :
  <img src="https://i.stack.imgur.com/K1cFE.png" alt="What i want" /></p>
  <p>So how can i resolve this please...</p>