title: Android SDK 22 - SearchView rendering problems
body: <p>We've just updated local <strong>Android SDK</strong> to new <strong><a href="http://android-developers.blogspot.it/2015/03/android-51-lollipop-sdk.html" rel="noreferrer">version 22</a></strong>, and we are trying to update also our apps, but it seems to be a problem with <em><a href="http://developer.android.com/reference/android/widget/SearchView.html" rel="noreferrer">SearchView</a></em> rendering in layout Design view of <em>Android Studio</em>: everytime designer try to render a <em>SearchView</em> element, it throws an exception:</p>
  
  <blockquote>
    <p>java.lang.NullPointerException   at
    android.content.res.TypedArray.hasValueOrEmpty(TypedArray.java:845)
      at android.widget.SearchView.(SearchView.java:295)   at
    android.widget.SearchView.(SearchView.java:258)   at
    android.widget.SearchView.(SearchView.java:254)   at
    java.lang.reflect.Constructor.newInstance(Constructor.java:422)   at
    android.view.LayoutInflater.createView(LayoutInflater.java:607)   at
    android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)   at
    android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
      at
    android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:806)
      at
    android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
      at android.view.LayoutInflater.rInflate(LayoutInflater.java:782)
      at android.view.LayoutInflater.inflate(LayoutInflater.java:504)   at
    android.view.LayoutInflater.inflate(LayoutInflater.java:385)</p>
  </blockquote>
  
  <p>This occours even if we create a new element from left toolbar in a new layout file.
  Any idea?</p>
  
  <p><img src="https://i.stack.imgur.com/eOcZC.png" alt="Rendering error"></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
      &lt;SearchView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/searchView" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>