In .NET MAUI, the resource management system has undergone changes compared to Xamarin. In Xamarin, you typically use the "AndroidResource" build action for files like *.png and *.xml in the Android project, which would make them available as resources within the Android application.
However, in .NET MAUI, the resource management system has been unified across platforms, and the build actions used in Xamarin projects, such as "AndroidResource," "BundleResource" (iOS), and "EmbeddedResource" (shared), have been replaced with a more consistent and simpler approach.
In .NET MAUI, you no longer use specific build actions like "AndroidResource" for Android-specific files. Instead, you place your resource files in the appropriate folders within the "Resources" folder, and they will be automatically included as resources for the respective platforms.
For example, for Android-specific resources, you would place the *.png and *.xml files in the "Resources/drawable" and "Resources/values" folders, respectively. When you build the MAUI project, the files in these folders will be included as resources for the Android platform.
Regarding the "AndroidResource" label you see when creating a new MAUI project for the "Resources/values/colors.xml" file, this is likely just a label in the IDE to indicate that this file is specific to Android resources. The actual build action used for this file in the MAUI project might be different, such as "EmbeddedResource" or another appropriate build action.
In summary, when migrating from Xamarin to .NET MAUI, you should organize your resource files in the appropriate folders within the "Resources" directory without using specific platform-specific build actions like "AndroidResource" for Android files. The resource management system in .NET MAUI will take care of including them correctly for each platform during the build process.