英文:
How to support .Net MAUI Splash screen in both portrait and landscape with full screen SVG resource
问题
我需要在.Net MAUI通用地点的Android和iOS上创建支持纵向和横向模式的全屏启动画面。在dotnet maui中有一份文档,链接为:https://learn.microsoft.com/en-us/dotnet/maui/user-interface/images/splashscreen?view=net-maui-7.0&tabs=android,但该文档仅提供了适用于纵向模式的有限选项。有没有关于如何使用单个SVG文件支持两种方向的示例或文档?我已经查看了以下与SVG相关的示例:https://stackoverflow.com/questions/39642266/svg-mobile-orientation-change 和 https://stackoverflow.com/questions/69213683/switch-x-and-y-axis-for-everything-in-svg。有关此问题的建议吗?
英文:
I need to create splash screen with full screen image supporting both portrait and lanscape mode in .Net MAUI common place for Android and iOS. There is a document in dotnet maui https://learn.microsoft.com/en-us/dotnet/maui/user-interface/images/splashscreen?view=net-maui-7.0&tabs=android this explains with limited option that is for portrait mode only. Any examples or document how we can support both the orienation using single SVG file which will be having images internally.
I have gonethrough below examples related to svg:
https://stackoverflow.com/questions/39642266/svg-mobile-orientation-change.
https://stackoverflow.com/questions/69213683/switch-x-and-y-axis-for-everything-in-svg.
Any suggestions on this?
答案1
得分: 1
你可以在Android平台上创建.xml文件来设置横屏模式。
你可以查看此横屏模式获取更多信息。
英文:
You can create the .xml file on the Android platform to set the Landscape Mode.
You can check this Landscape Mode for more information.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论