manski

Set max height for image in MonoDroid

Jul 4th, 2012
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ImageView icon = new ImageView(this.Context);
  2. icon.SetImageDrawable(this.Context.Resources.GetDrawable(Resource.Drawable.icon_large));
  3. icon.SetAdjustViewBounds(true);
  4. icon.SetMaxHeight(100);
RAW Paste Data