I want to show the ad banner at the bottom of the page. Actually the list fills the entire screen. How do I show the ad?
Here is my layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="de.foo.foo.MainActivity$PlaceholderFragment" >
<Fragment
android:id="@+id/list_fragment"
android:name="de.foo.foo.MyListFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<Fragment
android:id="@+id/ad_fragment"
android:name="de.foo.foo.AdFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>