android - xamarin 形式的本地化

标签 android xamarin xamarin.forms

我已经在我的 PCL 项目中完成了本地化,在我的 PCL 中有一个资源文件夹,其中包含两个资源,一个默认英语,另一个阿拉伯语,文化是 ar-AS。我可以在模拟器上运行它,但不能在设备中运行,这是什么原因。我现在正在做 android 项目

最佳答案

Doesn't work in DEBUG mode (Android only)

If the translated strings are working in your RELEASE Android builds but not while debugging, right-click on the Android Project and select Options > Build > Android Build and ensure that the Fast assembly deployment is NOT ticked. This option causes problems with loading resources and should not be used if you are testing localized apps.

关于android - xamarin 形式的本地化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32225540/

相关文章:

xamarin.android - MvvmCross-Android : How to perform App initialization on Main Thread

xamarin - XLabs 日历查看月份选择

xamarin - 如何在适用于 Android 的 Xamarin.Forms 应用程序中使用 D8、R8?

android - Cordova 插件 - Javascript 从 native 代码接收消息

android - 在 Android 模拟器上创建 SD 卡

android - 是否有使用 getLeaderboardIntent() 获取公共(public)排行榜的解决方法?

c# - 如何在 Xamarin.iOS 中加载共享库项目中存在的第二个 Storyboard

c# - 启用 PROGUARD - Xamarin.Android

xamarin.forms - Xamarin 表单 : Camera and gallery are not working in android, 显示权限异常

Android 下载 pdf 到内部存储并启动 intent