Created
June 13, 2012 14:01
-
-
Save mrmans0n/2924241 to your computer and use it in GitHub Desktop.
Hacky way to set up cropPadding in Android's ImageView
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
try { | |
Field field = ImageView.class.getDeclaredField("mCropToPadding"); | |
field.setAccessible(true); | |
field.set(imageView, true); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment