I have following part of code of fragment but was unable to see the carousel sliders scattered and selected one in center.
View rootView = inflater.Inflate(Resource.Layout.DashboardTabLayoutNew, container, false);
LinearLayout linearLayout= rootView.FindViewById<LinearLayout>(Resource.Id.linear_layout);
SfCarousel carousel = new SfCarousel(this.Context);
List<SfCarouselItem> items = new List<SfCarouselItem>();
for (int i = 0; i <= 5; i++)
{
ImageView imageView = new ImageView(this.Context);
imageView.SetImageResource(Resource.Drawable.ic_news1New);
SfCarouselItem itemImage = new SfCarouselItem(this.Context);
itemImage.ContentView = imageView;
items.Add(itemImage);
}
carousel.DataSource = items;
// carousel.ItemWidth = 170;
// carousel.ItemHeight = 250;
carousel.RotationAngle = 45;
carousel.Offset = 30;
// carousel.SelectedItemOffset = 5;
carousel.SelectedIndex = 2;
// carousel.ScaleOffset = 0.7f;
// carousel.ItemSpacing = 5;
// carousel.ViewMode = ViewMode.Linear;
linearLayout.AddView(carousel);
return rootView;