別のLinearLayoutであなたのLinearLayoutをラップweightsumを100に設定しました。 次に、子線形レイアウトのlayout_weightを50に設定すると、画面の50%を占めます。このよう :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:weightSum="100">
<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="50">
</LinearLayout>
<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="50">
</LinearLayout>
「100dp」などのように、すべての可能な値...を与える..いくつかの時点で、あなたはそれを取得します。.. – ngesh