Weird Margin for sliders on Android

DemondDemond Member ✭✭
edited December 2018 in Xamarin.Forms

The slider on android has a horizontal margin that is not present in iOS (I have xaml code below to show what i am talking about). Everything else seems to align properly and changing the margin, padding and horizontalOptions for the Slider (and StackLayout) doesn't fix this problem.

I am not that familiar with Xaml or Android's material design UI, so I may be missing something obvious. If not, is this the place where I need a custom renderer?

<StackLayout Padding="10" BackgroundColor="Gray">
        <Button/>
        <StackLayout Orientation="Horizontal">
            <Slider HorizontalOptions="FillAndExpand"/>
            <Button HorizontalOptions="End"/>
        </StackLayout>
        <Slider HorizontalOptions="FillAndExpand"/>
        <Label Text="Ipsem"/>
</StackLayout>

Best Answer

Answers

Sign In or Register to comment.