Where would I put a styles.xml file?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ondesic

In normal android development you can make a styles.xml file to create a theme. It is usually placed the “res” resource folder. I am making a custom android build and need to make a custom theme. What folder would I put this file in?

:bust_in_silhouette: Reply From: sulai

it goes to res/values/styles.xml

See the android documentation for more Information.

Yes, but where (the path) is that found relative to my godot project folder?

ondesic | 2020-03-05 04:38

I am so close to figuring this out. I have created a custom build folder. However, there is no “res/values” to put the styles.xml file into. I need to find the right spot to put the styles.xml file into so that Godot will include it in the export. Could anyone help me with this?

ondesic | 2020-03-06 19:45

I’m only guessing now, but I think it’s very much possible that Godot is not able (yet) to export your styles.xml at all. So in that case all you can do is adding it manually to the exported Android project. What you can do is to create a nice folder in your Godot project like android/res/values/styles.xml and also add a script to your project which copies all your Android resources over to the exported Android project. I wish to know if Godot is capable of this too, but I suspect it’s not.

sulai | 2020-03-06 21:04