Load dimension value from res/values/dimension.xml from source code

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-sw360dp/dimension.xml. From source code I’d like to do something like getResources().getDimension(R.dimen.tutorial_cross_marginTop); This works but the value I get is multiplied times the screen density factor (1.5 for hdpi, 2.0 for xhdpi, etc). I … Read more