This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_

今天有人问我  这是个什么错误.首先说一下产生这个错误的原因: 因为当在activity中调用了setSupportActionBar(toolbar); 同时你的AndroidManifest.xml文件中 android:theme="@style/AppTheme" 并且你的style资源文件中 <style name="AppTheme" parent="Theme.AppCompat.L
相关文章
相关标签/搜索