1 points · by pocorall · 13y ago · 1 comment
Now you have one place to modify.
What's REALLY harmful is code that goes like this:
if (portrait) orientation = VERTICAL
That is guaranteed to be wrong on some device. The road to that inner ring of hell where testing on dozens of devices is a vain quest for "good" code that makes decisions about layout is paved with code like this.
But if you let the Android system choose among layout files, the chances for a pathological decision about layout are greatly reduced.