如何在 .Net MAUI 中支持既有竖屏又有横屏的全屏 SVG 资源启动画面。

huangapple go评论66阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年4月6日 21:35:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/75950177.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定