There is a question How to make ConstraintLayout work with percentage values? and its answers show how to use the percentages:
Instead of using a dimen resource, use an item resource of type dimen:
0.5
If using integers, an integer resource would work best:
integer
1