Class SfRotator
Rotator class
Inheritance
Namespace: Com.Syncfusion.Rotator
Assembly: Syncfusion.SfRotator.Android.dll
Syntax
public class SfRotator : LinearLayout
Constructors
SfRotator(Context)
Initializes a new instance of the SfRotator class.
Declaration
public SfRotator(Context context)
Parameters
| Type | Name | Description |
|---|---|---|
| Android.Content.Context | context | Context type |
SfRotator(Context, IAttributeSet)
Initializes a new instance of the SfRotator class.
Declaration
public SfRotator(Context context, IAttributeSet attrs)
Parameters
| Type | Name | Description |
|---|---|---|
| Android.Content.Context | context | Context type |
| Android.Util.IAttributeSet | attrs | Attribute set |
Fields
dotsBorderColor
Dots border color field.
Declaration
public Color dotsBorderColor
Field Value
| Type |
|---|
| Android.Graphics.Color |
dotsPlacementMode
dots placement mode field.
Declaration
protected DotsPlacement dotsPlacementMode
Field Value
| Type |
|---|
| DotsPlacement |
selectedDotsColor
Selected dot color field.
Declaration
protected Color selectedDotsColor
Field Value
| Type |
|---|
| Android.Graphics.Color |
unselectedDotsColor
Un Selected dot color field.
Declaration
public Color unselectedDotsColor
Field Value
| Type |
|---|
| Android.Graphics.Color |
Properties
Adapter
Gets or sets the value of Adapter property.
Declaration
public RotatorAdapter Adapter { get; set; }
Property Value
| Type |
|---|
| RotatorAdapter |
DataSource
Gets or sets the value of data source
Declaration
public List<SfRotatorItem> DataSource { get; set; }
Property Value
| Type |
|---|
| System.Collections.Generic.List<SfRotatorItem> |
DotsBorderColor
Gets or sets the value of dots Border color Property.
Declaration
public Color DotsBorderColor { get; set; }
Property Value
| Type |
|---|
| Android.Graphics.Color |
DotsPlacement
Gets or sets the value of Dots Placement property.
Declaration
public DotsPlacement DotsPlacement { get; set; }
Property Value
| Type |
|---|
| DotsPlacement |
EnableAutoPlay
Gets or sets a value indicating whether true or false.
Declaration
public bool EnableAutoPlay { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
EnableLooping
Gets or sets a value indicating whether true or false.
Declaration
public bool EnableLooping { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
EnableSwiping
Gets or sets a value indicating whether true or false.
Declaration
public bool EnableSwiping { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ImageSizingMode
Gets or sets the value of Image Sizing mode property.
Declaration
public ImageSizingMode ImageSizingMode { get; set; }
Property Value
| Type |
|---|
| ImageSizingMode |
NavigationDelay
Gets or sets the value of navigation delay property
Declaration
public int NavigationDelay { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
NavigationDirection
Gets or sets the direction of navigation
Declaration
public NavigationDirection NavigationDirection { get; set; }
Property Value
| Type |
|---|
| NavigationDirection |
NavigationStripMode
Gets or sets the value of Navigation Strip Mode property.
Declaration
public NavigationStripMode NavigationStripMode { get; set; }
Property Value
| Type |
|---|
| NavigationStripMode |
NavigationStripPosition
Gets or sets the value navigation strip Position property
Declaration
public NavigationStripPosition NavigationStripPosition { get; set; }
Property Value
| Type |
|---|
| NavigationStripPosition |
PlayDirection
Gets or sets the value of Play direction property.
Declaration
public PlayDirection PlayDirection { get; set; }
Property Value
| Type |
|---|
| PlayDirection |
SelectedDotsColor
Gets or sets the value of Selected Dots color property.
Declaration
public Color SelectedDotsColor { get; set; }
Property Value
| Type |
|---|
| Android.Graphics.Color |
SelectedIndex
Gets or sets the value of Selected index property
Declaration
public int SelectedIndex { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
TextVisible
Gets or sets a value indicating whether true or false.
Declaration
public virtual bool TextVisible { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
UnselectedDotsColor
Gets or sets the value of Unselected dots color property.
Declaration
public Color UnselectedDotsColor { get; set; }
Property Value
| Type |
|---|
| Android.Graphics.Color |
Methods
Dispose(Boolean)
Dispose method.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | Boolean type |
Next()
Next Method.
Declaration
public void Next()
OnAttachedToWindow()
On attached to window method
Declaration
protected override void OnAttachedToWindow()
OnLayout(Boolean, Int32, Int32, Int32, Int32)
On layout method
Declaration
protected override void OnLayout(bool changed, int l, int t, int r, int b)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | changed | Boolean type |
| System.Int32 | l | integer value 1 |
| System.Int32 | t | integer value 2 |
| System.Int32 | r | integer value 3 |
| System.Int32 | b | integer value 4 |
OnSizeChanged(Int32, Int32, Int32, Int32)
On size changed method
Declaration
protected override void OnSizeChanged(int w, int h, int oldw, int oldh)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | w | integer value1 |
| System.Int32 | h | integer value2 |
| System.Int32 | oldw | integer value3 |
| System.Int32 | oldh | integer value4 |
Previous()
Previous method.
Declaration
public void Previous()
Refresh()
The thumbnail view refresh method.
Declaration
public void Refresh()
Events
ItemTapped
Item tapped event.
Declaration
public event EventHandler<EventArgs> ItemTapped
Event Type
| Type |
|---|
| System.EventHandler<System.EventArgs> |
SelectionChanged
Selection changed event.
Declaration
public event EventHandler<SelectionChangedEventArgs> SelectionChanged
Event Type
| Type |
|---|
| System.EventHandler<SelectionChangedEventArgs> |