title: Android Studio Rendering Problems - Missing styles?
body: <p>I get following error in the <code>Preview</code> window of <code>Android Studio</code>:</p>
  
  <blockquote>
    <p>Rendering Problems Missing styles. Is the correct theme chosen for
    this layout?  Use the Theme combo box above the layout to choose a
    different layout, or fix the theme style references.  Failed to find
    '?attr/actionBarPopupTheme' in current theme. (4 similar errors not
    shown)</p>
  </blockquote>
  
  <p>I have created a custom style/theme. This is the regarding <code>styles.xml</code>:</p>
  
  <pre><code>&lt;resources xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;style name="CustomActionBarTheme" parent="@style/Theme.AppCompat.Light"&gt;
          &lt;item name="android:actionBarStyle"   tools:ignore="NewApi"&gt;@style/MyActionBar&lt;/item&gt;
          &lt;item name="actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt;
          &lt;item name="actionBarTheme"&gt;@style/MyActionBarTheme&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MyActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse"&gt;
          &lt;item name="android:background"  tools:ignore="NewApi"&gt;@color/white&lt;/item&gt;
          &lt;item name="titleTextStyle"&gt;@style/MyActionBar.ActionBar.TitleTextStyle&lt;/item&gt;
          &lt;item name="background"&gt;@color/bg_common&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MyActionBarTheme" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse"&gt;
          &lt;item name="actionMenuTextColor"&gt;@color/title&lt;/item&gt;
          &lt;item name="colorControlNormal"&gt;@color/title&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="MyActionBar.ActionBar.TitleTextStyle" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"&gt;
          &lt;item name="android:textColor"&gt;@color/title&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>My layout file header looks like this:</p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      style="@style/CustomActionBarTheme"
      android:id="@+id/drawer_layout"
      android:background="@color/bg_common_2"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity"&gt;
  
  ...
  </code></pre>
  
  <p>And in my manifest file I have added in the application tag:</p>
  
  <pre><code>android:theme="@style/CustomActionBarTheme" 
  </code></pre>
  
  <p>Why do I get the error? I also choosed <code>CustomActionBarTheme</code> in my Preview windows as Theme. Am I missing something? Thanks for any advice in advance!</p>