Do Not Request Window.feature_action_bar And Set Windowactionbar To False In Your Theme To Use A Toolbar Instead
I'm having this issue when I applied the toolbar into my app and it crashed when I try to run the app.I used all previous post but no luck. Here is my code : Style.xml
Solution 1:
Your theme should look like this, and remove @style/:
<stylename="MyMaterialTheme"parent="Theme.AppCompat.NoActionBar"><itemname="windowNoTitle">true</item><itemname="windowActionBar">false</item>
...
</style>Then, do not define the theme in <application/> tag. Define it only with activity you want to use the material design theme, i.e. in <activity> tag.
If your activity extends PreferenceActivity, AppCompatActivity, or ActionBarActivity, which you want to begin the transaction with PreferenceFragment, change your theme to:
<stylename="MyMaterialTheme"parent="Theme.AppCompat.Light.DarkActionBar"><itemname="windowNoTitle">true</item><itemname="windowActionBar">true</item>
...
</style>And remove this line from your Toolbar:
android:theme="@style/ToolBarStyle"
Post a Comment for "Do Not Request Window.feature_action_bar And Set Windowactionbar To False In Your Theme To Use A Toolbar Instead"