アプリがポートレート モードでロックされています。これは基本的に項目の ListView (長さは不明ですがスクロール可能) であり、アプリの下部を固定サイズの Webview にしたいと考えています。
つまり、アプリの上部 = ListView アプリの下部 = Webview
Webview を 200dp などの固定サイズにする必要があり、ListView が残りのスペースを確保する必要があります。
何か案は?
アプリがポートレート モードでロックされています。これは基本的に項目の ListView (長さは不明ですがスクロール可能) であり、アプリの下部を固定サイズの Webview にしたいと考えています。
つまり、アプリの上部 = ListView アプリの下部 = Webview
Webview を 200dp などの固定サイズにする必要があり、ListView が残りのスペースを確保する必要があります。
何か案は?
リストビューとウェブビューを線形レイアウトの順に並べて、リストビューに android:layout_weight="1" を設定することもできると思います
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:oritation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ListView
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"/>
<WebView
android:layout_width="match_parent"
android:layout_height="200dp"/>
</Linearlayout>
そのようです?:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="fill_parent"
a:layout_height="fill_parent" >
<WebView
a:id="@+id/webView1"
a:layout_width="match_parent"
a:layout_height="200dp"
a:layout_alignParentBottom="true"
a:layout_alignParentLeft="true" />
<ListView
a:id="@+id/listView1"
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:layout_above="@id/webView1"
a:layout_alignParentTop="true"
a:layout_centerHorizontal="true" >
</ListView>
</RelativeLayout>