У меня есть ListActivity с пользовательским макетом.Теперь я хотел бы попытаться добавить AdMod в свою деятельность, но у меня возникли те же проблемы, что и при добавлении кнопки в макет.Если у меня есть макеты в 100px, я вижу и список, и рекламу, но на самом деле она выглядит не очень хорошо.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:myapp="http://schemas.android.com/apk/res/se.javalia.myDrinks"
android:orientation="vertical">
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="200px"
android:gravity="center">
<ListView android:id="@+id/android:list" android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView android:id="@+id/android:empty"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:text="@string/main_no_items" />
</RelativeLayout>
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="48px"
android:gravity="bottom">
<com.admob.android.ads.AdView android:id="@+id/ad"
android:layout_width="fill_parent" android:layout_height="wrap_content"
myapp:backgroundColor="#000000" myapp:primaryTextColor="#FFFFFF"
myapp:secondaryTextColor="#CCCCCC" android:layout_alignParentBottom="true"
myapp:keywords="drink alcohol wiskey rum soda" myapp:refreshInterval="300" />
</RelativeLayout>
</LinearLayout>
Есть ли у вас какие-либо идеи о том, почему я не вижу рекламу, когда я стал чаще использовать200px, и как заполнить экран так, чтобы реклама не исчезала.
Заранее спасибо Roland