diff --git a/Xamarin.Forms.Core/Shell/BaseShellItem.cs b/Xamarin.Forms.Core/Shell/BaseShellItem.cs index 3b7911a88c9..5cc5f313f5c 100644 --- a/Xamarin.Forms.Core/Shell/BaseShellItem.cs +++ b/Xamarin.Forms.Core/Shell/BaseShellItem.cs @@ -453,6 +453,7 @@ internal static DataTemplate CreateDefaultFlyoutItemCell(string textBinding, str { defaultLabelClass.Setters.Add(new Setter { Property = Label.FontSizeProperty, Value = 14 }); defaultLabelClass.Setters.Add(new Setter { Property = Label.TextColorProperty, Value = Color.Black.MultiplyAlpha(0.87) }); + defaultLabelClass.Setters.Add(new Setter { Property = Label.FontFamilyProperty, Value = "sans-serif-medium" }); defaultLabelClass.Setters.Add(new Setter { Property = Label.MarginProperty, Value = new Thickness(20, 0, 0, 0) }); } else if (Device.RuntimePlatform == Device.iOS) diff --git a/Xamarin.Forms.Platform.Android/Renderers/BottomNavigationViewUtils.cs b/Xamarin.Forms.Platform.Android/Renderers/BottomNavigationViewUtils.cs index 786b0e83414..a1293495a33 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/BottomNavigationViewUtils.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/BottomNavigationViewUtils.cs @@ -173,7 +173,7 @@ void clickCallback(object s, EventArgs e) using (var text = new TextView(context)) { - text.SetTypeface(Typeface.SansSerif, TypefaceStyle.Normal); + text.SetTypeface(Typeface.Create("sans-serif-medium", TypefaceStyle.Normal), TypefaceStyle.Normal); text.SetTextColor(AColor.Black); text.Text = shellContent.title; lp = new LinearLayout.LayoutParams(0, LP.WrapContent) diff --git a/Xamarin.Forms.Platform.Android/Renderers/ShellItemRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/ShellItemRenderer.cs index 819bcc0d211..10c6eff06cc 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/ShellItemRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/ShellItemRenderer.cs @@ -3,7 +3,6 @@ using System.Collections.Specialized; using System.ComponentModel; using Android.Content; -using Android.Graphics; using Android.Graphics.Drawables; using Android.OS; using Android.Views; @@ -217,7 +216,7 @@ void clickCallback(object s, EventArgs e) using (var text = new TextView(Context)) { - text.Typeface = Typeface.SansSerif; + text.Typeface = "sans-serif-medium".ToTypeFace(); text.SetTextColor(AColor.Black); text.Text = shellContent.Title; lp = new LinearLayout.LayoutParams(0, LP.WrapContent)