我使用的Android从昨天但今天当我通过intellijIDEA
跑到我的应用程序非常精细弃用它给了我:应用:主题现在
I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
我的风格是:
<resources>
<style name="AppTheme" parent="Theme.Base">
</style>
<style name="Theme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
有什么问题,我该如何解决?
在此先感谢,
UPDATE:我toolbar.xml
文件是:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimary"
local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
local:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
Android SDK工具:24.3.3
Android SDK中构建工具: 22
Android的支持库:22.2
您使用的工具栏? –
谢谢@NileshJarad,是的,我使用 –
你可以发布工具栏的XML代码? –