标签:
1.使用页面应当继承与AppCompatActivity
2.如果使用的时候出现如下报错:
java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
标签:
原文地址:http://blog.csdn.net/s228245214/article/details/46237839