Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144440 | May 6,2019 07:56 PM UTC | May 14,2019 02:54 AM UTC | Android | 6 |
![]() |
Tags: SfRotator |
SetContentView(Resource.Layout.activity_main);
SfRotator rotator = FindViewById<SfRotator>(Resource.Id.sfRotator1);
List<SfRotatorItem> rotatorItems = new List<SfRotatorItem>();
List<int> images = new List<int>();
images.Add(Resource.Drawable.movie1);
images.Add(Resource.Drawable.movie2);
images.Add(Resource.Drawable.movie3);
for (int i = 0; i < images.Count; i++)
{
SfRotatorItem sfRotatorItem = new SfRotatorItem(this);
ImageView imageView = new ImageView(this);
imageView.SetImageResource(images[i]);
sfRotatorItem.Content = imageView;
rotatorItems.Add(sfRotatorItem);
}
rotator.DataSource = rotatorItems;
|
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.
This page will automatically be redirected to the sign-in page in 10 seconds.