arodriguezdonaire
arodriguezdonaire

Reputation: 5563

app:theme is now deprecated. Please move to using android:theme instead

I'm logging this warning:

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

The curious thing is that I've used the Find in all project tool of Android Studio and it haven't found any ocurrence with app:theme.

I think it can be because I'm using the it.neokree.materialnavigationdrawer and it can have app:theme inside, but anyway, is there any way to disable this warning? Anyone has idea if it could be for another reason?

Upvotes: 8

Views: 5961

Answers (2)

friederbluemle
friederbluemle

Reputation: 37147

You might have a style that contains an element like this:

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

Replace with:

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

Upvotes: 10

CoolMind
CoolMind

Reputation: 28835

According to Seeing message in logs: "app:theme is deprecated"? 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"

Upvotes: 1

Related Questions