Do Not Request Window.FEATURE_SUPPORT_ACTION_BAR
I have a LoginActivityclass(TabActivity) which have following code to cover whole mobile screen @Override protected void onCreate(Bundle savedInstanceState) { super.onC
Solution 1:
try this:
in manifest
// the activity where you want to show `toolbar`
<activity android:name=".YourActivity"
android:theme="@style/AppTheme.NoActionBar"><!-- ADD THIS LINE -->
in styles.xml
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
add this android:theme="@style/Theme.AppCompat.Light"
to your application tag in the Manifest file
<application
android:theme="@style/Theme.AppCompat.Light"
</application>
Solution 2:
This error occurs by many mistakes I have listed below some Situations :
1.) If you have not created Toolbar in your layout
2.) If you are using
android:theme="@style/AppTheme.NoActionBar"
Theme and try to get Actionbar.
3) if you have not
extends AppCompatActivity
Post a Comment for "Do Not Request Window.FEATURE_SUPPORT_ACTION_BAR"