Google.ads.AdView does not accept full screen width in Samsung Galaxy notes

In fact, I am showing google.ads.AdView in my application at the bottom of the screen. Everything is working fine. But the only problem is that it does not occupy the full width of the screen while it is displayed in the notes of the Samsung Galaxy, however, when displayed in it, the full screen width is not required.

Why is this happening, is there a way to solve this problem.

My xml Layout where I post my google.ads.AdView

<LinearLayout
    android:id="@+id/bottom_control_bar"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:orientation="horizontal" >

    <com.google.ads.AdView
        android:id="@+id/adView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        ads:adSize="BANNER"
        ads:adUnitId="a14e5222d46c63d"
        ads:loadAdOnCreate="true" >
    </com.google.ads.AdView>
</LinearLayout>
+3
source share
2 answers

AdView adSize. https://developers.google.com/mobile-ads-sdk/docs/admob/android/banner#banner_size. SMART_BANNER, v6.0.0 AbMob.

    <com.google.ads.AdView android:id="@+id/adView"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     ads:adUnitId="yourAdUnitId"                         
                     ads:adSize="SMART_BANNER"
                     ads:loadAdOnCreate="true"/>
+21

. match_parent. addmob, layout_gravity = "center", :)

0

All Articles