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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the space/gap between selected and unselected items

 

The Space between the selected and unselected items has been determined by “SelectedItemOffset” property.

 

The below code illustrates how to provide the offset value for carousel items.

 

SelectedItemOffset - 40

 

 

 

 

SelectedItemOffset - 100

 

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7537 03/02/2017 04/05/2017 Xamarin.Forms SfCarousel
Did you find this information helpful?
Comments
William Watterson Jul 25, 2018

What unit are the offsets in?  My caoursel looks different on different android devices - some devices the unselected items are very close together?

Reply
Eswaran Thirugnanasambandam [Syncfusion] Aug 01, 2018

Hi William,

Query 1: What unit are the offsets in?  

There is no specific unit for offset value. 

Query 2: My carousel looks different on different android devices - some devices the unselected items are very close together?

We have created a custom sample with carousel control and tested the solution in the below android devices such as Nexus, Samsung s8, Moto G5 and in Android emulator. In the all the devices, the carousel control looks same and we are unable to reproduce the reported issue. We have attached our custom sample, please find the sample from the below link.

Sample link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/CarouselKBDemo1775402375 

If issue persist at your side, please provide the following details so that we can give appropriate solution on this

  • On which android devices you have tested the carousel control?
  • Which version of the carousel control are you using?

Regards,

Eswaran

Reply
Add Comment
You must log in to leave a comment

Warning Icon 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.Close Icon