Question: There are a activity what I want to fill the screen in a phone
and pop up(dialog) for a tablet.

I thought I make a layout file like this, 

```
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="@dimen/main_layout_width"
  android:layout_height="match_parent">

```

and externalize the value of width as

in values/dimens.xml

```
<dimen name="tutorial_width">match_parent</dimen>

```

in values-xlarge/dimens.xml

```
<dimen name="tutorial_width">320dp</dimen>

```

But I can't representation 'match\_parent' as dimen element.
Any help? Thanks!

Answer: 
The best way I found: 
- instead of "match\_parent" and "fill\_parent" write "-1dp"
- instead of "wrap\_content" write "-2dp"
According this great contribution:
<http://blog.danlew.net/2015/01/06/handling-android-resources-with-non-standard-formats/>

1. Let's try defining both match\_parent and wrap\_content without a format:

```
<item name="match_parent" type="dimen">-1</item>
<item name="wrap_content" type="dimen">-2</item>

```
2. We can reference those in any other dimension value:

```
<!-- Inside /res/values/dimens.xml -->
<dimen name="responsive_width">@dimen/match_parent</dimen>

<!-- Inside /res/values-sw800dp/dimens.xml -->
<dimen name="responsive_width">800dp</dimen> 

```

For more info visit the web page I mentioned earlier!