英文:
My Maui app is displaying Images in different locations based on the device language
问题
当我的设备设置为英语时,UI对象位于我想要的位置,但在某些语言中,行和列的值会从左到右交换。我想知道如何将UI设置为仅使用英语。这是一个Maui .net Android应用程序。
谢谢你的帮助,这非常重要!!
我看到有人谈论CultureInfo和CurrentUICulture,但对我没有起作用,也许我没有正确更改它或将其添加到错误的位置,如果是这样,我想知道如何以及在哪里使用它。
英文:
When my device is in english the UI objects are where I want to be but in some languages the row and col values gets switched up from left to right.. I would like to know how I can set the UI to be only in english. Its an Maui .net android app.
Thanks for helping, this is really important!!
I have seen people talking about CultureInfo anf CurrentUICulture but it didnt work for me, maybe I didnt change it correctly or added it to the wrong place, if so I would love to know how and where exactly to use it.
答案1
得分: 1
看起来是一个RTL(从右到左)的情况。尝试在你的清单文件中的<application>
标签中添加android:supportsRtl="false"
。
英文:
looks like a RTL case
try to add android:supportsRtl="false"
to <application>
tag in your manifest
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论