Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android : Theme.xml and Styles.xml?

In the newer version of Android Studio, I cant see styles.xml, but in the values directory, there are two new XML, theme.xml and theme.xml(night).

Does it actually replace the work of styles.xml OR If different what is the difference between them??

like image 912
Rohit Kumar Avatar asked Oct 19 '25 19:10

Rohit Kumar


1 Answers

Using XML attributes in res\values doesn't actually depend on the file name, you can define any of which like a <string> in another file like style.xml.

Even you can change the name of the style.xml to something that you'd like to.

In recent Android studio versions styles.xml is replaced by themes.xml, but the latter provides a night version for dark mode.

like image 151
Zain Avatar answered Oct 22 '25 08:10

Zain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!