Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Styles.xml no more in Android Studio version 4.1

I'm creating a new project and noticed that styles.xml is no longer generated in Android Studio version 4.1. The only present there is themes.xml which has similar code with styles.xml. Does themes.xml replaced styles.xml? And if so, can I still manually create styles.xml without producing error? Thank you

like image 768
Ericz Avatar asked Mar 13 '26 01:03

Ericz


1 Answers

Does themes.xml replaced styles.xml?

In terms of what the new-project wizard creates, yes. The filenames in res/values/ do not matter — what matters are the names (and values) of the resources defined in those files.

And if so, can I still manually create styles.xml without producing error?

Yes.

like image 148
CommonsWare Avatar answered Mar 15 '26 14:03

CommonsWare