The active item label in the BottomNavigationView gets hyphenated on Android. This happens because the font size of active label is increased. I want it to behave similar to iOS navbar where the active item label size doesn't differ from other labels. I followed this tutorial to get to this point. Image of the problem
I found solution for Android native How to remove hypheanted labels, but I don't know how to use it with Xamarin Forms.
I have tried setting ItemTextAppearanceActive:
public class NoShiftEffect : PlatformEffect {
protected override void OnAttached() {
if (!(Container.GetChildAt(0) is ViewGroup layout)) {
return;
}
if (!(layout.GetChildAt(1) is BottomNavigationView bottomNavigationView)) {
return;
}
bottomNavigationView.LabelVisibilityMode = LabelVisibilityMode.LabelVisibilityLabeled;
// How to set this?
bottomNavigationView.ItemTextAppearanceActive = 5;
}
protected override void OnDetached() {
}
}
Any ideas where to set that?