У меня есть относительная раскладка с кнопками, выровненными по нижней части экрана, но по какой-то причине, когда я добавляю android: background к последней кнопке, она сжимает все кнопки на экране.Будем признательны любому совету.Я новичок в Android, так что я все еще привыкаю к вещам.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/yoders_red" >
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#000000"
android:orientation="horizontal"
android:weightSum="100" >
<Button
android:id="@+id/buttRest"
android:layout_height="fill_parent"
android:layout_weight="25"
android:layout_width="wrap_content"
android:background="#000000"
android:text="Restaurant"
android:textColor="#FFFFFF"
android:textSize="11dp" >
</Button>
<Button
android:id="@+id/buttProd"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="25"
android:background="#000000"
android:text="Produce"
android:textColor="#FFFFFF" />
<Button
android:id="@+id/buttDeli"
android:layout_height="fill_parent"
android:layout_width="wrap_content"
android:layout_weight="25"
android:background="#000000"
android:text="Deli"
android:textColor="#FFFFFF" >
</Button>
<Button
android:id="@+id/buttGS"
android:layout_height="fill_parent"
android:layout_width="wrap_content"
android:layout_weight="25"
android:text="Gift Shop"
android:textColor="#FFFFFF"
android:background="#000000">
</Button>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>