Created
July 21, 2010 02:57
-
-
Save marshall/483975 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Note: this isn't public API, so there should be lots of error checking here | |
Method gciMethod = Resources.class.getMethod("getCompatibilityInfo"); | |
Object compatInfo = gciMethod.invoke(view.getResources()); | |
float appScale = (Float)compatInfo.getClass().getField("applicationScale").get(compatInfo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment