0
に下の画像の上にとどまるfill_parentは私のxmlファイルにレイアウトさ下に表示するには、AdmobのLinearLayoutと他のビューのRelativeLayoutの2種類のレイアウトを選択しました。メイクのWebViewのアンドロイド
また、最初にスプラッシュ画面を表示してからwebviewを表示するので、私のロジックは、両方ともフレームレートで動くようになります。私の下の画像とAdmobは互いに重なっています。 だから、私のコードのように行く:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:myapp="http://schemas.android.com/apk/res/app.news"
android:layout_width="wrap_content"
android:layout_height="fill_parent">
<FrameLayout
android:id="@+id/views"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView
android:id="@+id/splash_screen"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="center"
android:src="@drawable/splash_screen"
android:visibility="visible"
/>
<WebView
android:id="@+id/webvw"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="fill_vertical"
android:scrollbars="none"
android:visibility="invisible"
/>
<ImageView
android:id="@+id/bottomImage"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="fitEnd"
android:src="@drawable/logo"
android:visibility="visible"
/>
</FrameLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:gravity="bottom"
android:layout_alignBottom="@id/views"
>
<com.admob.android.ads.AdView
android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
myapp:backgroundColor="#000000"
myapp:primaryTextColor="#FFFFFF"
myapp:secondaryTextColor="#CCCCCC"
myapp:testing="false"
/>
</LinearLayout>
</RelativeLayout>
私は下の画像を除くすべてのスペースを占有するのWebViewたい、私はそれが「fill_parent」にWebViewの高さを利用して実現するするかどうかはわかりません。
誰も助けてくださいことはできますか?
Thanx事前に。
0dipにWebViewの高さを設定する表示され/表示されないのWebViewを作っています。 – neha
また、orientation = "vertical"のLinearLayoutを使用する必要があります。最初はlayout_height = "0"かつlayout_weight = "1"のWebView(またはそれを含むネストされたレイアウト)です。 2番目の子はlayout_height = "wrap_content"のAdMobです – Olegas