My XML layout in res/layout/edit.xml:
<?xml version="1.0" encoding="utf-8"?>
<GridView
android:id="@+id/GridView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:numColumns="2">
<TextView
android:text="Person's Name"
android:id="@+id/PersonName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<TextView
android:text="Person's Points"
android:id="@+id/PersonPoints"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
</GridView>
When I try to switch from "edit.xml" to "Layout", I see this error:
java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not
supported in AdapterView
I checked the documentation for AdapterView, and this is expected behavior. Why, then, does ADT expect it to work?