Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * this hack assumes people change build.prop for increasing
- * the virtual size of their screen by decreasing dpi in
- * build.prop file. this is often done especially for hd
- * phones. keep in mind changing build.prop and density
- * isnt officially supported, but this should do for most cases
- */
- if(densityDpi < 240 && densityDpi >160)
- mDensityScaleFactor=(float)(240.0 / densityDpi);
- if(densityDpi < 160 && densityDpi >120)
- mDensityScaleFactor=(float)(160.0 / densityDpi);
- // support for 1024x800 resoltion tablets with default density of 160 (i.e. folio)
- if(densityDpi == 160 && r.getDisplayMetrics().widthPixels == 800)
- mDensityScaleFactor=(float)1.9;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement