Hi, am developing a xamarin.Forms application and am using carousel view. it is working fine in iOS version but when i run the android version it is throwing dividebyzero exception. When i comment the CarouselView code in xaml it is not throwing any exception, it is running fine in android as well.Am using Xamarin.Forms.CarouselView nuget package version 2.3.0 pre-2. Can someone please help me out to solve this issue.
below is the code am using it in xaml
<BoxView Style="{DynamicResource BoxViewDefaultStyle}" /> <AbsoluteLayout HorizontalOptions="Fill" VerticalOptions="Fill"> <StackLayout Padding="15,10,15,5" Spacing="3" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All" BackgroundColor="{DynamicResource OverlayBackgroundColor}" Orientation="Vertical"> <Image Source="Ico.png" WidthRequest="35" HeightRequest="35" HorizontalOptions="Center" /> <cv:CarouselView Position="{Binding StartPosition, Mode=TwoWay}" ItemsSource="{Binding Data}" HeightRequest="44"> <cv:CarouselView.ItemTemplate> <DataTemplate> <Label TextColor="{DynamicResource LightTextColor}" LineBreakMode="WordWrap" FontSize="Micro" VerticalOptions="CenterAndExpand" Text="{Binding Text}" /> </DataTemplate> </cv:CarouselView.ItemTemplate> </cv:CarouselView> <controls:CarouselIndicators HorizontalOptions="CenterAndExpand" IndicatorHeight="8" IndicatorWidth="8" UnselectedIndicator="IcoCarouselIndicatorUnselectedLightGray.png" SelectedIndicator="IcoCarouselIndicatorSelectedLightGray.png" Position="{Binding StartPosition, Mode=TwoWay}" ItemsSource="{Binding Data}" /> </StackLayout> </AbsoluteLayout> <BoxView Style="{DynamicResource BoxViewDefaultStyle}" /> </StackLayout>
Thanks in advance.