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
Post a Comment