How to create subdirectories ?

xi guo 40 Reputation points
2023-09-01T19:05:33.7633333+00:00

For Xamarin.Android application, how can I configure to create subdirectories, or even subdirectories, in these directories(such as Resources\layout, Resources\values, Resources\drawable, and so on) so that I can sort out programs that have multiple activities?

Please help me!

Thank you!

Developer technologies .NET Xamarin
Developer technologies Visual Studio Other
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2023-09-04T05:26:52.2166667+00:00

    Hello,

    After investigation, this issue in Xamarin.Android was determined by design.

    In Xamarin.Android, if you need to create a folder under Resource, you need to follow this document to create an alternate resource folder.

    Therefore, in Xamarin, it is recommended that you use different prefixes when naming variables to distinguish the resources required by different activities.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

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.