android - AppCompat does not support the current theme features error -
this error occurs when application goes layout :
<android.support.design.widget.appbarlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/apptheme.appbaroverlay"> <android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionbarsize" android:background="?attr/colorprimary" app:popuptheme="@style/apptheme.popupoverlay" /> </android.support.design.widget.appbarlayout> <include layout="@layout/content_surveillance" /> <android.support.design.widget.floatingactionbutton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" android:src="@drawable/ic_action_new" />
i have modified themes according suggestion: getting appcompat not support current theme features exception after upgrading version appcompat v22.1.0 issue
here styles.xml file:
<!-- base application theme. --> <style name="apptheme" parent="theme.appcompat"> <!-- customize theme here. --> <item name="colorprimary">@color/background_material_light</item> <item name="colorprimarydark">#f2f2f2</item> </style> <style name="apptheme.noactionbar"> <item name="windowactionbar">false</item> <item name="windownotitle">true</item> </style> <style name="apptheme.appbaroverlay" parent="themeoverlay.appcompat.dark.actionbar" /> <style name="apptheme.popupoverlay" parent="themeoverlay.appcompat.light" />
have idea wrong code?
Comments
Post a Comment