JakeWharton/ActionBarSherlock — Issue #213: getResources_getBoolean calculating dp wrong
Author: SimonVT
Created: 2012-02-05 14:48:15+00:00
State: open

You're doing
float widthDp = metrics.widthPixels * metrics.density;
when it should be
float widthDp = metrics.widthPixels / metrics.density;

(programmatically converting dp to px is density * dp = px)