Groupping layout xml files from resources layout folder

Melnic, Vadim 1 Reputation point
2021-03-23T08:28:53.317+00:00

I have a Visual Studio 2019 Xamarin.Android (None Forms) with ~ 200 xml layout files in ~\Resources\layout project folder.
Is there any way somehow to group layout xml files from ~\Resources\layout folder into several groups and support Visual Studio building the project ?

Example:

Current structure:
~\Resources\layout
----- x_layout1.xml
----- x_layout2.xml
----- x_layout3.xml
----- x_layout4.xml
----. . .
----- x_layout200.xml

Necessary structure:
~\Resources\layout
----\activities
--------- x_layout1.xml
--------- x_layout2.xml
--------. . .
----\fragments
--------\common
------------- x_layout10.xml
------------- x_layout11.xml
------------. . .
--------\blocks
------------- x_layout21.xml
------------- x_layout22.xml
------------. . .
--------\actions
------------- x_layout31.xml
------------- x_layout32.xml
------------. . .
----\dialogs
--------- x_layout41.xml
--------- x_layout42.xml
--------. . .

Developer technologies | .NET | Xamarin
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.