У меня есть простой макет, который приведен ниже. Я установил родительский (RelativeLayout) фон для рисунка, а дочерний макет таблицы - для белого цвета. По какой-то причине, когда я устанавливаю цвет табличного макета, родительский макет становится черным (или нулевым). Я не уверен, что проблема здесь, то же самое в случае, если у меня есть линейное расположение вместо таблицы.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/mbi33" android:id="@+id/rl" android:clipToPadding="true">
<TableLayout android:id="@+id/tableLayout1" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:background="@color/white">
<TableRow android:id="@+id/tableRow4" android:layout_width="wrap_content" android:layout_height="wrap_content">
<Button android:text="Button" android:layout_height="wrap_content" android:id="@+id/button1" android:layout_weight="1" android:layout_width="0dp"></Button>
<Button android:text="Button" android:layout_height="wrap_content" android:layout_weight="1" android:id="@+id/button2" android:layout_width="0dp"></Button>
<Button android:layout_height="wrap_content" android:text="Button" android:id="@+id/button3" android:layout_weight="1" android:layout_width="0dp"></Button>
</TableRow>
</TableLayout>
</RelativeLayout>
Любая помощь по этому вопросу будет принята.