Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 923
arodriguezdonaire Avatar asked Aug 08 '15 14:08

arodriguezdonaire


People also ask

How can I change my Android app theme?

Open themes. xml (night) . In the Project pane select Android, go to app > res > values > themes > themes.

How do I change the default theme in Android Studio?

To change default themes go to File and click on Settings. A new Settings dialog will appear, like this. Under the Appearance & Behaviour -> Appearance, you will find Theme. Choose the right theme from the drop-down and click on Apply and then Ok.

What are Android themes?

A theme is a collection of attributes that's applied to an entire app, activity, or view hierarchy—not just an individual view. When you apply a theme, every view in the app or activity applies each of the theme's attributes that it supports.


1 Answers

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>
like image 133
friederbluemle Avatar answered Sep 18 '22 16:09

friederbluemle