Error inflating class android.support.v7.widget.Toolbar in Gingerbread(sdk 9) -


i use material in application , works right (minsdkversion 11+) minsdkversion 9 application crashes

<android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:fitssystemwindows="true" android:layout_height="match_parent" android:background="@drawable/splash">  <relativelayout     android:layout_width="match_parent"     android:layout_height="match_parent">      <android.support.v7.widget.toolbar         style="@style/toolbarstyle"         xmlns:android="http://schemas.android.com/apk/res/android"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:background="?attr/colorprimary"         android:minheight="0dp"         /> </relativelayout> 

error is:

android.view.inflateexception: binary xml file line #11: error inflating class android.support.v7.widget.toolbar

toolbarstyle is:

<style name="toolbarstyle" parent="">   <item name= "popuptheme"> @style/themeoverlay.appcompat.light </item>   <item name="theme"> @style/themeoverlay.appcompat.dark.actionbar</item> </style> 


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -