我在我的应用中使用MoPubView来投放广告。但是当我打开键盘时,该横幅会上升并关闭部件。
这是布局中的代码:
<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>
如何隐藏这个横幅或将其固定在底部?