app:theme 现已弃用。请改为使用 android:theme
app:theme is now deprecated. Please move to using android:theme instead
我正在记录此警告:
I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
奇怪的是,我使用了 Android Studio
的 Find in all project
工具,但没有发现 app:theme
.
出现任何问题
我想这可能是因为我使用的是 it.neokree.materialnavigationdrawer
并且它里面可以有 app:theme
,但是不管怎样,有什么办法可以禁用这个警告吗?任何人都知道这是否可能是出于其他原因?
根据变化自
<android.support.v7.widget.Toolbar
app:theme="@style/ThemeOverlay.AppCompat.ActionBar"
至
<android.support.v7.widget.Toolbar
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
您的样式可能包含如下元素:
<item name="theme">@style/TextInputTheme</item>
替换为:
<item name="android:theme">@style/TextInputTheme</item>
我正在记录此警告:
I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
奇怪的是,我使用了 Android Studio
的 Find in all project
工具,但没有发现 app:theme
.
我想这可能是因为我使用的是 it.neokree.materialnavigationdrawer
并且它里面可以有 app:theme
,但是不管怎样,有什么办法可以禁用这个警告吗?任何人都知道这是否可能是出于其他原因?
根据
<android.support.v7.widget.Toolbar
app:theme="@style/ThemeOverlay.AppCompat.ActionBar"
至
<android.support.v7.widget.Toolbar
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
您的样式可能包含如下元素:
<item name="theme">@style/TextInputTheme</item>
替换为:
<item name="android:theme">@style/TextInputTheme</item>