Hello,
Welcome to our Microsoft Q&A platform!
What is the language of the Android device you run your project?
If the language is Japanese like this screenshot.
When I set the "直" in the xaml.
<Label Text="直" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/>
His running result is correct. So here is no need to change it in xaml. It will change it in the actual android device.
You want to use TextView.SetTextLocale() in custom renderer, you can try to following code.
[assembly: ExportRenderer(typeof(Label), typeof(MyLabel))]
namespace JanpanLabel.Droid
{
class MyLabel : LabelRenderer
{
public MyLabel(Context context) : base(context)
{
}
protected override void OnElementChanged(ElementChangedEventArgs<Label> e)
{
base.OnElementChanged(e);
var kanji = Control as TextView;
kanji.TextLocale= Locale.Japan;
}
}
}
Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.