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.

I have included SfCarousel library in my xamarin.android native app but was unable to see the images scattered

Thread ID:

Created:

Updated:

Platform:

Replies:

132339 Aug 27,2017 09:17 PM Aug 30,2017 09:42 AM Xamarin.Android 3
loading
Tags: SfCarousel
Ishwor Khanal
Asked On August 27, 2017 09:17 PM

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;

Rabhia Beham Kathar Mideenar [Syncfusion]
Replied On August 28, 2017 05:13 AM

Hi Ishwor Khanal, 
Thanks for contacting Syncfusion Support.

Query: I have included SfCarousel library in my xamarin.android native app but was unable to see the images scattered.

The reported issue has been checked with our latest Syncfusion assemblies (15.3451.0.26). We were unable to reproduce the reported issue at our end. We have created a sample based on your code example. Please download the sample from below link

Link: http://www.syncfusion.com/downloads/support/forum/132339/ze/CarouselSample_(2)778642491 
  
We have attached a screenshot that was captured while testing the provided sample which is available in the below link. 
  
 Please have a look at the sample and if the issue still persist, update us the modified sample to analyze further and provide the solution.

Regards,
Rabhia Beham K.  
  
  


Ishwor Khanal
Replied On August 29, 2017 12:37 AM

Thank you for your quick reply. I really appreciate that. I will have a look and let you know.


Eswaran Thirugnanasambandam [Syncfusion]
Replied On August 30, 2017 09:42 AM

Hi Ishwor Khanal, 
  
Thanks for your update. 
  
We will wait until hear from you. 
  
Regards, 
Eswaran AT. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;