-
Notifications
You must be signed in to change notification settings - Fork 37
Description
I am using this plugin for both iOS and Android.
I am facing a strang issue for Android. Initially the text on the segments is properly aligned but Value_Changed event is fired the text on the segment is aligning to the vertical.
Here is my code:
<segmentedcontrols:SegmentedControl ValueChanged="SegControl_ValueChanged" x:Name="SegControl" HorizontalOptions="FillAndExpand" TintColor="#0d2241" SelectedSegment="0" BackgroundColor="White">
<segmentedcontrols:SegmentedControl.Children>
<segmentedcontrols:SegmentedControlOption VerticalOptions="CenterAndExpand" Text="Test" />
<segmentedcontrols:SegmentedControlOption VerticalOptions="CenterAndExpand" Text="Sample" />
</segmentedcontrols:SegmentedControl.Children>
</segmentedcontrols:SegmentedControl>
public async void Handle_ValueChanged(object o, int e)
{
switch (e)
{
case 0:
MainPageContainer.Children.Clear();
MainPageContainer.Children.Add(TestView);
break;
case 1:
MainPageContainer.Children.Clear();
MainPageContainer.Children.Add(SampleView);
break;
}
}
I dont have any such issues for iOS.
Here is how Iam facing the issue

How to resolve this?
