defining a shape xml element in drawable?
<p>I dropped the following into the drawable directory in my Android 1.5 project:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/gradient"&gt;
    &lt;gradient android:startColor="#FFFF00" android:endColor="#FFFFFF" android:angle="270"/&gt;
    &lt;corners android:radius="0dp" /&gt;
&lt;/shape&gt;
</code></pre>

<p>I get </p>

<pre><code>java.lang.ClassNotFoundException
    at com.android.ide.eclipse.adt.internal.resources.manager.ProjectClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.loadView(Unknown Source)
    at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:198)
    at android.view.BridgeInflater.onCreateView(BridgeInflater.java:99)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562)
    at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:122)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:385)
</code></pre>

<p>etc etc etc in my Eclipse console.  </p>

<p>I also get the same ClassCastError in my logcat when I try to run the thing in my emulator, setting that drawable to be the background on a linear layout.</p>

<p>Any ideas?</p>
