レイアウトの下部に広告を永続的に表示しようとしています。私はタブホストを使用しています。フレームレイアウトの上に広告を配置すると、上部に広告が表示されます。この広告を一番下に配置したい。これが私のレイアウトファイルのコードです。
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background_splash"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="match_parent"
/>
<com.google.ads.AdView android:id="@+id/adView"
android:layout_width="480dp"
android:layout_height="100dp"
ads:adUnitId="XXXXXXXXX"
ads:adSize="BANNER"
ads:testDevices="TEST_EMULATOR, XXXXXXXX"
ads:loadAdOnCreate="true"/>
</LinearLayout>
</TabHost>
フレーム レイアウトの前に adview を配置すると、広告が表示されますが、タブホストの下部に広告を表示したいと考えています。
ありがとう、アマン