We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to create Carousel sample in Xamarin.Forms.Android platform

Carousel control allows you to navigate through the image data in an interactive way so that they can be viewed or selected. Also, it provides various customization options for its item arrangements. You can get the view of Carousel from any one of the following ways:

  1. Using CarouselItem
  2. Using ItemTemplate

 

The following section illustrates how to create the carousel control in Xamarin.Forms Android platforms.

 

Needed assemblies:

 

For getting the view of carousel control, you should add the following assemblies in both PCL and Android in Xamarin.

 

Project

Assemblies required

PCL

pcl\Syncfusion.SfCarousel.XForms.dll

Android

android\Syncfusion.SfCarousel.Android.dll
android\Syncfusion.SfCarousel.XForms.Android.dll
android\Syncfusion.SfCarousel.XForms.dll
Xamarin.Android.Support.v17.Leanback (from NuGet Packages)

 

 

Note: It is more important to add Xamarin.Android.Support.v17.Leanback library to get the carousel‘s Linear mode in Android platform.

 

  1. Create a carousel control by using CarouselItem

 

 

  1. Create a carousel control by using ItemTemplate

 

 

 

 

Sample Link:

 

Please download the sample from the following Link

Article ID: Published Date: Last Revised Date: Platform: Control:
7471 02/24/2017 05/02/2018 Xamarin.Forms SfCarousel
Did you find this information helpful?
Comments
MOHAMED YOUSUF Aug 30, 2017

I am using CarouselItem to populate the images and it's not working for me. I have followed all the steps above. Thanks!

Reply
Hemalatha Marikumar [Syncfusion] Sep 08, 2017

Hi Mohanmed Yousuf,

Thanks for your update.

We have checked the published knowledge base's carousel code (both ways). We were unable to reproduce the reported issue. Here, we have republished this KB with sample. The attached sample illustrates the both ways to render the carousel control. Please download the sample from this page. 

Please look at the sample and if you are facing the same issue, update us with mode details (device specification, Syncfusion Assemblies version) to analyze further and provide an appropriate solution.

And for getting immediate reply regarding your queries please contact support@syncfusion.com

Regards,
Hemalatha M.
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.