My Android Studio project has two product flavors - A and B. Both have in their resource folder a layout named my_layout.xml.
I want also when I build the project for flavor A to have the layout named a_my_layout.xml and b_my_layout.xml when building flavor B.
Then from the source code I will dynamically get the resource id with getResources().getIdentifier("a_my_layout", "layout"...)
I want the name of the layout to remain my_layout.xml while I am working in the editor(Android studio) i.e. I don't want to have a bunch of prefixes to my layouts in the res/ folder. Is this possile with Gradle?