Skip to content

Instantly share code, notes, and snippets.

@Andrious
Created May 18, 2018 01:32
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 Andrious/8f2979e89248507a8a3dfee65e2d2c61 to your computer and use it in GitHub Desktop.
Save Andrious/8f2979e89248507a8a3dfee65e2d2c61 to your computer and use it in GitHub Desktop.
AdMod Fragment XML
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.andrioussolutions.admob.AdModFragment">
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/admob_id">
</com.google.android.gms.ads.AdView>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment