Summary
Whenever you build any app in Titanium Mobile for Android for the Galaxy Nexus (Android 4.0) while *Force GPU rendering* is enabled in the developer options, using
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<supports-screens android:anyDensity="false"/>
</manifest>
</android>
The formatting and scaling are thrown off entirely, as shown in the attached image file. Removing *anyDensity=false* or disabling gpu rendering resolves the issue, but requires the developer to use 'dp' notation everywhere even if they don't plan to support multiple densities.
basic code to reproduce
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
win.open();
With *anyDensity=false* in the tiapp.xml android manifest, this will generate the attached screenshot on a Galaxy nexus running 4.0. If *anyDensity=false* is removed from the manifest, you will get the expected white background covering the whole screen for the window.
Can not reproduce with the latest master and 1_8_X.
Updated ticket description to include the fact that this only occurs when
has been enabled
Also to note, this is not specific to Titanium. Native built Android apps are also subject to this issue.
Should have been closed. Closing per dev comments.