Skip to content

Instantly share code, notes, and snippets.

@MichaelEvans
Created May 7, 2014 21:10
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 MichaelEvans/3bf4f8190ff8dccb285f to your computer and use it in GitHub Desktop.
Save MichaelEvans/3bf4f8190ff8dccb285f to your computer and use it in GitHub Desktop.
AdOnBottomLayout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical">
<ListView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pager"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="0dp" />
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="xxxxxx"
android:background="@color/black"
ads:adSize="BANNER"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment