Admob banner blocks EditText autofocus when operating Android keyboard

1

Within the% co_of main% of my app I have added an admob banner, which for some strange reason prevents that when selecting any Activity the screen will auto-focus on that EditText . If I remove the banner of my main_activity.xml the behavior of the keyboard and EditText returns to normal , therefore I understand that admob is the problem. This is the admob section in my xml:

<RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <com.google.android.gms.ads.AdView
            android:id="@+id/ad_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            ads:adSize="BANNER"
            ads:adUnitId="@string/banner_ad_unit_id" />
    </RelativeLayout>

I have installed several solutions but nothing works, for example I added this in my manifest file in the admob activity:

android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize|adjustPan"

Which has not worked either. Any ideas to recover the self-adjustment of EditText when operating the keyboard?

In summary

This is what I want:

And this is what I'm getting:

    
asked by HCarrasko 09.01.2016 в 18:21
source

0 answers