android - Replace Action bar with toolbar -


i'm using toolbar replace actionbar. going before replacing. after replacing gives me error:

java.lang.runtimeexception: unable start activity componentinfo{com.oi.mmg/com.oi.mmg.eventdetailsscreenactivity}: java.lang.illegalstateexception:

this activity has action bar supplied window decor. not request window.feature_action_bar , set windowactionbar false in theme use toolbar instead.

without knowing code suggest using parent theme application:

theme.appcompat.light.noactionbar 

the property "windowactionbar" "false" default.

and if using appcompat activities should extend "appcompatactivity".


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -