I\'d like to load the value as it is. I have two dimension.xml files, one in /res/values/dimension.xml and the other one in /res/values-sw360
dimension.xml
/res/values/dimension.xml
/res/values-sw360
The Resource class also has a method getDimensionPixelSize() which I think will fit your needs.
Resource