You can run it from main.xml like so:
Code:
<?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"
>
<View android:id="@+id/View01"
android:background="@layout/color"
android:layout_width="fill_parent"
android:layout_height="176dp">
</View>
</LinearLayout>
In my case color.xml was in the layout folder, not in drawable where such things are typically put. Also the layout specification could have been set to "fill_parent" instead and taken the whole screen. This may not be the best solution. I would be interested in seeing others. Maybe I will find them later in the book.