title: Can I do calculation inside dimens.xml?
body: <p>I just wondering can I do some calculations inside dimens.xml? I have tried it but doesn't work:</p>
  
  <p><strong>dimens.xml</strong></p>
  
  <pre><code>&lt;dimen name="wrap_content"&gt;-2dp&lt;/dimen&gt;
  
  &lt;dimen name="width"&gt;@dimen/wrap_content * 0.5&lt;/dimen&gt;
  &lt;dimen name="height"&gt;@dimen/wrap_content * 0.5&lt;/dimen&gt;
  </code></pre>
  
  <p><strong>my_layout.xml</strong></p>
  
  <pre><code>&lt;include
      android:id="@+id/main_right_menu_layout"
      android:layout_width="@dimen/width"
      android:layout_height="@dimen/height"
      layout="@layout/main_right_menu_layout" /&gt;
  </code></pre>