Skip to content

Instantly share code, notes, and snippets.

@mrmans0n
Created June 13, 2012 14:01
Show Gist options
  • Save mrmans0n/2924241 to your computer and use it in GitHub Desktop.
Save mrmans0n/2924241 to your computer and use it in GitHub Desktop.
Hacky way to set up cropPadding in Android's ImageView
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