Class SfCarouselItem
Initializes a new instance of the SfCarouselItem class.
Inheritance
Namespace: Com.Syncfusion.Carousel
Assembly: Syncfusion.SfCarousel.Android.dll
Syntax
public class SfCarouselItem : FrameLayout
Constructors
SfCarouselItem(Context)
Initializes a new instance of the SfCarouselItem class.
Declaration
public SfCarouselItem(Context context)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | Context of carousel item. |
SfCarouselItem(Context, IAttributeSet)
Initializes a new instance of the SfCarouselItem class.
Declaration
public SfCarouselItem(Context context, IAttributeSet attribute)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | Context of the carousel item. |
Android.Util.IAttributeSet | attribute | Attribute set value. |
SfCarouselItem(Context, IAttributeSet, Int32)
Initializes a new instance of the SfCarouselItem class.
Declaration
public SfCarouselItem(Context context, IAttributeSet attrs, int defStyleAttr)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The context. |
Android.Util.IAttributeSet | attrs | The attrs. |
System.Int32 | defStyleAttr | The style attributes. |
SfCarouselItem(Context, IAttributeSet, Int32, Int32)
Initializes a new instance of the SfCarouselItem class.
Declaration
public SfCarouselItem(Context context, IAttributeSet attrs, int defStyleAttr, int defStyleRes)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | The context. |
Android.Util.IAttributeSet | attrs | The attrs. |
System.Int32 | defStyleAttr | The style attribute |
System.Int32 | defStyleRes | The style resource. |
SfCarouselItem(IntPtr, JniHandleOwnership)
Initializes a new instance of the SfCarouselItem class.
Declaration
public SfCarouselItem(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | javaReference | The jave reference. |
Android.Runtime.JniHandleOwnership | transfer | The transfer. |
Properties
ContentView
Gets or sets the content view.
Declaration
public View ContentView { get; set; }
Property Value
Type | Description |
---|---|
Android.Views.View | The content view. |
ImageName
Gets or sets the name of the image.
Declaration
public string ImageName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the image. |
Methods
CalculateInSampleSize(BitmapFactory.Options, Int32, Int32)
Calculates the size of the in sample.
Declaration
public static int CalculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.BitmapFactory.Options | options | Options of bitmap. |
System.Int32 | reqWidth | Required width. |
System.Int32 | reqHeight | Required height. |
Returns
Type | Description |
---|---|
System.Int32 | The in sample size. |
DecodeSampledBitmapFromResource(Resources, Int32, Int32, Int32)
Decodes the sampled bitmap from resource.
Declaration
public static Bitmap DecodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Res.Resources | res | Resource value. |
System.Int32 | resId | Resource identifier. |
System.Int32 | reqWidth | Required width. |
System.Int32 | reqHeight | Required height. |
Returns
Type | Description |
---|---|
Android.Graphics.Bitmap | The sampled bitmap from resource. |
Dispose(Boolean)
Dispose the specified disposing.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | If set to |
OnSizeChanged(Int32, Int32, Int32, Int32)
On the size changed.
Declaration
protected override void OnSizeChanged(int w, int h, int oldw, int oldh)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | w | The width. |
System.Int32 | h | The height. |
System.Int32 | oldw | Old width. |
System.Int32 | oldh | old height. |