J'utilise MoPubView pour les annonces dans mon application. Mais quand j'ouvre le clavier, cette bannière se lève et ferme les widgets.Comment masquer bannière publicitaire lorsque clavier ouvert sur Android
Ceci est du code de mise en page:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/material_bg">
<ScrollView
android:id="@+id/scroll"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_horizontal_margin">
...Content here
</LinearLayout>
</ScrollView>
<com.mopub.mobileads.MoPubView
android:id="@+id/adview"
android:layout_width="fill_parent"
android:layout_height="@dimen/mopub_height"
android:layout_gravity="bottom"/>
</FrameLayout>
Ce schéma de cette disposition:
Comment cacher cette bannière ou le fixer au fond?
Je pense que cette réponse peut vous aider. vérifier: http://stackoverflow.com/a/26176575/2943501 –
Cela semble être la solution la plus élégante: http://stackoverflow.com/a/26176575/438466 – Rabi