With xml files, you’d have the right values in the...
# compose
m
With xml files, you’d have the right values in the proper values-* folders, and just use context.resources.getDimension() or something like that.