docs-maui
docs-maui copied to clipboard
Image paths in Resources/Raw for Android must be lowercase
See the document, where it states
To comply with Android resource naming rules, all local image filenames must be lowercase, start and end with a letter character, and contain only alphanumeric characters or underscores. For more information, see App resources overview on developer.android.com.
I think this needs to be stressed much more clearly, and not just that filenames need be lowercase, but their paths too. There is also no documentation on how a user might still use the Assets folder in their Android project if their app still has one. This has been causing me no end of problems for a while now, so I think it needs more clearly documented, and possibly a bug raised to handle this lowercase only problem?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: cb4d16da-8c0f-5b7e-54ee-1fe36c549837
- Version Independent ID: cb4d16da-8c0f-5b7e-54ee-1fe36c549837
- Content: Image - .NET MAUI
- Content Source: docs/user-interface/controls/image.md
- Product: dotnet-mobile
- Technology: dotnet-maui
- GitHub Login: @davidbritch
- Microsoft Alias: dabritch
The same issues are present in this document too https://learn.microsoft.com/en-us/dotnet/maui/user-interface/images/images just before the resize an image section. The risk is not clearly flagged, it doesn't mention paths need be lowercase, and it begs the question why this limitation can't be addressed.