Skip to content

Instantly share code, notes, and snippets.

@jfversluis
Created April 16, 2017 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfversluis/dabc5c7c12fa07b20786190e2bdf8efc to your computer and use it in GitHub Desktop.
Save jfversluis/dabc5c7c12fa07b20786190e2bdf8efc to your computer and use it in GitHub Desktop.
Enabling hardware acceleration on Xamarin Android
if ((int)Build.VERSION.SdkInt >= 19) {
Control.SetLayerType (Android.Views.LayerType.Hardware, null);
} else {
Control.SetLayerType (Android.Views.LayerType.Software, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment