Hi,
I am trying to add AppCompat Menu to one of my existing activities.
I added views from layout in example to my old layout.
I see it shows (AppCompat) at top in title bar in example layout. which is not in my old layout.
Activity I have added
#Extends: android.support.v7.app.AppCompatActivity
Added theme in manifest
SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")
When running it shows error
java.lang.RuntimeException: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
Pls give some hint
Thanks
Juzer
I am trying to add AppCompat Menu to one of my existing activities.
I added views from layout in example to my old layout.
I see it shows (AppCompat) at top in title bar in example layout. which is not in my old layout.
Activity I have added
#Extends: android.support.v7.app.AppCompatActivity
Added theme in manifest
SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")
When running it shows error
java.lang.RuntimeException: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
Pls give some hint
Thanks
Juzer