title: Android scaling dimensions of included view
body: <p>I have a view where I defined sizes using dip.</p>
  
  <p>I want to include this in other layouts in different sizes. I thought setting the size in the include tag</p>
  
  <pre><code>&lt;include
     android:id="@+id/abc"
     android:layout_width="100dip"
     android:layout_height="100dip"
     layout="@layout/myInclude" 
   /&gt;
  </code></pre>
  
  <p>would make that my included layout is resized proportionally but it doesn't. So everything I defined using dip in the included layout appears with the same size and breaks the layout.</p>
  
  <p>Is this expected behaviour and what can I do to solve this?</p>
  
  <p>A possible solution in to use LinearLayout with weights in the included layout, instead of hardcode in dip. But with dip I have more control, and don't have to use LinearLayouts everywhere...</p>
  
  <p>Thanks in advance.</p>