Lint: How to ignore ” is not translated in ” errors?

I can’t compile/debug our Android app, because the localization files are not perfect yet. My IDE’s validation tool Lint create errors saying: newCardsOrderVals is not translated in ar, bg, ca, cs Compiling/installing/running with Ant works fine, but I would like to use my IDE to ease debugging. Is there a way to turn off this … Read more

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