Value equals to match_parent or fill_parent in dimens.xml?
<p>Based on <a href="http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html" rel="nofollow">here on XML Attributes</a> section I specify following in my <code>dimens.xml</code>:</p>

<pre><code>&lt;dimen name="match_parent"&gt;-1dp&lt;/dimen&gt;
&lt;dimen name="main_left_menu_user_account_width"&gt;@dimen/match_parent&lt;/dimen&gt;
&lt;dimen name="main_left_menu_user_account_height"&gt;@dimen/match_parent&lt;/dimen&gt;
</code></pre>

<p>Then I use the both dimensions in my layout:</p>

<pre><code>&lt;ImageView 
    android:id="@+id/userAccountImage"
    android:background="@drawable/user_account"
    android:layout_width="@dimen/main_left_menu_user_account_width"
    android:layout_height="@dimen/main_left_menu_user_account_height" /&gt;
</code></pre>

<p>Then, when I preview to <code>Graphical Layout</code>, it complains:</p>

<blockquote>
  <p>You must supply a layout_width attribute. </p>
  
  <p>You must supply a layout_height attribute.</p>
</blockquote>

<p>Actually can I define a value equals to match_parent in <code>dimens.xml</code>?</p>

<p><strong>Update:</strong></p>

<p>I also tried this but the preview still complains:</p>

<pre><code>&lt;dimen name="main_left_menu_user_account_width"&gt;-1dp&lt;/dimen&gt;
&lt;dimen name="main_left_menu_user_account_height"&gt;-1dp&lt;/dimen&gt;
</code></pre>

<p>I successfully use <code>wrap_content</code> (the <code>Graphical Layout</code> doesn't complain at all):</p>

<pre><code>&lt;dimen name="wrap_content"&gt;-2dp&lt;/dimen&gt;

&lt;dimen name="main_right_menu_width"&gt;@dimen/wrap_content&lt;/dimen&gt;
&lt;dimen name="main_right_menu_height"&gt;@dimen/wrap_content&lt;/dimen&gt;
</code></pre>
