Use this, it works for me
-2px
@dimen /custom_wrap_content
-1px
@dimen /custom_match_parent
And the Reason why match_parent
doesn't run. You cannot supply a build in keyword like match_parent
Edit: Use px
instead of dp
as suggested by Jarett Millard in the comments.