我正在记录这个警告:
I/AppCompatViewInflater:app:theme 现已弃用。请改为使用 android:theme。
奇怪的是,我使用了 Android Studio
的 Find in all project
工具,但它没有发现任何与 app:theme 相关的事件
。
我认为这可能是因为我正在使用 it.neokree.materialnavigationdrawer
并且它可以在里面包含 app:theme
,但是无论如何,有什么办法可以禁用此警告?任何人都知道这是否可能是出于其他原因?
最佳答案
您的样式可能包含如下元素:
<item name="theme">@style/TextInputTheme</item>
替换为:
<item name="android:theme">@style/TextInputTheme</item>
关于android - app :theme is now deprecated. 请改为使用 android:theme,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31894171/