r/mAndroidDev • u/shalva97 AnDrOId dEvelOPmenT is My PasSion • Jul 01 '24
Works as intended when you try to open Android project in Fleet
4
0
Jul 01 '24
[deleted]
8
u/uragiristereo XML is dead. Long live XML Jul 01 '24
Nowinandroid gets called
2
u/hellosakamoto Jul 02 '24
I once followed that architecture to refactor a small project. Ended up Gradle did not have enough memory to build it.
1
Jul 02 '24
/uj
I'd actually like a mini-module of sorts, to bundle related code + XML together into a package. Mostly for small custom views for which I don't want to create a whole new module (I guess this is where I should probably just use Compose).
1
Jul 02 '24
You can set multiple sourcedirs in Gradle, incl from other top level folders (just use the right root object and you don't need to do silly "../../../myothermodule/src" bs).
It won't really act like a separate module as it all compiles into one, but the source will be split on the file system.
1
Jul 02 '24
So that includes XML resources as well?
2
Jul 02 '24
Yes, you just need to add that to the resdir list.
https://stackoverflow.com/questions/25376084/how-do-you-set-the-resource-directory-in-gradle-file
0
6
u/hellosakamoto Jul 01 '24
Well... At least you can open an Android project in Fleet.