Based on here on XML Attributes section I specify following in my dimens.xml:
dimens.xml
-1dp
First create attribs.xml:
-1 -2
Second use your dimens:
@dimen/match_parent @dimen/wrap_content