私は、2つのネストされた相対レイアウトが同じ量のスペースを占有し、画面の幅全体を埋めるようにしようとしています。すべての親レイアウトでは、幅にfillparentが設定されています。Eclipseのグラフィカルなビューは見栄えがしますが、私のHTCは同意しません-それはそれらを一緒に接着します(私はそれで問題ありません)が、それはまたそれらを左にシフトします。伸ばして欲しいです。
<LinearLayout
android:id="@+id/footer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<ImageButton
android:id="@+id/button_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:src="@drawable/button_1_active" >
</ImageButton>
<TextView
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="@string/partners_info"
android:textColor="@color/white"
android:textStyle="bold" >
</TextView>
</RelativeLayout>
<RelativeLayout
android:id="@+id/relativeLayout2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<ImageButton
android:id="@+id/button_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:src="@drawable/button_2_inactive" >
</ImageButton>
<TextView
android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="@string/partners_map"
android:textColor="@color/white"
android:textStyle="bold" >
</TextView>
</RelativeLayout>
</LinearLayout>