Skip to content

Instantly share code, notes, and snippets.

@jamesmundy
Created November 18, 2014 17:24
Show Gist options
  • Save jamesmundy/ef20e48a9cca56798dd2 to your computer and use it in GitHub Desktop.
Save jamesmundy/ef20e48a9cca56798dd2 to your computer and use it in GitHub Desktop.
Using our SVG ImageControl in a layout
Needed for custom attribute: xmlns:app="http://schemas.android.com/apk/res-auto"
<Foundbite.GameAndroid.CustomViews.ImageControl
android:layout_width="match_parent"
android:layout_height="match_parent"
app:SVGSource="SVG/Image.svg"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_marginBottom="36dp"
android:layout_marginTop="36dp" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment