App: The theme is now out of date. Please switch to using android: theme instead

I am logging this warning:

I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.

Curiously, I used the Find in all project Android Studio tool and it did not find any messages with app:theme .

I think it could be because I use it.neokree.materialnavigationdrawer and it can have app:theme inside, but is there anyway to turn off this warning? Anyone have an idea if this could be for another reason?

+4
source share
2 answers

You may have a style containing this element:

 <item name="theme">@style/TextInputTheme</item> 

Replaced by:

 <item name="android:theme">@style/TextInputTheme</item> 
+2
source

According to View Logs: "app: theme is out of date"? change from

 <android.support.v7.widget.Toolbar app:theme="@style/ThemeOverlay.AppCompat.ActionBar" 

to

 <android.support.v7.widget.Toolbar android:theme="@style/ThemeOverlay.AppCompat.ActionBar" 
0
source

All Articles