title: Rendering Problems Android with Shape tag
body: <p>I have spent a whole day trying to find the problem, and I have not found the solution. I need all your help!</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"&gt;
       &lt;solid android:color="#000" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>And I call this way</p>
  
  <pre><code>&lt;Button
       android:layout_width="fill_parent"
       android:layout_height="wrap_content"
       android:text="New Button"
       android:id="@+id/button"
       android:layout_gravity="center_horizontal"
       android:background="@drawable/shape_button" /&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Rendering Problems 
    java.lang.NullPointerException   at
    android.graphics.Bitmap_Delegate.createBitmap(Bitmap_Delegate.java:598)
      at
    android.graphics.Bitmap_Delegate.createBitmap(Bitmap_Delegate.java:120)
      at
    android.graphics.Bitmap_Delegate.createBitmap(Bitmap_Delegate.java:102)
      at
    com.android.layoutlib.bridge.impl.ResourceHelper.getDrawable(ResourceHelper.java:236)
      at
    android.content.res.BridgeTypedArray.getDrawable(BridgeTypedArray.java:783)
      at android.view.View.(View.java:3554)   at
    android.widget.TextView.(TextView.java:623)   at
    android.widget.Button.(Button.java:107)   at
    android.widget.Button.(Button.java:103)   at
    java.lang.reflect.Constructor.newInstance(Constructor.java:526)   at
    android.view.LayoutInflater.createView(LayoutInflater.java:595)   at
    android.view.LayoutInflater.onCreateView(LayoutInflater.java:670)   at
    android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:695)
      at
    android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:756)
      at
    android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
      at android.view.LayoutInflater.rInflate(LayoutInflater.java:728)
      at
    android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:759)
      at
    android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
      at android.view.LayoutInflater.rInflate(LayoutInflater.java:728)
      at
    android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:759)
      at
    android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
      at android.view.LayoutInflater.rInflate(LayoutInflater.java:728)
      at android.view.LayoutInflater.inflate(LayoutInflater.java:492)   at
    android.view.LayoutInflater.inflate(LayoutInflater.java:373)</p>
  </blockquote>