Add platform-specific resources to single-project
Open
doc-idea
Pri3
- Dominant language
- No language data
- Stars
- 282
- Forks
- 265
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 19
Description
There needs to be docs on accessing iOS/Android (and Win?) resources from platform-specific code.
For Android, files should be added to the Platforms\Android\Resources\raw folder, rather than the Resources\Assets folder. Adding to the later folder doesn't generate the required resource ID.
The root issue is that `AndroidAsset` is for assets, not for raw resources.
https://github.com/dotnet/maui/issues/9877 (and https://github.com/dotnet/maui/issues/9602)
Contributor guide
Assessment
This issue has not been assessed yet.