我正在尝试将工具栏添加到我的应用程序的主页活动中。我有以下问题。我用红色给“工具栏”加了下划线。 screenshot of the error 你知道会是什么吗?我只是发现它可能是一个导入问题,但我已经尝试更改它,但没有成功。 谢谢。这是我的XML代码: <ScrollView android:layout_height="ma
我尝试通过替换文档中的默认actionbar来创建工具栏,但是应用程序没有运行,并在SetActionBar(toolbar);抛出一个错误。以下是错误消息:
Java.Lang.IllegalStateException: This Activity already has an action bar supplied by the windowDo not request Window.FEATURE_ACTION_BAR and set android:windo